Skip to content

Alias

Source: src/AWS/PaymentCryptography/Alias.ts

A friendly name for an AWS Payment Cryptography Key. Aliases give keys a stable, human-readable identifier that survives key rotation — the alias can be repointed to a new key without touching consumers.

Alias attached to a key

import * as PaymentCryptography from "alchemy/AWS/PaymentCryptography";
const key = yield* PaymentCryptography.Key("DataKey", { keyAttributes: { ... } });
const alias = yield* PaymentCryptography.Alias("DataKeyAlias", {
keyArn: key.keyArn,
});

Alias with an explicit name

const alias = yield* PaymentCryptography.Alias("DataKeyAlias", {
aliasName: "alias/payments/data-encryption",
keyArn: key.keyArn,
});