Class: AWSCDK::DynamoDB::CfnGlobalTableProps

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

Overview

Properties for defining a CfnGlobalTable.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(replicas:, attribute_definitions: nil, billing_mode: nil, global_secondary_indexes: nil, global_table_source_arn: nil, global_table_witnesses: nil, key_schema: nil, local_secondary_indexes: nil, multi_region_consistency: nil, read_on_demand_throughput_settings: nil, read_provisioned_throughput_settings: nil, sse_specification: nil, stream_specification: nil, table_name: nil, time_to_live_specification: nil, warm_throughput: nil, write_on_demand_throughput_settings: nil, write_provisioned_throughput_settings: nil) ⇒ CfnGlobalTableProps

Returns a new instance of CfnGlobalTableProps.

Parameters:



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'dynamo_db/cfn_global_table_props.rb', line 27

def initialize(replicas:, attribute_definitions: nil, billing_mode: nil, global_secondary_indexes: nil, global_table_source_arn: nil, global_table_witnesses: nil, key_schema: nil, local_secondary_indexes: nil, multi_region_consistency: nil, read_on_demand_throughput_settings: nil, read_provisioned_throughput_settings: nil, sse_specification: nil, stream_specification: nil, table_name: nil, time_to_live_specification: nil, warm_throughput: nil, write_on_demand_throughput_settings: nil, write_provisioned_throughput_settings: nil)
  @replicas = replicas
  Jsii::Type.check_type(@replicas, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZHluYW1vZGIuQ2ZuR2xvYmFsVGFibGUuUmVwbGljYVNwZWNpZmljYXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "replicas")
  @attribute_definitions = attribute_definitions
  Jsii::Type.check_type(@attribute_definitions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZHluYW1vZGIuQ2ZuR2xvYmFsVGFibGUuQXR0cmlidXRlRGVmaW5pdGlvblByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "attributeDefinitions") unless @attribute_definitions.nil?
  @billing_mode = billing_mode
  Jsii::Type.check_type(@billing_mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "billingMode") unless @billing_mode.nil?
  @global_secondary_indexes = global_secondary_indexes
  Jsii::Type.check_type(@global_secondary_indexes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZHluYW1vZGIuQ2ZuR2xvYmFsVGFibGUuR2xvYmFsU2Vjb25kYXJ5SW5kZXhQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "globalSecondaryIndexes") unless @global_secondary_indexes.nil?
  @global_table_source_arn = global_table_source_arn
  Jsii::Type.check_type(@global_table_source_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "globalTableSourceArn") unless @global_table_source_arn.nil?
  @global_table_witnesses = global_table_witnesses
  Jsii::Type.check_type(@global_table_witnesses, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZHluYW1vZGIuQ2ZuR2xvYmFsVGFibGUuR2xvYmFsVGFibGVXaXRuZXNzUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "globalTableWitnesses") unless @global_table_witnesses.nil?
  @key_schema = key_schema
  Jsii::Type.check_type(@key_schema, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZHluYW1vZGIuQ2ZuR2xvYmFsVGFibGUuS2V5U2NoZW1hUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "keySchema") unless @key_schema.nil?
  @local_secondary_indexes = local_secondary_indexes
  Jsii::Type.check_type(@local_secondary_indexes, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZHluYW1vZGIuQ2ZuR2xvYmFsVGFibGUuTG9jYWxTZWNvbmRhcnlJbmRleFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "localSecondaryIndexes") unless @local_secondary_indexes.nil?
  @multi_region_consistency = multi_region_consistency
  Jsii::Type.check_type(@multi_region_consistency, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "multiRegionConsistency") unless @multi_region_consistency.nil?
  @read_on_demand_throughput_settings = read_on_demand_throughput_settings.is_a?(Hash) ? ::AWSCDK::DynamoDB::CfnGlobalTable::ReadOnDemandThroughputSettingsProperty.new(**read_on_demand_throughput_settings.transform_keys(&:to_sym)) : read_on_demand_throughput_settings
  Jsii::Type.check_type(@read_on_demand_throughput_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19keW5hbW9kYi5DZm5HbG9iYWxUYWJsZS5SZWFkT25EZW1hbmRUaHJvdWdocHV0U2V0dGluZ3NQcm9wZXJ0eSJ9XX19")), "readOnDemandThroughputSettings") unless @read_on_demand_throughput_settings.nil?
  @read_provisioned_throughput_settings = read_provisioned_throughput_settings.is_a?(Hash) ? ::AWSCDK::DynamoDB::CfnGlobalTable::GlobalReadProvisionedThroughputSettingsProperty.new(**read_provisioned_throughput_settings.transform_keys(&:to_sym)) : read_provisioned_throughput_settings
  Jsii::Type.check_type(@read_provisioned_throughput_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19keW5hbW9kYi5DZm5HbG9iYWxUYWJsZS5HbG9iYWxSZWFkUHJvdmlzaW9uZWRUaHJvdWdocHV0U2V0dGluZ3NQcm9wZXJ0eSJ9XX19")), "readProvisionedThroughputSettings") unless @read_provisioned_throughput_settings.nil?
  @sse_specification = sse_specification.is_a?(Hash) ? ::AWSCDK::DynamoDB::CfnGlobalTable::SSESpecificationProperty.new(**sse_specification.transform_keys(&:to_sym)) : sse_specification
  Jsii::Type.check_type(@sse_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19keW5hbW9kYi5DZm5HbG9iYWxUYWJsZS5TU0VTcGVjaWZpY2F0aW9uUHJvcGVydHkifV19fQ==")), "sseSpecification") unless @sse_specification.nil?
  @stream_specification = stream_specification.is_a?(Hash) ? ::AWSCDK::DynamoDB::CfnGlobalTable::StreamSpecificationProperty.new(**stream_specification.transform_keys(&:to_sym)) : stream_specification
  Jsii::Type.check_type(@stream_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19keW5hbW9kYi5DZm5HbG9iYWxUYWJsZS5TdHJlYW1TcGVjaWZpY2F0aW9uUHJvcGVydHkifV19fQ==")), "streamSpecification") unless @stream_specification.nil?
  @table_name = table_name
  Jsii::Type.check_type(@table_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "tableName") unless @table_name.nil?
  @time_to_live_specification = time_to_live_specification.is_a?(Hash) ? ::AWSCDK::DynamoDB::CfnGlobalTable::TimeToLiveSpecificationProperty.new(**time_to_live_specification.transform_keys(&:to_sym)) : time_to_live_specification
  Jsii::Type.check_type(@time_to_live_specification, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19keW5hbW9kYi5DZm5HbG9iYWxUYWJsZS5UaW1lVG9MaXZlU3BlY2lmaWNhdGlvblByb3BlcnR5In1dfX0=")), "timeToLiveSpecification") unless @time_to_live_specification.nil?
  @warm_throughput = warm_throughput.is_a?(Hash) ? ::AWSCDK::DynamoDB::CfnGlobalTable::WarmThroughputProperty.new(**warm_throughput.transform_keys(&:to_sym)) : warm_throughput
  Jsii::Type.check_type(@warm_throughput, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19keW5hbW9kYi5DZm5HbG9iYWxUYWJsZS5XYXJtVGhyb3VnaHB1dFByb3BlcnR5In1dfX0=")), "warmThroughput") unless @warm_throughput.nil?
  @write_on_demand_throughput_settings = write_on_demand_throughput_settings.is_a?(Hash) ? ::AWSCDK::DynamoDB::CfnGlobalTable::WriteOnDemandThroughputSettingsProperty.new(**write_on_demand_throughput_settings.transform_keys(&:to_sym)) : write_on_demand_throughput_settings
  Jsii::Type.check_type(@write_on_demand_throughput_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19keW5hbW9kYi5DZm5HbG9iYWxUYWJsZS5Xcml0ZU9uRGVtYW5kVGhyb3VnaHB1dFNldHRpbmdzUHJvcGVydHkifV19fQ==")), "writeOnDemandThroughputSettings") unless @write_on_demand_throughput_settings.nil?
  @write_provisioned_throughput_settings = write_provisioned_throughput_settings.is_a?(Hash) ? ::AWSCDK::DynamoDB::CfnGlobalTable::WriteProvisionedThroughputSettingsProperty.new(**write_provisioned_throughput_settings.transform_keys(&:to_sym)) : write_provisioned_throughput_settings
  Jsii::Type.check_type(@write_provisioned_throughput_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19keW5hbW9kYi5DZm5HbG9iYWxUYWJsZS5Xcml0ZVByb3Zpc2lvbmVkVGhyb3VnaHB1dFNldHRpbmdzUHJvcGVydHkifV19fQ==")), "writeProvisionedThroughputSettings") unless @write_provisioned_throughput_settings.nil?
end

Instance Attribute Details

#attribute_definitionsAWSCDK::IResolvable, ... (readonly)

A list of attributes that describe the key schema for the global table and indexes.



83
84
85
# File 'dynamo_db/cfn_global_table_props.rb', line 83

def attribute_definitions
  @attribute_definitions
end

#billing_modeString? (readonly)

Specifies how you are charged for read and write throughput and how you manage capacity. Valid values are:.

  • PAY_PER_REQUEST
  • PROVISIONED

All replicas in your global table will have the same billing mode. If you use PROVISIONED billing mode, you must provide an auto scaling configuration via the WriteProvisionedThroughputSettings property. The default value of this property is PROVISIONED .



93
94
95
# File 'dynamo_db/cfn_global_table_props.rb', line 93

def billing_mode
  @billing_mode
end

#global_secondary_indexesAWSCDK::IResolvable, ... (readonly)

Global secondary indexes to be created on the global table.

You can create up to 20 global secondary indexes. Each replica in your global table will have the same global secondary index settings. You can only create or delete one global secondary index in a single stack operation.

Since the backfilling of an index could take a long time, CloudFormation does not wait for the index to become active. If a stack operation rolls back, CloudFormation might not delete an index that has been added. In that case, you will need to delete the index manually.



102
103
104
# File 'dynamo_db/cfn_global_table_props.rb', line 102

def global_secondary_indexes
  @global_secondary_indexes
end

#global_table_source_arnString? (readonly)



105
106
107
# File 'dynamo_db/cfn_global_table_props.rb', line 105

def global_table_source_arn
  @global_table_source_arn
end

#global_table_witnessesAWSCDK::IResolvable, ... (readonly)

The list of witnesses of the MRSC global table.

Only one witness Region can be configured per MRSC global table.



112
113
114
# File 'dynamo_db/cfn_global_table_props.rb', line 112

def global_table_witnesses
  @global_table_witnesses
end

#key_schemaAWSCDK::IResolvable, ... (readonly)

Specifies the attributes that make up the primary key for the table.

The attributes in the KeySchema property must also be defined in the AttributeDefinitions property.



119
120
121
# File 'dynamo_db/cfn_global_table_props.rb', line 119

def key_schema
  @key_schema
end

#local_secondary_indexesAWSCDK::IResolvable, ... (readonly)

Local secondary indexes to be created on the table.

You can create up to five local secondary indexes. Each index is scoped to a given hash key value. The size of each hash key can be up to 10 gigabytes. Each replica in your global table will have the same local secondary index settings.



126
127
128
# File 'dynamo_db/cfn_global_table_props.rb', line 126

def local_secondary_indexes
  @local_secondary_indexes
end

#multi_region_consistencyString? (readonly)

Specifies the consistency mode for a new global table.

You can specify one of the following consistency modes:

  • EVENTUAL : Configures a new global table for multi-Region eventual consistency (MREC).
  • STRONG : Configures a new global table for multi-Region strong consistency (MRSC).

If you don't specify this field, the global table consistency mode defaults to EVENTUAL . For more information about global tables consistency modes, see Consistency modes in DynamoDB developer guide.



138
139
140
# File 'dynamo_db/cfn_global_table_props.rb', line 138

def multi_region_consistency
  @multi_region_consistency
end

#read_on_demand_throughput_settingsAWSCDK::IResolvable, ... (readonly)



141
142
143
# File 'dynamo_db/cfn_global_table_props.rb', line 141

def read_on_demand_throughput_settings
  @read_on_demand_throughput_settings
end

#read_provisioned_throughput_settingsAWSCDK::IResolvable, ... (readonly)



144
145
146
# File 'dynamo_db/cfn_global_table_props.rb', line 144

def read_provisioned_throughput_settings
  @read_provisioned_throughput_settings
end

#replicasAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::DynamoDB::CfnGlobalTable::ReplicaSpecificationProperty> (readonly)

Specifies the list of replicas for your global table.

The list must contain at least one element, the region where the stack defining the global table is deployed. For example, if you define your table in a stack deployed to us-east-1, you must have an entry in Replicas with the region us-east-1. You cannot remove the replica in the stack region.

Adding a replica might take a few minutes for an empty table, or up to several hours for large tables. If you want to add or remove a replica, we recommend submitting an UpdateStack operation containing only that change.

If you add or delete a replica during an update, we recommend that you don't update any other resources. If your stack fails to update and is rolled back while adding a new replica, you might need to manually delete the replica.

You can create a new global table with as many replicas as needed. You can add or remove replicas after table creation, but you can only add or remove a single replica in each update. For Multi-Region Strong Consistency (MRSC), you can add or remove up to 3 replicas, or 2 replicas plus a witness Region.



78
79
80
# File 'dynamo_db/cfn_global_table_props.rb', line 78

def replicas
  @replicas
end

#sse_specificationAWSCDK::IResolvable, ... (readonly)

Specifies the settings to enable server-side encryption.

These settings will be applied to all replicas. If you plan to use customer-managed KMS keys, you must provide a key for each replica using the ReplicaSpecification.ReplicaSSESpecification property.



151
152
153
# File 'dynamo_db/cfn_global_table_props.rb', line 151

def sse_specification
  @sse_specification
end

#stream_specificationAWSCDK::IResolvable, ... (readonly)

Specifies the streams settings on your global table.

You must provide a value for this property if your global table contains more than one replica. You can only change the streams settings if your global table has only one replica. For Multi-Region Strong Consistency (MRSC), you do not need to provide a value for this property and can change the settings at any time.



158
159
160
# File 'dynamo_db/cfn_global_table_props.rb', line 158

def stream_specification
  @stream_specification
end

#table_nameString? (readonly)

A name for the global table.

If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID as the table name. For more information, see Name type .

If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.



167
168
169
# File 'dynamo_db/cfn_global_table_props.rb', line 167

def table_name
  @table_name
end

#time_to_live_specificationAWSCDK::IResolvable, ... (readonly)

Specifies the time to live (TTL) settings for the table.

This setting will be applied to all replicas.



174
175
176
# File 'dynamo_db/cfn_global_table_props.rb', line 174

def time_to_live_specification
  @time_to_live_specification
end

#warm_throughputAWSCDK::IResolvable, ... (readonly)

Provides visibility into the number of read and write operations your table or secondary index can instantaneously support.

The settings can be modified using the UpdateTable operation to meet the throughput requirements of an upcoming peak event.



181
182
183
# File 'dynamo_db/cfn_global_table_props.rb', line 181

def warm_throughput
  @warm_throughput
end

#write_on_demand_throughput_settingsAWSCDK::IResolvable, ... (readonly)

Sets the write request settings for a global table or a global secondary index.

You can only specify this setting if your resource uses the PAY_PER_REQUEST BillingMode .



188
189
190
# File 'dynamo_db/cfn_global_table_props.rb', line 188

def write_on_demand_throughput_settings
  @write_on_demand_throughput_settings
end

#write_provisioned_throughput_settingsAWSCDK::IResolvable, ... (readonly)

Specifies an auto scaling policy for write capacity.

This policy will be applied to all replicas. This setting must be specified if BillingMode is set to PROVISIONED .



195
196
197
# File 'dynamo_db/cfn_global_table_props.rb', line 195

def write_provisioned_throughput_settings
  @write_provisioned_throughput_settings
end

Class Method Details

.jsii_propertiesObject



197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# File 'dynamo_db/cfn_global_table_props.rb', line 197

def self.jsii_properties
  {
    :replicas => "replicas",
    :attribute_definitions => "attributeDefinitions",
    :billing_mode => "billingMode",
    :global_secondary_indexes => "globalSecondaryIndexes",
    :global_table_source_arn => "globalTableSourceArn",
    :global_table_witnesses => "globalTableWitnesses",
    :key_schema => "keySchema",
    :local_secondary_indexes => "localSecondaryIndexes",
    :multi_region_consistency => "multiRegionConsistency",
    :read_on_demand_throughput_settings => "readOnDemandThroughputSettings",
    :read_provisioned_throughput_settings => "readProvisionedThroughputSettings",
    :sse_specification => "sseSpecification",
    :stream_specification => "streamSpecification",
    :table_name => "tableName",
    :time_to_live_specification => "timeToLiveSpecification",
    :warm_throughput => "warmThroughput",
    :write_on_demand_throughput_settings => "writeOnDemandThroughputSettings",
    :write_provisioned_throughput_settings => "writeProvisionedThroughputSettings",
  }
end

Instance Method Details

#to_jsiiObject



220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'dynamo_db/cfn_global_table_props.rb', line 220

def to_jsii
  result = {}
  result.merge!({
    "replicas" => @replicas,
    "attributeDefinitions" => @attribute_definitions,
    "billingMode" => @billing_mode,
    "globalSecondaryIndexes" => @global_secondary_indexes,
    "globalTableSourceArn" => @global_table_source_arn,
    "globalTableWitnesses" => @global_table_witnesses,
    "keySchema" => @key_schema,
    "localSecondaryIndexes" => @local_secondary_indexes,
    "multiRegionConsistency" => @multi_region_consistency,
    "readOnDemandThroughputSettings" => @read_on_demand_throughput_settings,
    "readProvisionedThroughputSettings" => @read_provisioned_throughput_settings,
    "sseSpecification" => @sse_specification,
    "streamSpecification" => @stream_specification,
    "tableName" => @table_name,
    "timeToLiveSpecification" => @time_to_live_specification,
    "warmThroughput" => @warm_throughput,
    "writeOnDemandThroughputSettings" => @write_on_demand_throughput_settings,
    "writeProvisionedThroughputSettings" => @write_provisioned_throughput_settings,
  })
  result.compact
end