Class: Aws::ECR::Types::EncryptionConfigurationForRepositoryCreationTemplate

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecr/types.rb

Overview

The encryption configuration to associate with the repository creation template.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#encryption_typeString

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 Key Management Service key stored in KMS. When you use KMS to encrypt your data, you can either use the default Amazon Web Services 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 KMS key stored in Key Management Service (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 AES256 encryption algorithm. For more information, see [Protecting data using server-side encryption with Amazon S3-managed encryption keys (SSE-S3)] in the *Amazon Simple Storage Service Console Developer Guide*.

[1]: docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html [2]: docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html

Returns:

  • (String)


1507
1508
1509
1510
1511
1512
# File 'lib/aws-sdk-ecr/types.rb', line 1507

class EncryptionConfigurationForRepositoryCreationTemplate < Struct.new(
  :encryption_type,
  :kms_key)
  SENSITIVE = []
  include Aws::Structure
end

#kms_keyString

If you use the ‘KMS` encryption type, specify the KMS key to use for encryption. The full ARN of the KMS key must be specified. The key must exist in the same Region as the repository. If no key is specified, the default Amazon Web Services managed KMS key for Amazon ECR will be used.

Returns:

  • (String)


1507
1508
1509
1510
1511
1512
# File 'lib/aws-sdk-ecr/types.rb', line 1507

class EncryptionConfigurationForRepositoryCreationTemplate < Struct.new(
  :encryption_type,
  :kms_key)
  SENSITIVE = []
  include Aws::Structure
end