Class: AWSCDK::ECR::RepositoryEncryption

Inherits:
Jsii::Object
  • Object
show all
Defined in:
ecr/repository_encryption.rb

Overview

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).

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ RepositoryEncryption

Returns a new instance of RepositoryEncryption.

Parameters:

  • value (String)

    the string value of the encryption.



11
12
13
14
# File 'ecr/repository_encryption.rb', line 11

def initialize(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
  Jsii::Object.instance_method(:initialize).bind(self).call(value)
end

Class Method Details

.AES_256AWSCDK::ECR::RepositoryEncryption

'AES256'.

Returns:

  • (AWSCDK::ECR::RepositoryEncryption)


25
26
27
# File 'ecr/repository_encryption.rb', line 25

def self.AES_256()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_ecr.RepositoryEncryption", "AES_256")
end

.jsii_overridable_methodsObject



16
17
18
19
20
# File 'ecr/repository_encryption.rb', line 16

def self.jsii_overridable_methods
  {
    :value => { kind: :property, name: "value", is_optional: false },
  }
end

.KMSAWSCDK::ECR::RepositoryEncryption

'KMS'.

Returns:

  • (AWSCDK::ECR::RepositoryEncryption)


32
33
34
# File 'ecr/repository_encryption.rb', line 32

def self.KMS()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_ecr.RepositoryEncryption", "KMS")
end

.KMS_DSSEAWSCDK::ECR::RepositoryEncryption

'KMS_DSSE'.

Returns:

  • (AWSCDK::ECR::RepositoryEncryption)


39
40
41
# File 'ecr/repository_encryption.rb', line 39

def self.KMS_DSSE()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_ecr.RepositoryEncryption", "KMS_DSSE")
end

Instance Method Details

#valueString

the string value of the encryption.

Returns:

  • (String)


46
47
48
# File 'ecr/repository_encryption.rb', line 46

def value()
  jsii_get_property("value")
end