Class: AWSCDK::Wisdom::CfnKnowledgeBase::ServerSideEncryptionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wisdom/cfn_knowledge_base.rb

Overview

The configuration information for the customer managed key used for encryption.

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 customer managed key used for encryption.



1217
1218
1219
1220
# File 'wisdom/cfn_knowledge_base.rb', line 1217

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 customer managed key used for encryption.

This customer managed key must have a policy that allows kms:CreateGrant and kms:DescribeKey permissions to the IAM identity using the key to invoke Wisdom.

For more information about setting up a customer managed key for Wisdom, see Enable Connect Customer Wisdom for your instance . For information about valid ID values, see Key identifiers (KeyId) .



1230
1231
1232
# File 'wisdom/cfn_knowledge_base.rb', line 1230

def kms_key_id
  @kms_key_id
end

Class Method Details

.jsii_propertiesObject



1232
1233
1234
1235
1236
# File 'wisdom/cfn_knowledge_base.rb', line 1232

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

Instance Method Details

#to_jsiiObject



1238
1239
1240
1241
1242
1243
1244
# File 'wisdom/cfn_knowledge_base.rb', line 1238

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