Class: AWSCDK::Wisdom::CfnAssistant::ServerSideEncryptionConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wisdom/cfn_assistant.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.



604
605
606
607
# File 'wisdom/cfn_assistant.rb', line 604

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.

The 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. To use Wisdom with chat, the key policy must also allow kms:Decrypt , kms:GenerateDataKey* , and kms:DescribeKey permissions to the connect.amazonaws.com service principal. 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) in the AWS Key Management Service Developer Guide .



615
616
617
# File 'wisdom/cfn_assistant.rb', line 615

def kms_key_id
  @kms_key_id
end

Class Method Details

.jsii_propertiesObject



617
618
619
620
621
# File 'wisdom/cfn_assistant.rb', line 617

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

Instance Method Details

#to_jsiiObject



623
624
625
626
627
628
629
# File 'wisdom/cfn_assistant.rb', line 623

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