Class: AWSCDK::DynamoDB::CfnGlobalTable::ReplicaSSESpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dynamo_db/cfn_global_table.rb

Overview

Allows you to specify a KMS key identifier to be used for server-side encryption.

The key can be specified via ARN, key ID, or alias. The key must be created in the same region as the replica.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kms_master_key_id:) ⇒ ReplicaSSESpecificationProperty

Returns a new instance of ReplicaSSESpecificationProperty.

Parameters:

  • kms_master_key_id (String)

    The AWS key that should be used for the AWS encryption.



1562
1563
1564
1565
# File 'dynamo_db/cfn_global_table.rb', line 1562

def initialize(kms_master_key_id:)
  @kms_master_key_id = kms_master_key_id
  Jsii::Type.check_type(@kms_master_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "kmsMasterKeyId")
end

Instance Attribute Details

#kms_master_key_idString (readonly)

The AWS key that should be used for the AWS encryption.

To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key alias/aws/dynamodb .



1573
1574
1575
# File 'dynamo_db/cfn_global_table.rb', line 1573

def kms_master_key_id
  @kms_master_key_id
end

Class Method Details

.jsii_propertiesObject



1575
1576
1577
1578
1579
# File 'dynamo_db/cfn_global_table.rb', line 1575

def self.jsii_properties
  {
    :kms_master_key_id => "kmsMasterKeyId",
  }
end

Instance Method Details

#to_jsiiObject



1581
1582
1583
1584
1585
1586
1587
# File 'dynamo_db/cfn_global_table.rb', line 1581

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