Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Deletes the specified alias. You cannot perform this operation on an alias in a different AWS account.
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
.
Synopsis
Creating a Request
Creates a value of DeleteAlias
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
daAliasName
- The alias to be deleted. The name must start with the word "alias" followed by a forward slash (alias). Aliases that begin with "aliasaws" are reserved.
data DeleteAlias Source #
See: deleteAlias
smart constructor.
Instances
Request Lenses
daAliasName :: Lens' DeleteAlias Text Source #
The alias to be deleted. The name must start with the word "alias" followed by a forward slash (alias). Aliases that begin with "aliasaws" are reserved.
Destructuring the Response
deleteAliasResponse :: DeleteAliasResponse Source #
Creates a value of DeleteAliasResponse
with the minimum fields required to make a request.
data DeleteAliasResponse Source #
See: deleteAliasResponse
smart constructor.