AWS::PaymentCryptography::Alias - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::PaymentCryptography::Alias

Creates an alias, or a friendly name, for an Amazon Payment Cryptography key. You can use an alias to identify a key in the console and when you call cryptographic operations such as EncryptData or DecryptData.

You can associate the alias with any key in the same Amazon Web Services Region. Each alias is associated with only one key at a time, but a key can have multiple aliases. You can't create an alias without a key. The alias must be unique in the account and Amazon Web Services Region, but you can create another alias with the same name in a different Amazon Web Services Region.

To change the key that's associated with the alias, call UpdateAlias. To delete the alias, call DeleteAlias. These operations don't affect the underlying key. To get the alias that you created, call ListAliases.

Cross-account use: This operation can't be used across different Amazon accounts.

Related operations:

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Type" : "AWS::PaymentCryptography::Alias", "Properties" : { "AliasName" : String, "KeyArn" : String } }

YAML

Type: AWS::PaymentCryptography::Alias Properties: AliasName: String KeyArn: String

Properties

AliasName

A friendly name that you can use to refer to a key. The value must begin with alias/.

Important

Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in Amazon CloudTrail logs and other output.

Required: Yes

Type: String

Pattern: ^alias/[a-zA-Z0-9/_-]+$

Minimum: 7

Maximum: 256

Update requires: Replacement

KeyArn

The KeyARN of the key associated with the alias.

Required: No

Type: String

Pattern: ^arn:aws:payment-cryptography:[a-z]{2}-[a-z]{1,16}-[0-9]+:[0-9]{12}:key/[0-9a-zA-Z]{16,64}$

Minimum: 70

Maximum: 150

Update requires: No interruption

Return values

Ref