aws-cdk-lib.aws_ecr.RepositoryEncryption

class RepositoryEncryption

LanguageType name
.NETAmazon.CDK.AWS.ECR.RepositoryEncryption
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsecr#RepositoryEncryption
Javasoftware.amazon.awscdk.services.ecr.RepositoryEncryption
Pythonaws_cdk.aws_ecr.RepositoryEncryption
TypeScript (source)aws-cdk-lib » aws_ecr » RepositoryEncryption

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 also: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingMetadata.html#SysMetadata

Example

new ecr.Repository(this, 'Repo', {
  encryption: ecr.RepositoryEncryption.KMS
});

Initializer (protected)

super(value: string)

Parameters

  • value string — the string value of the encryption.

Properties

NameTypeDescription
valuestringthe string value of the encryption.
static AES_256RepositoryEncryption'AES256'.
static KMSRepositoryEncryption'KMS'.

value

Type: string

the string value of the encryption.


static AES_256

Type: RepositoryEncryption

'AES256'.


static KMS

Type: RepositoryEncryption

'KMS'.