Class KmsAccessDeniedException

All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<KmsAccessDeniedException.Builder,KmsAccessDeniedException>

@Generated("software.amazon.awssdk:codegen") public final class KmsAccessDeniedException extends CloudWatchException implements ToCopyableBuilder<KmsAccessDeniedException.Builder,KmsAccessDeniedException>

The operation was denied because either the calling principal lacks the required Amazon Web Services Key Management Service (Amazon Web Services KMS) permission on the key, or the key policy does not grant Amazon CloudWatch the permissions it needs to use the key. Verify that the caller has kms:Decrypt permission on the key, and that the key policy grants the CloudWatch service principal the kms:DescribeKey, kms:GenerateDataKey, kms:Encrypt, kms:Decrypt, and kms:ReEncrypt* permissions described in AssociateDatasetKmsKey.

See Also: