Class: AWSCDK::Cassandra::CfnTable::EncryptionSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cassandra/cfn_table.rb

Overview

Specifies the encryption at rest option selected for the table.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encryption_type:, kms_key_identifier: nil) ⇒ EncryptionSpecificationProperty

Returns a new instance of EncryptionSpecificationProperty.

Parameters:

  • encryption_type (String)

    The encryption at rest options for the table.

  • kms_key_identifier (String, nil) (defaults to: nil)

    Requires a kms_key_identifier in the format of a key ARN.



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_typeString (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 , a kms_key_identifier in 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_identifierString? (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_propertiesObject



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_jsiiObject



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