Class: AWSCDK::S3::BlockedEncryptionType

Inherits:
Jsii::Object
  • Object
show all
Defined in:
s3/blocked_encryption_type.rb

Overview

Encryption types that can be blocked on an S3 bucket.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ BlockedEncryptionType

Returns a new instance of BlockedEncryptionType.

Raises:

  • (NoMethodError)


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.

Parameters:

  • name (String)

Returns:

  • (AWSCDK::S3::BlockedEncryptionType)


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_methodsObject



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

.NONEAWSCDK::S3::BlockedEncryptionType

Special value - all encryption types are allowed.

Returns:

  • (AWSCDK::S3::BlockedEncryptionType)


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_CAWSCDK::S3::BlockedEncryptionType

Server-Side Encryption with customer-provided keys (SSE-C) is blocked.

Returns:

  • (AWSCDK::S3::BlockedEncryptionType)


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

#nameString

The name for this blocked encryption type used in the API.

Returns:

  • (String)


46
47
48
# File 's3/blocked_encryption_type.rb', line 46

def name()
  jsii_get_property("name")
end