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.DisableKey

Description

Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for cryptographic operations.

For more information about how key state affects the use of a KMS key, see Key state: Effect on your KMS key in the /Key Management Service Developer Guide/ .

The KMS key that you use for this operation must be in a compatible key state. For details, see Key state: Effect on your KMS key in the Key Management Service Developer Guide.

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

Required permissions: kms:DisableKey (key policy)

Related operations: EnableKey

Synopsis

Creating a Request

data DisableKey Source #

See: newDisableKey smart constructor.

Constructors

DisableKey' 

Fields

  • keyId :: Text

    Identifies the KMS key to disable.

    Specify the key ID or key ARN of the KMS key.

    For example:

    • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
    • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

    To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

Instances

Instances details
Eq DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Read DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Show DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Generic DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Associated Types

type Rep DisableKey :: Type -> Type #

NFData DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Methods

rnf :: DisableKey -> () #

Hashable DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

ToJSON DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

AWSRequest DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Associated Types

type AWSResponse DisableKey #

ToHeaders DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Methods

toHeaders :: DisableKey -> [Header] #

ToPath DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

ToQuery DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

type Rep DisableKey Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

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

Defined in Amazonka.KMS.DisableKey

newDisableKey Source #

Create a value of DisableKey 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:keyId:DisableKey', disableKey_keyId - Identifies the KMS key to disable.

Specify the key ID or key ARN of the KMS key.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

Request Lenses

disableKey_keyId :: Lens' DisableKey Text Source #

Identifies the KMS key to disable.

Specify the key ID or key ARN of the KMS key.

For example:

  • Key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
  • Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab

To get the key ID and key ARN for a KMS key, use ListKeys or DescribeKey.

Destructuring the Response

data DisableKeyResponse Source #

See: newDisableKeyResponse smart constructor.

Constructors

DisableKeyResponse' 

Instances

Instances details
Eq DisableKeyResponse Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Read DisableKeyResponse Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Show DisableKeyResponse Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Generic DisableKeyResponse Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Associated Types

type Rep DisableKeyResponse :: Type -> Type #

NFData DisableKeyResponse Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

Methods

rnf :: DisableKeyResponse -> () #

type Rep DisableKeyResponse Source # 
Instance details

Defined in Amazonka.KMS.DisableKey

type Rep DisableKeyResponse = D1 ('MetaData "DisableKeyResponse" "Amazonka.KMS.DisableKey" "libZSservicesZSamazonka-kmsZSamazonka-kms" 'False) (C1 ('MetaCons "DisableKeyResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDisableKeyResponse :: DisableKeyResponse Source #

Create a value of DisableKeyResponse with all optional fields omitted.

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