AliasAttributes

class aws_cdk.aws_kms.AliasAttributes(*, alias_name, alias_target_key)

Bases: object

Properties of a reference to an existing KMS Alias.

Parameters:
  • alias_name (str) – Specifies the alias name. This value must begin with alias/ followed by a name (i.e. alias/ExampleAlias)

  • alias_target_key (IKey) – The customer master key (CMK) to which the Alias refers.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_kms as kms

# key: kms.Key

alias_attributes = kms.AliasAttributes(
    alias_name="aliasName",
    alias_target_key=key
)

Attributes

alias_name

Specifies the alias name.

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

alias_target_key

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