EncryptionConfigurationArgs

data class EncryptionConfigurationArgs(val encryptionType: Output<Either<String, EncryptionConfigurationEncryptionType>>? = null, val kmsKey: Output<String>? = null, val replicaKmsKeyID: Output<String>? = null) : ConvertibleToJava<EncryptionConfigurationArgs>

Definition of EncryptionConfiguration

Constructors

Link copied to clipboard
constructor(encryptionType: Output<Either<String, EncryptionConfigurationEncryptionType>>? = null, kmsKey: Output<String>? = null, replicaKmsKeyID: Output<String>? = null)

Properties

Link copied to clipboard

The encryption type to use. If you use the `KMS` encryption type, the contents of the repository will be encrypted using server-side encryption with KMSlong key stored in KMS. When you use KMS to encrypt your data, you can either use the default AWS managed KMS key for Amazon ECR, or specify your own KMS key, which you already created. For more information, see Protecting data using server-side encryption with an key stored in (SSE-KMS) in the Amazon Simple Storage Service Console Developer Guide. If you use the `AES256` encryption type, Amazon ECR uses server-side encryption with Amazon S3-managed encryption keys which encrypts the images in the repository using an AES-256 encryption algorithm. For more information, see Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3) in the *Ama The encryption type to use.

Link copied to clipboard
val kmsKey: Output<String>? = null

If you use the `KMS` encryption type, specify the KMS key to use for encryption. The alias, key ID, or full ARN of the KMS key can be specified. The key must exist in the same Region as the repository. If no key is specified, the default AWS managed KMS key for Amazon ECR will be used. If you use the KMS encryption type, specify the CMK to use for encryption. The alias, key ID, or full ARN of the CMK can be specified. The key must exist in the same Region as the repository. If no key is specified, the default AWS managed CMK for Amazon ECR will be used.

Link copied to clipboard
val replicaKmsKeyID: Output<String>? = null

Specifies the ID (Key ARN or Alias ARN) of the customer managed AWS KMS key stored in AWS Key Management Service (KMS) for the destination bucket. Amazon S3 uses this key to encrypt replica objects. Amazon S3 only supports symmetric encryption KMS keys. For more information, see Asymmetric keys in KMS in the Key Management Service Developer Guide.

Functions

Link copied to clipboard
open override fun toJava(): EncryptionConfigurationArgs