libZSservicesZSamazonka-kmsZSamazonka-kms
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.KMS.DeleteAlias

Description

Deletes the specified alias.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see Using ABAC in KMS in the Key Management Service Developer Guide.

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

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

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

  • CreateAlias
  • ListAliases
  • UpdateAlias
Synopsis

Creating a Request

data DeleteAlias Source #

See: newDeleteAlias smart constructor.

Constructors

DeleteAlias' 

Fields

  • aliasName :: Text

    The alias to be deleted. The alias name must begin with alias/ followed by the alias name, such as alias/ExampleAlias.

Instances

Instances details
Eq DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

Read DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

Show DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

Generic DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

Associated Types

type Rep DeleteAlias :: Type -> Type #

NFData DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

Methods

rnf :: DeleteAlias -> () #

Hashable DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

ToJSON DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

AWSRequest DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

Associated Types

type AWSResponse DeleteAlias #

ToHeaders DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

Methods

toHeaders :: DeleteAlias -> [Header] #

ToPath DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

ToQuery DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

type Rep DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

type Rep DeleteAlias = D1 ('MetaData "DeleteAlias" "Amazonka.KMS.DeleteAlias" "libZSservicesZSamazonka-kmsZSamazonka-kms" 'False) (C1 ('MetaCons "DeleteAlias'" 'PrefixI 'True) (S1 ('MetaSel ('Just "aliasName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteAlias Source # 
Instance details

Defined in Amazonka.KMS.DeleteAlias

newDeleteAlias Source #

Create a value of DeleteAlias with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:aliasName:DeleteAlias', deleteAlias_aliasName - The alias to be deleted. The alias name must begin with alias/ followed by the alias name, such as alias/ExampleAlias.

Request Lenses

deleteAlias_aliasName :: Lens' DeleteAlias Text Source #

The alias to be deleted. The alias name must begin with alias/ followed by the alias name, such as alias/ExampleAlias.

Destructuring the Response

data DeleteAliasResponse Source #

See: newDeleteAliasResponse smart constructor.

Constructors

DeleteAliasResponse' 

newDeleteAliasResponse :: DeleteAliasResponse Source #

Create a value of DeleteAliasResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.