Skip to content
v2.274.0

AliasAttributes Struct ​

Properties of a reference to an existing KMS Alias.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kms as kms } from 'aws-cdk-lib';

declare const key: kms.Key;
const aliasAttributes: kms.AliasAttributes = {
  aliasName: 'aliasName',
  aliasTargetKey: key,
};

Properties ​

aliasNamestringalias_namestraliasNameStringAliasNamestringAliasName*stringrequired#
Specifies the alias name.

This value must begin with alias/ followed by a name (i.e. alias/ExampleAlias)

aliasTargetKeyIKeyalias_target_keyIKeyaliasTargetKeyIKeyAliasTargetKeyIKeyAliasTargetKeyIKeyrequired#
The customer master key (CMK) to which the Alias refers.