Copyright | (c) 2013-2021 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 |
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
- data DisableKey = DisableKey' {}
- newDisableKey :: Text -> DisableKey
- disableKey_keyId :: Lens' DisableKey Text
- data DisableKeyResponse = DisableKeyResponse' {
- newDisableKeyResponse :: DisableKeyResponse
Creating a Request
data DisableKey Source #
See: newDisableKey
smart constructor.
DisableKey' | |
|
Instances
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.
Instances
Eq DisableKeyResponse Source # | |
Defined in Amazonka.KMS.DisableKey (==) :: DisableKeyResponse -> DisableKeyResponse -> Bool # (/=) :: DisableKeyResponse -> DisableKeyResponse -> Bool # | |
Read DisableKeyResponse Source # | |
Defined in Amazonka.KMS.DisableKey | |
Show DisableKeyResponse Source # | |
Defined in Amazonka.KMS.DisableKey showsPrec :: Int -> DisableKeyResponse -> ShowS # show :: DisableKeyResponse -> String # showList :: [DisableKeyResponse] -> ShowS # | |
Generic DisableKeyResponse Source # | |
Defined in Amazonka.KMS.DisableKey type Rep DisableKeyResponse :: Type -> Type # from :: DisableKeyResponse -> Rep DisableKeyResponse x # to :: Rep DisableKeyResponse x -> DisableKeyResponse # | |
NFData DisableKeyResponse Source # | |
Defined in Amazonka.KMS.DisableKey rnf :: DisableKeyResponse -> () # | |
type Rep DisableKeyResponse Source # | |
newDisableKeyResponse :: DisableKeyResponse Source #
Create a value of DisableKeyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.