Skip to content

/AWS1/CL_PCY=>CREATEALIAS()

About CreateAlias

Creates an alias, or a friendly name, for an Amazon Web Services 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 Web Services accounts.

Related operations:

Method Signature

IMPORTING

Required arguments:

IV_ALIASNAME TYPE /AWS1/PCYALIASNAME /AWS1/PCYALIASNAME

A friendly name that you can use to refer to a key. An alias must begin with alias/ followed by a name, for example alias/ExampleAlias. It can contain only alphanumeric characters, forward slashes (/), underscores (_), and dashes (-).

Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

Optional arguments:

IV_KEYARN TYPE /AWS1/PCYKEYARN /AWS1/PCYKEYARN

The KeyARN of the key to associate with the alias.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_PCYCREATEALIASOUTPUT /AWS1/CL_PCYCREATEALIASOUTPUT