Class: AWSCDK::S3::BlockedEncryptionType
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::S3::BlockedEncryptionType
- Defined in:
- s3/blocked_encryption_type.rb
Overview
Encryption types that can be blocked on an S3 bucket.
Class Method Summary collapse
-
.custom(name) ⇒ AWSCDK::S3::BlockedEncryptionType
Use this constructor only if S3 releases a new BlockedEncryptionType that is unknown to CDK.
- .jsii_overridable_methods ⇒ Object
-
.NONE ⇒ AWSCDK::S3::BlockedEncryptionType
Special value - all encryption types are allowed.
-
.SSE_C ⇒ AWSCDK::S3::BlockedEncryptionType
Server-Side Encryption with customer-provided keys (SSE-C) is blocked.
Instance Method Summary collapse
-
#initialize(*args) ⇒ BlockedEncryptionType
constructor
A new instance of BlockedEncryptionType.
-
#name ⇒ String
The name for this blocked encryption type used in the API.
Constructor Details
#initialize(*args) ⇒ BlockedEncryptionType
Returns a new instance of BlockedEncryptionType.
8 9 10 |
# File 's3/blocked_encryption_type.rb', line 8 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_s3.BlockedEncryptionType does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.custom(name) ⇒ AWSCDK::S3::BlockedEncryptionType
Use this constructor only if S3 releases a new BlockedEncryptionType that is unknown to CDK.
Otherwise, use this class's static constants.
24 25 26 27 |
# File 's3/blocked_encryption_type.rb', line 24 def self.custom(name) Jsii::Type.check_type(name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_s3.BlockedEncryptionType", "custom", [name]) end |
.jsii_overridable_methods ⇒ Object
12 13 14 15 16 |
# File 's3/blocked_encryption_type.rb', line 12 def self.jsii_overridable_methods { :name => { kind: :property, name: "name", is_optional: false }, } end |
.NONE ⇒ AWSCDK::S3::BlockedEncryptionType
Special value - all encryption types are allowed.
32 33 34 |
# File 's3/blocked_encryption_type.rb', line 32 def self.NONE() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_s3.BlockedEncryptionType", "NONE") end |
.SSE_C ⇒ AWSCDK::S3::BlockedEncryptionType
Server-Side Encryption with customer-provided keys (SSE-C) is blocked.
39 40 41 |
# File 's3/blocked_encryption_type.rb', line 39 def self.SSE_C() Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_s3.BlockedEncryptionType", "SSE_C") end |
Instance Method Details
#name ⇒ String
The name for this blocked encryption type used in the API.
46 47 48 |
# File 's3/blocked_encryption_type.rb', line 46 def name() jsii_get_property("name") end |