RepositoryEncryption

class aws_cdk.aws_ecr.RepositoryEncryption(value)

Bases: object

Indicates whether server-side encryption is enabled for the object, and whether that encryption is from the AWS Key Management Service (AWS KMS) or from Amazon S3 managed encryption (SSE-S3).

See:

https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#SysMetadata

ExampleMetadata:

infused

Example:

ecr.Repository(self, "Repo",
    encryption=ecr.RepositoryEncryption.KMS
)
Parameters:

value (str) – the string value of the encryption.

Attributes

AES_256 = <aws_cdk.aws_ecr.RepositoryEncryption object>
KMS = <aws_cdk.aws_ecr.RepositoryEncryption object>
value

the string value of the encryption.