Class: AWSCDK::Kendra::CfnIndex::ServerSideEncryptionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kendra/cfn_index.rb

Overview

Provides the identifier of the AWS KMS customer master key (CMK) used to encrypt data indexed by Amazon Kendra.

We suggest that you use a CMK from your account to help secure your index. Amazon Kendra doesn't support asymmetric CMKs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kms_key_id: nil) ⇒ ServerSideEncryptionConfigurationProperty

Returns a new instance of ServerSideEncryptionConfigurationProperty.

Parameters:

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

    The identifier of the AWS KMS key .



1092
1093
1094
1095
# File 'kendra/cfn_index.rb', line 1092

def initialize(kms_key_id: nil)
  @kms_key_id = kms_key_id
  Jsii::Type.check_type(@kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsKeyId") unless @kms_key_id.nil?
end

Instance Attribute Details

#kms_key_idString? (readonly)

The identifier of the AWS KMS key .

Amazon Kendra doesn't support asymmetric keys.



1103
1104
1105
# File 'kendra/cfn_index.rb', line 1103

def kms_key_id
  @kms_key_id
end

Class Method Details

.jsii_propertiesObject



1105
1106
1107
1108
1109
# File 'kendra/cfn_index.rb', line 1105

def self.jsii_properties
  {
    :kms_key_id => "kmsKeyId",
  }
end

Instance Method Details

#to_jsiiObject



1111
1112
1113
1114
1115
1116
1117
# File 'kendra/cfn_index.rb', line 1111

def to_jsii
  result = {}
  result.merge!({
    "kmsKeyId" => @kms_key_id,
  })
  result.compact
end