| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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 states of KMS keys 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 states of KMS keys 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.
Constructors
| DisableKey' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DisableKey |
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:
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
| Generic DisableKeyResponse Source # | |
Defined in Amazonka.KMS.DisableKey Associated Types type Rep DisableKeyResponse :: Type -> Type # Methods from :: DisableKeyResponse -> Rep DisableKeyResponse x # to :: Rep DisableKeyResponse x -> DisableKeyResponse # | |
| Read DisableKeyResponse Source # | |
Defined in Amazonka.KMS.DisableKey Methods readsPrec :: Int -> ReadS DisableKeyResponse # readList :: ReadS [DisableKeyResponse] # | |
| Show DisableKeyResponse Source # | |
Defined in Amazonka.KMS.DisableKey Methods showsPrec :: Int -> DisableKeyResponse -> ShowS # show :: DisableKeyResponse -> String # showList :: [DisableKeyResponse] -> ShowS # | |
| NFData DisableKeyResponse Source # | |
Defined in Amazonka.KMS.DisableKey Methods rnf :: DisableKeyResponse -> () # | |
| Eq DisableKeyResponse Source # | |
Defined in Amazonka.KMS.DisableKey Methods (==) :: DisableKeyResponse -> DisableKeyResponse -> Bool # (/=) :: DisableKeyResponse -> DisableKeyResponse -> Bool # | |
| 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.