Class: AWSCDK::Glue::CfnSecurityConfiguration::S3EncryptionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnSecurityConfiguration::S3EncryptionProperty
- Defined in:
- glue/cfn_security_configuration.rb
Overview
Specifies how Amazon Simple Storage Service (Amazon S3) data should be encrypted.
Instance Attribute Summary collapse
-
#kms_key_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
-
#s3_encryption_mode ⇒ String?
readonly
The encryption mode to use for Amazon S3 data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(kms_key_arn: nil, s3_encryption_mode: nil) ⇒ S3EncryptionProperty
constructor
A new instance of S3EncryptionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(kms_key_arn: nil, s3_encryption_mode: nil) ⇒ S3EncryptionProperty
Returns a new instance of S3EncryptionProperty.
654 655 656 657 658 659 |
# File 'glue/cfn_security_configuration.rb', line 654 def initialize(kms_key_arn: nil, s3_encryption_mode: nil) @kms_key_arn = kms_key_arn Jsii::Type.check_type(@kms_key_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyArn") unless @kms_key_arn.nil? @s3_encryption_mode = s3_encryption_mode Jsii::Type.check_type(@s3_encryption_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3EncryptionMode") unless @s3_encryption_mode.nil? end |
Instance Attribute Details
#kms_key_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
665 666 667 |
# File 'glue/cfn_security_configuration.rb', line 665 def kms_key_arn @kms_key_arn end |
#s3_encryption_mode ⇒ String? (readonly)
The encryption mode to use for Amazon S3 data.
670 671 672 |
# File 'glue/cfn_security_configuration.rb', line 670 def s3_encryption_mode @s3_encryption_mode end |
Class Method Details
.jsii_properties ⇒ Object
672 673 674 675 676 677 |
# File 'glue/cfn_security_configuration.rb', line 672 def self.jsii_properties { :kms_key_arn => "kmsKeyArn", :s3_encryption_mode => "s3EncryptionMode", } end |
Instance Method Details
#to_jsii ⇒ Object
679 680 681 682 683 684 685 686 |
# File 'glue/cfn_security_configuration.rb', line 679 def to_jsii result = {} result.merge!({ "kmsKeyArn" => @kms_key_arn, "s3EncryptionMode" => @s3_encryption_mode, }) result.compact end |