Class: AWSCDK::Cassandra::CfnTable::EncryptionSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cassandra::CfnTable::EncryptionSpecificationProperty
- Defined in:
- cassandra/cfn_table.rb
Overview
Specifies the encryption at rest option selected for the table.
Instance Attribute Summary collapse
-
#encryption_type ⇒ String
readonly
The encryption at rest options for the table.
-
#kms_key_identifier ⇒ String?
readonly
Requires a
kms_key_identifierin the format of a key ARN.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(encryption_type:, kms_key_identifier: nil) ⇒ EncryptionSpecificationProperty
constructor
A new instance of EncryptionSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(encryption_type:, kms_key_identifier: nil) ⇒ EncryptionSpecificationProperty
Returns a new instance of EncryptionSpecificationProperty.
1034 1035 1036 1037 1038 1039 |
# File 'cassandra/cfn_table.rb', line 1034 def initialize(encryption_type:, kms_key_identifier: nil) @encryption_type = encryption_type Jsii::Type.check_type(@encryption_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionType") @kms_key_identifier = kms_key_identifier Jsii::Type.check_type(@kms_key_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyIdentifier") unless @kms_key_identifier.nil? end |
Instance Attribute Details
#encryption_type ⇒ String (readonly)
Note:
Default: - "AWS_OWNED_KMS_KEY"
The encryption at rest options for the table.
- AWS owned key (default) -
AWS_OWNED_KMS_KEY - Customer managed key -
CUSTOMER_MANAGED_KMS_KEY
If you choose
CUSTOMER_MANAGED_KMS_KEY, akms_key_identifierin the format of a key ARN is required.
Valid values: CUSTOMER_MANAGED_KMS_KEY | AWS_OWNED_KMS_KEY .
1053 1054 1055 |
# File 'cassandra/cfn_table.rb', line 1053 def encryption_type @encryption_type end |
#kms_key_identifier ⇒ String? (readonly)
Requires a kms_key_identifier in the format of a key ARN.
1058 1059 1060 |
# File 'cassandra/cfn_table.rb', line 1058 def kms_key_identifier @kms_key_identifier end |
Class Method Details
.jsii_properties ⇒ Object
1060 1061 1062 1063 1064 1065 |
# File 'cassandra/cfn_table.rb', line 1060 def self.jsii_properties { :encryption_type => "encryptionType", :kms_key_identifier => "kmsKeyIdentifier", } end |
Instance Method Details
#to_jsii ⇒ Object
1067 1068 1069 1070 1071 1072 1073 1074 |
# File 'cassandra/cfn_table.rb', line 1067 def to_jsii result = {} result.merge!({ "encryptionType" => @encryption_type, "kmsKeyIdentifier" => @kms_key_identifier, }) result.compact end |