Class: AWSCDK::Connect::CfnInstanceStorageConfig::EncryptionConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_instance_storage_config.rb

Overview

The encryption configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(encryption_type:, key_id:) ⇒ EncryptionConfigProperty

Returns a new instance of EncryptionConfigProperty.

Parameters:

  • encryption_type (String)

    The type of encryption.

  • key_id (String)

    The full ARN of the encryption key.



583
584
585
586
587
588
# File 'connect/cfn_instance_storage_config.rb', line 583

def initialize(encryption_type:, key_id:)
  @encryption_type = encryption_type
  Jsii::Type.check_type(@encryption_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "encryptionType")
  @key_id = key_id
  Jsii::Type.check_type(@key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyId")
end

Instance Attribute Details

#encryption_typeString (readonly)

The type of encryption.



594
595
596
# File 'connect/cfn_instance_storage_config.rb', line 594

def encryption_type
  @encryption_type
end

#key_idString (readonly)

The full ARN of the encryption key.

Be sure to provide the full ARN of the encryption key, not just the ID.

Amazon Connect supports only KMS keys with the default key spec of SYMMETRIC_DEFAULT .



603
604
605
# File 'connect/cfn_instance_storage_config.rb', line 603

def key_id
  @key_id
end

Class Method Details

.jsii_propertiesObject



605
606
607
608
609
610
# File 'connect/cfn_instance_storage_config.rb', line 605

def self.jsii_properties
  {
    :encryption_type => "encryptionType",
    :key_id => "keyId",
  }
end

Instance Method Details

#to_jsiiObject



612
613
614
615
616
617
618
619
# File 'connect/cfn_instance_storage_config.rb', line 612

def to_jsii
  result = {}
  result.merge!({
    "encryptionType" => @encryption_type,
    "keyId" => @key_id,
  })
  result.compact
end