Class: AWSCDK::ECR::RepositoryEncryption
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::ECR::RepositoryEncryption
- 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
-
.AES_256 ⇒ AWSCDK::ECR::RepositoryEncryption
'AES256'.
- .jsii_overridable_methods ⇒ Object
-
.KMS ⇒ AWSCDK::ECR::RepositoryEncryption
'KMS'.
-
.KMS_DSSE ⇒ AWSCDK::ECR::RepositoryEncryption
'KMS_DSSE'.
Instance Method Summary collapse
-
#initialize(value) ⇒ RepositoryEncryption
constructor
A new instance of RepositoryEncryption.
-
#value ⇒ String
the string value of the encryption.
Constructor Details
#initialize(value) ⇒ RepositoryEncryption
Returns a new instance of RepositoryEncryption.
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_256 ⇒ AWSCDK::ECR::RepositoryEncryption
'AES256'.
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_methods ⇒ Object
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 |
.KMS ⇒ AWSCDK::ECR::RepositoryEncryption
'KMS'.
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_DSSE ⇒ AWSCDK::ECR::RepositoryEncryption
'KMS_DSSE'.
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
#value ⇒ String
the string value of the encryption.
46 47 48 |
# File 'ecr/repository_encryption.rb', line 46 def value() jsii_get_property("value") end |