EC2 / Client / disassociate_kms_key_id
disassociate_kms_key_id¶
- EC2.Client.disassociate_kms_key_id(**kwargs)¶
Removes an associated KMS key from an Amazon EBS snapshot. After you disassociate the key, it can no longer be used to access the snapshot’s data. The snapshot’s original encryption key is unaffected.
See also: AWS API Documentation
Request Syntax
response = client.disassociate_kms_key_id( SnapshotId='string', KmsKeyId='string', DryRun=True|False )
- Parameters:
SnapshotId (string) – The ID of the Amazon EBS snapshot.
KmsKeyId (string) –
[REQUIRED]
The ID, alias, or ARN of the associated KMS key to remove from the snapshot.
DryRun (boolean) – Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.
- Return type:
dict
- Returns:
Response Syntax
{ 'Return': True|False }
Response Structure
(dict) –
Return (boolean) –
Returns
trueif the request succeeds; otherwise, it returns an error.