paws.security.identity (version 0.1.0)

kms_delete_alias: Deletes the specified alias

Description

Deletes the specified alias. You cannot perform this operation on an alias in a different AWS account.

Usage

kms_delete_alias(AliasName)

Arguments

AliasName

[required] The alias to be deleted. The name must start with the word "alias" followed by a forward slash (alias/). Aliases that begin with "alias/aws" are reserved.

Request syntax

svc$delete_alias(
  AliasName = "string"
)

Details

Because an alias is not a property of a CMK, you can delete and change the aliases of a CMK without affecting the CMK. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all CMKs, use the ListAliases operation.

Each CMK can have multiple aliases. To change the alias of a CMK, use DeleteAlias to delete the current alias and CreateAlias to create a new alias. To associate an existing alias with a different customer master key (CMK), call UpdateAlias.

Examples

Run this code
# NOT RUN {
# The following example deletes the specified alias.
# }
# NOT RUN {
svc$delete_alias(
  AliasName = "alias/ExampleAlias"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace