CloudWatch / Client / disassociate_dataset_kms_key
disassociate_dataset_kms_key¶
- CloudWatch.Client.disassociate_dataset_kms_key(**kwargs)¶
Removes the customer managed Amazon Web Services Key Management Service (Amazon Web Services KMS) key association from the specified dataset. After this operation completes, data that you publish to the dataset is encrypted at rest using an Amazon Web Services owned key managed by Amazon CloudWatch.
Only the
defaultdataset is supported. To call this operation, the dataset must currently have a customer managed KMS key associated with it. If the dataset has no associated KMS key, the operation fails withResourceNotFoundException.Amazon CloudWatch performs a dry-run
kms:Decryptcall on the key as part of this operation. This verifies that the caller is authorized to use the currently associated key. The caller must havekms:Decryptpermission on the currently associated key, and the key must be enabled and accessible. If the key has been disabled or scheduled for deletion, you must first re-enable or restore it before you can disassociate it from the dataset.Warning
Disassociating a KMS key from a dataset does not immediately remove the
kms:Decryptrequirement on data plane operations. For up to three hours after disassociation, callers must continue to havekms:Decryptpermission on the previously associated key. Some data may still be encrypted with that key during this window. After this enforcement window elapses, thekms:Decryptrequirement is lifted.For more information about using customer managed keys with Amazon CloudWatch, see Encryption at rest with customer managed keys in the Amazon CloudWatch User Guide.
See also: AWS API Documentation
Request Syntax
response = client.disassociate_dataset_kms_key( DatasetIdentifier='string' )
- Parameters:
DatasetIdentifier (string) –
[REQUIRED]
Specifies the identifier of the dataset from which to remove the KMS key association. For the
defaultdataset, you can specify eitherdefaultor the full dataset Amazon Resource Name (ARN) in the formatarn:aws:cloudwatch:Region:account-id:dataset/default.- Return type:
dict
- Returns:
Response Syntax
{}Response Structure
(dict) –
Exceptions