You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::KMS::Types::CreateAliasRequest

  • Object
show all
Defined in:



When passing CreateAliasRequest as input to an Aws::Client method, you can use a vanilla Hash:

  alias_name: "AliasNameType", # required
  target_key_id: "KeyIdType", # required

Instance Attribute Summary collapse

Instance Attribute Details


Specifies the alias name. This value must begin with alias/ followed by a name, such as alias/ExampleAlias. The alias name cannot begin with alias/aws/. The alias/aws/ prefix is reserved for AWS managed CMKs.


  • (String)

    Specifies the alias name.


Identifies the CMK to which the alias refers. Specify the key ID or the Amazon Resource Name (ARN) of the CMK. You cannot specify another alias. For help finding the key ID and ARN, see Finding the Key ID and ARN in the AWS Key Management Service Developer Guide.


  • (String)

    Identifies the CMK to which the alias refers.