CloudWatchClient.associate_dataset_kms_key
rboto-cloudwatch==0.4.0 · Service index · Types
Model summary (excerpt): Associates an Amazon Web Services Key Management Service (Amazon Web Services KMS) customer managed key with the specified dataset. After this operation completes, all data published to the dataset is encrypted at rest using the specified KMS key. Callers must have kms:Decrypt permission on the key to read the encrypted data. Only the default dataset is supported. The default dataset is...
Install and imports
from rboto import CloudWatchClient
from rboto_cloudwatch.types import (
AssociateDatasetKmsKeyOutput,
)
Signature
async def associate_dataset_kms_key(
*,
dataset_identifier: str,
kms_key_arn: str,
) -> AssociateDatasetKmsKeyOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
dataset_identifier |
Yes | Specifies the identifier of the dataset that you want to associate the KMS key with. For the default dataset, you can specify either default or the full dataset Amazon Resource Name (ARN) in the format arn:aws:cloudwatch: Region : account-id :dataset/default . |
kms_key_arn |
Yes | Specifies the Amazon Resource Name (ARN) of the customer managed KMS key to associate with the dataset. The key must be a symmetric encryption KMS key ( SYMMETRIC_DEFAULT ) in the same Amazon Web Services Region as the dataset. The ARN must be in the format arn:aws:kms: Region : account-id :key/ key-id . Key IDs, aliases, and alias ARNs are not accepted. For more information about KMS key... |
Output
AssociateDatasetKmsKeyOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
No fields.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_cloudwatch.exceptions:
ConflictError, KmsAccessDeniedError, KmsKeyDisabledError, KmsKeyNotFoundError, ResourceNotFoundExceptionError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.