aws-sdk-dynamodb 1.17.0 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,13 +52,19 @@ module Aws::DynamoDB
52
52
  BatchWriteItemInput = Shapes::StructureShape.new(name: 'BatchWriteItemInput')
53
53
  BatchWriteItemOutput = Shapes::StructureShape.new(name: 'BatchWriteItemOutput')
54
54
  BatchWriteItemRequestMap = Shapes::MapShape.new(name: 'BatchWriteItemRequestMap')
55
+ BillingMode = Shapes::StringShape.new(name: 'BillingMode')
56
+ BillingModeSummary = Shapes::StructureShape.new(name: 'BillingModeSummary')
55
57
  BinaryAttributeValue = Shapes::BlobShape.new(name: 'BinaryAttributeValue')
56
58
  BinarySetAttributeValue = Shapes::ListShape.new(name: 'BinarySetAttributeValue')
57
59
  BooleanAttributeValue = Shapes::BooleanShape.new(name: 'BooleanAttributeValue')
58
60
  BooleanObject = Shapes::BooleanShape.new(name: 'BooleanObject')
61
+ CancellationReason = Shapes::StructureShape.new(name: 'CancellationReason')
62
+ CancellationReasonList = Shapes::ListShape.new(name: 'CancellationReasonList')
59
63
  Capacity = Shapes::StructureShape.new(name: 'Capacity')
64
+ Code = Shapes::StringShape.new(name: 'Code')
60
65
  ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
61
66
  Condition = Shapes::StructureShape.new(name: 'Condition')
67
+ ConditionCheck = Shapes::StructureShape.new(name: 'ConditionCheck')
62
68
  ConditionExpression = Shapes::StringShape.new(name: 'ConditionExpression')
63
69
  ConditionalCheckFailedException = Shapes::StructureShape.new(name: 'ConditionalCheckFailedException')
64
70
  ConditionalOperator = Shapes::StringShape.new(name: 'ConditionalOperator')
@@ -78,6 +84,7 @@ module Aws::DynamoDB
78
84
  CreateTableInput = Shapes::StructureShape.new(name: 'CreateTableInput')
79
85
  CreateTableOutput = Shapes::StructureShape.new(name: 'CreateTableOutput')
80
86
  Date = Shapes::TimestampShape.new(name: 'Date')
87
+ Delete = Shapes::StructureShape.new(name: 'Delete')
81
88
  DeleteBackupInput = Shapes::StructureShape.new(name: 'DeleteBackupInput')
82
89
  DeleteBackupOutput = Shapes::StructureShape.new(name: 'DeleteBackupOutput')
83
90
  DeleteGlobalSecondaryIndexAction = Shapes::StructureShape.new(name: 'DeleteGlobalSecondaryIndexAction')
@@ -114,6 +121,7 @@ module Aws::DynamoDB
114
121
  ExpressionAttributeValueMap = Shapes::MapShape.new(name: 'ExpressionAttributeValueMap')
115
122
  ExpressionAttributeValueVariable = Shapes::StringShape.new(name: 'ExpressionAttributeValueVariable')
116
123
  FilterConditionMap = Shapes::MapShape.new(name: 'FilterConditionMap')
124
+ Get = Shapes::StructureShape.new(name: 'Get')
117
125
  GetItemInput = Shapes::StructureShape.new(name: 'GetItemInput')
118
126
  GetItemOutput = Shapes::StructureShape.new(name: 'GetItemOutput')
119
127
  GlobalSecondaryIndex = Shapes::StructureShape.new(name: 'GlobalSecondaryIndex')
@@ -133,6 +141,7 @@ module Aws::DynamoDB
133
141
  GlobalTableList = Shapes::ListShape.new(name: 'GlobalTableList')
134
142
  GlobalTableNotFoundException = Shapes::StructureShape.new(name: 'GlobalTableNotFoundException')
135
143
  GlobalTableStatus = Shapes::StringShape.new(name: 'GlobalTableStatus')
144
+ IdempotentParameterMismatchException = Shapes::StructureShape.new(name: 'IdempotentParameterMismatchException')
136
145
  IndexName = Shapes::StringShape.new(name: 'IndexName')
137
146
  IndexNotFoundException = Shapes::StructureShape.new(name: 'IndexNotFoundException')
138
147
  IndexStatus = Shapes::StringShape.new(name: 'IndexStatus')
@@ -149,6 +158,8 @@ module Aws::DynamoDB
149
158
  ItemCollectionSizeLimitExceededException = Shapes::StructureShape.new(name: 'ItemCollectionSizeLimitExceededException')
150
159
  ItemCount = Shapes::IntegerShape.new(name: 'ItemCount')
151
160
  ItemList = Shapes::ListShape.new(name: 'ItemList')
161
+ ItemResponse = Shapes::StructureShape.new(name: 'ItemResponse')
162
+ ItemResponseList = Shapes::ListShape.new(name: 'ItemResponseList')
152
163
  KMSMasterKeyArn = Shapes::StringShape.new(name: 'KMSMasterKeyArn')
153
164
  KMSMasterKeyId = Shapes::StringShape.new(name: 'KMSMasterKeyId')
154
165
  Key = Shapes::MapShape.new(name: 'Key')
@@ -182,6 +193,7 @@ module Aws::DynamoDB
182
193
  NextTokenString = Shapes::StringShape.new(name: 'NextTokenString')
183
194
  NonKeyAttributeName = Shapes::StringShape.new(name: 'NonKeyAttributeName')
184
195
  NonKeyAttributeNameList = Shapes::ListShape.new(name: 'NonKeyAttributeNameList')
196
+ NonNegativeLongObject = Shapes::IntegerShape.new(name: 'NonNegativeLongObject')
185
197
  NullAttributeValue = Shapes::BooleanShape.new(name: 'NullAttributeValue')
186
198
  NumberAttributeValue = Shapes::StringShape.new(name: 'NumberAttributeValue')
187
199
  NumberSetAttributeValue = Shapes::ListShape.new(name: 'NumberSetAttributeValue')
@@ -197,6 +209,7 @@ module Aws::DynamoDB
197
209
  ProvisionedThroughput = Shapes::StructureShape.new(name: 'ProvisionedThroughput')
198
210
  ProvisionedThroughputDescription = Shapes::StructureShape.new(name: 'ProvisionedThroughputDescription')
199
211
  ProvisionedThroughputExceededException = Shapes::StructureShape.new(name: 'ProvisionedThroughputExceededException')
212
+ Put = Shapes::StructureShape.new(name: 'Put')
200
213
  PutItemInput = Shapes::StructureShape.new(name: 'PutItemInput')
201
214
  PutItemInputAttributeMap = Shapes::MapShape.new(name: 'PutItemInputAttributeMap')
202
215
  PutItemOutput = Shapes::StructureShape.new(name: 'PutItemOutput')
@@ -221,6 +234,7 @@ module Aws::DynamoDB
221
234
  ReplicaStatus = Shapes::StringShape.new(name: 'ReplicaStatus')
222
235
  ReplicaUpdate = Shapes::StructureShape.new(name: 'ReplicaUpdate')
223
236
  ReplicaUpdateList = Shapes::ListShape.new(name: 'ReplicaUpdateList')
237
+ RequestLimitExceeded = Shapes::StructureShape.new(name: 'RequestLimitExceeded')
224
238
  ResourceArnString = Shapes::StringShape.new(name: 'ResourceArnString')
225
239
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
226
240
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
@@ -233,6 +247,7 @@ module Aws::DynamoDB
233
247
  ReturnConsumedCapacity = Shapes::StringShape.new(name: 'ReturnConsumedCapacity')
234
248
  ReturnItemCollectionMetrics = Shapes::StringShape.new(name: 'ReturnItemCollectionMetrics')
235
249
  ReturnValue = Shapes::StringShape.new(name: 'ReturnValue')
250
+ ReturnValuesOnConditionCheckFailure = Shapes::StringShape.new(name: 'ReturnValuesOnConditionCheckFailure')
236
251
  SSEDescription = Shapes::StructureShape.new(name: 'SSEDescription')
237
252
  SSEEnabled = Shapes::BooleanShape.new(name: 'SSEEnabled')
238
253
  SSESpecification = Shapes::StructureShape.new(name: 'SSESpecification')
@@ -277,7 +292,19 @@ module Aws::DynamoDB
277
292
  TimeToLiveEnabled = Shapes::BooleanShape.new(name: 'TimeToLiveEnabled')
278
293
  TimeToLiveSpecification = Shapes::StructureShape.new(name: 'TimeToLiveSpecification')
279
294
  TimeToLiveStatus = Shapes::StringShape.new(name: 'TimeToLiveStatus')
295
+ TransactGetItem = Shapes::StructureShape.new(name: 'TransactGetItem')
296
+ TransactGetItemList = Shapes::ListShape.new(name: 'TransactGetItemList')
297
+ TransactGetItemsInput = Shapes::StructureShape.new(name: 'TransactGetItemsInput')
298
+ TransactGetItemsOutput = Shapes::StructureShape.new(name: 'TransactGetItemsOutput')
299
+ TransactWriteItem = Shapes::StructureShape.new(name: 'TransactWriteItem')
300
+ TransactWriteItemList = Shapes::ListShape.new(name: 'TransactWriteItemList')
301
+ TransactWriteItemsInput = Shapes::StructureShape.new(name: 'TransactWriteItemsInput')
302
+ TransactWriteItemsOutput = Shapes::StructureShape.new(name: 'TransactWriteItemsOutput')
303
+ TransactionCanceledException = Shapes::StructureShape.new(name: 'TransactionCanceledException')
304
+ TransactionConflictException = Shapes::StructureShape.new(name: 'TransactionConflictException')
305
+ TransactionInProgressException = Shapes::StructureShape.new(name: 'TransactionInProgressException')
280
306
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
307
+ Update = Shapes::StructureShape.new(name: 'Update')
281
308
  UpdateContinuousBackupsInput = Shapes::StructureShape.new(name: 'UpdateContinuousBackupsInput')
282
309
  UpdateContinuousBackupsOutput = Shapes::StructureShape.new(name: 'UpdateContinuousBackupsOutput')
283
310
  UpdateExpression = Shapes::StringShape.new(name: 'UpdateExpression')
@@ -419,8 +446,21 @@ module Aws::DynamoDB
419
446
  BatchWriteItemRequestMap.key = Shapes::ShapeRef.new(shape: TableName)
420
447
  BatchWriteItemRequestMap.value = Shapes::ShapeRef.new(shape: WriteRequests)
421
448
 
449
+ BillingModeSummary.add_member(:billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "BillingMode"))
450
+ BillingModeSummary.add_member(:last_update_to_pay_per_request_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastUpdateToPayPerRequestDateTime"))
451
+ BillingModeSummary.struct_class = Types::BillingModeSummary
452
+
422
453
  BinarySetAttributeValue.member = Shapes::ShapeRef.new(shape: BinaryAttributeValue)
423
454
 
455
+ CancellationReason.add_member(:item, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Item"))
456
+ CancellationReason.add_member(:code, Shapes::ShapeRef.new(shape: Code, location_name: "Code"))
457
+ CancellationReason.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
458
+ CancellationReason.struct_class = Types::CancellationReason
459
+
460
+ CancellationReasonList.member = Shapes::ShapeRef.new(shape: CancellationReason)
461
+
462
+ Capacity.add_member(:read_capacity_units, Shapes::ShapeRef.new(shape: ConsumedCapacityUnits, location_name: "ReadCapacityUnits"))
463
+ Capacity.add_member(:write_capacity_units, Shapes::ShapeRef.new(shape: ConsumedCapacityUnits, location_name: "WriteCapacityUnits"))
424
464
  Capacity.add_member(:capacity_units, Shapes::ShapeRef.new(shape: ConsumedCapacityUnits, location_name: "CapacityUnits"))
425
465
  Capacity.struct_class = Types::Capacity
426
466
 
@@ -428,8 +468,18 @@ module Aws::DynamoDB
428
468
  Condition.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, required: true, location_name: "ComparisonOperator"))
429
469
  Condition.struct_class = Types::Condition
430
470
 
471
+ ConditionCheck.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
472
+ ConditionCheck.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
473
+ ConditionCheck.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, required: true, location_name: "ConditionExpression"))
474
+ ConditionCheck.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
475
+ ConditionCheck.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
476
+ ConditionCheck.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
477
+ ConditionCheck.struct_class = Types::ConditionCheck
478
+
431
479
  ConsumedCapacity.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
432
480
  ConsumedCapacity.add_member(:capacity_units, Shapes::ShapeRef.new(shape: ConsumedCapacityUnits, location_name: "CapacityUnits"))
481
+ ConsumedCapacity.add_member(:read_capacity_units, Shapes::ShapeRef.new(shape: ConsumedCapacityUnits, location_name: "ReadCapacityUnits"))
482
+ ConsumedCapacity.add_member(:write_capacity_units, Shapes::ShapeRef.new(shape: ConsumedCapacityUnits, location_name: "WriteCapacityUnits"))
433
483
  ConsumedCapacity.add_member(:table, Shapes::ShapeRef.new(shape: Capacity, location_name: "Table"))
434
484
  ConsumedCapacity.add_member(:local_secondary_indexes, Shapes::ShapeRef.new(shape: SecondaryIndexesCapacityMap, location_name: "LocalSecondaryIndexes"))
435
485
  ConsumedCapacity.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: SecondaryIndexesCapacityMap, location_name: "GlobalSecondaryIndexes"))
@@ -451,7 +501,7 @@ module Aws::DynamoDB
451
501
  CreateGlobalSecondaryIndexAction.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "IndexName"))
452
502
  CreateGlobalSecondaryIndexAction.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
453
503
  CreateGlobalSecondaryIndexAction.add_member(:projection, Shapes::ShapeRef.new(shape: Projection, required: true, location_name: "Projection"))
454
- CreateGlobalSecondaryIndexAction.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, required: true, location_name: "ProvisionedThroughput"))
504
+ CreateGlobalSecondaryIndexAction.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
455
505
  CreateGlobalSecondaryIndexAction.struct_class = Types::CreateGlobalSecondaryIndexAction
456
506
 
457
507
  CreateGlobalTableInput.add_member(:global_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "GlobalTableName"))
@@ -469,7 +519,8 @@ module Aws::DynamoDB
469
519
  CreateTableInput.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
470
520
  CreateTableInput.add_member(:local_secondary_indexes, Shapes::ShapeRef.new(shape: LocalSecondaryIndexList, location_name: "LocalSecondaryIndexes"))
471
521
  CreateTableInput.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexes"))
472
- CreateTableInput.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, required: true, location_name: "ProvisionedThroughput"))
522
+ CreateTableInput.add_member(:billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "BillingMode"))
523
+ CreateTableInput.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
473
524
  CreateTableInput.add_member(:stream_specification, Shapes::ShapeRef.new(shape: StreamSpecification, location_name: "StreamSpecification"))
474
525
  CreateTableInput.add_member(:sse_specification, Shapes::ShapeRef.new(shape: SSESpecification, location_name: "SSESpecification"))
475
526
  CreateTableInput.struct_class = Types::CreateTableInput
@@ -477,6 +528,14 @@ module Aws::DynamoDB
477
528
  CreateTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
478
529
  CreateTableOutput.struct_class = Types::CreateTableOutput
479
530
 
531
+ Delete.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
532
+ Delete.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
533
+ Delete.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, location_name: "ConditionExpression"))
534
+ Delete.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
535
+ Delete.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
536
+ Delete.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
537
+ Delete.struct_class = Types::Delete
538
+
480
539
  DeleteBackupInput.add_member(:backup_arn, Shapes::ShapeRef.new(shape: BackupArn, required: true, location_name: "BackupArn"))
481
540
  DeleteBackupInput.struct_class = Types::DeleteBackupInput
482
541
 
@@ -589,6 +648,12 @@ module Aws::DynamoDB
589
648
  FilterConditionMap.key = Shapes::ShapeRef.new(shape: AttributeName)
590
649
  FilterConditionMap.value = Shapes::ShapeRef.new(shape: Condition)
591
650
 
651
+ Get.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
652
+ Get.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
653
+ Get.add_member(:projection_expression, Shapes::ShapeRef.new(shape: ProjectionExpression, location_name: "ProjectionExpression"))
654
+ Get.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
655
+ Get.struct_class = Types::Get
656
+
592
657
  GetItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
593
658
  GetItemInput.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
594
659
  GetItemInput.add_member(:attributes_to_get, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributesToGet"))
@@ -605,7 +670,7 @@ module Aws::DynamoDB
605
670
  GlobalSecondaryIndex.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "IndexName"))
606
671
  GlobalSecondaryIndex.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
607
672
  GlobalSecondaryIndex.add_member(:projection, Shapes::ShapeRef.new(shape: Projection, required: true, location_name: "Projection"))
608
- GlobalSecondaryIndex.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, required: true, location_name: "ProvisionedThroughput"))
673
+ GlobalSecondaryIndex.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
609
674
  GlobalSecondaryIndex.struct_class = Types::GlobalSecondaryIndex
610
675
 
611
676
  GlobalSecondaryIndexDescription.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "IndexName"))
@@ -674,6 +739,11 @@ module Aws::DynamoDB
674
739
 
675
740
  ItemList.member = Shapes::ShapeRef.new(shape: AttributeMap)
676
741
 
742
+ ItemResponse.add_member(:item, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Item"))
743
+ ItemResponse.struct_class = Types::ItemResponse
744
+
745
+ ItemResponseList.member = Shapes::ShapeRef.new(shape: ItemResponse)
746
+
677
747
  Key.key = Shapes::ShapeRef.new(shape: AttributeName)
678
748
  Key.value = Shapes::ShapeRef.new(shape: AttributeValue)
679
749
 
@@ -784,10 +854,18 @@ module Aws::DynamoDB
784
854
  ProvisionedThroughputDescription.add_member(:last_increase_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastIncreaseDateTime"))
785
855
  ProvisionedThroughputDescription.add_member(:last_decrease_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastDecreaseDateTime"))
786
856
  ProvisionedThroughputDescription.add_member(:number_of_decreases_today, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "NumberOfDecreasesToday"))
787
- ProvisionedThroughputDescription.add_member(:read_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ReadCapacityUnits"))
788
- ProvisionedThroughputDescription.add_member(:write_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "WriteCapacityUnits"))
857
+ ProvisionedThroughputDescription.add_member(:read_capacity_units, Shapes::ShapeRef.new(shape: NonNegativeLongObject, location_name: "ReadCapacityUnits"))
858
+ ProvisionedThroughputDescription.add_member(:write_capacity_units, Shapes::ShapeRef.new(shape: NonNegativeLongObject, location_name: "WriteCapacityUnits"))
789
859
  ProvisionedThroughputDescription.struct_class = Types::ProvisionedThroughputDescription
790
860
 
861
+ Put.add_member(:item, Shapes::ShapeRef.new(shape: PutItemInputAttributeMap, required: true, location_name: "Item"))
862
+ Put.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
863
+ Put.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, location_name: "ConditionExpression"))
864
+ Put.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
865
+ Put.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
866
+ Put.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
867
+ Put.struct_class = Types::Put
868
+
791
869
  PutItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
792
870
  PutItemInput.add_member(:item, Shapes::ShapeRef.new(shape: PutItemInputAttributeMap, required: true, location_name: "Item"))
793
871
  PutItemInput.add_member(:expected, Shapes::ShapeRef.new(shape: ExpectedAttributeMap, location_name: "Expected"))
@@ -866,9 +944,10 @@ module Aws::DynamoDB
866
944
 
867
945
  ReplicaSettingsDescription.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
868
946
  ReplicaSettingsDescription.add_member(:replica_status, Shapes::ShapeRef.new(shape: ReplicaStatus, location_name: "ReplicaStatus"))
869
- ReplicaSettingsDescription.add_member(:replica_provisioned_read_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ReplicaProvisionedReadCapacityUnits"))
947
+ ReplicaSettingsDescription.add_member(:replica_billing_mode_summary, Shapes::ShapeRef.new(shape: BillingModeSummary, location_name: "ReplicaBillingModeSummary"))
948
+ ReplicaSettingsDescription.add_member(:replica_provisioned_read_capacity_units, Shapes::ShapeRef.new(shape: NonNegativeLongObject, location_name: "ReplicaProvisionedReadCapacityUnits"))
870
949
  ReplicaSettingsDescription.add_member(:replica_provisioned_read_capacity_auto_scaling_settings, Shapes::ShapeRef.new(shape: AutoScalingSettingsDescription, location_name: "ReplicaProvisionedReadCapacityAutoScalingSettings"))
871
- ReplicaSettingsDescription.add_member(:replica_provisioned_write_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ReplicaProvisionedWriteCapacityUnits"))
950
+ ReplicaSettingsDescription.add_member(:replica_provisioned_write_capacity_units, Shapes::ShapeRef.new(shape: NonNegativeLongObject, location_name: "ReplicaProvisionedWriteCapacityUnits"))
872
951
  ReplicaSettingsDescription.add_member(:replica_provisioned_write_capacity_auto_scaling_settings, Shapes::ShapeRef.new(shape: AutoScalingSettingsDescription, location_name: "ReplicaProvisionedWriteCapacityAutoScalingSettings"))
873
952
  ReplicaSettingsDescription.add_member(:replica_global_secondary_index_settings, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexSettingsDescriptionList, location_name: "ReplicaGlobalSecondaryIndexSettings"))
874
953
  ReplicaSettingsDescription.struct_class = Types::ReplicaSettingsDescription
@@ -957,6 +1036,7 @@ module Aws::DynamoDB
957
1036
  SourceTableDetails.add_member(:table_creation_date_time, Shapes::ShapeRef.new(shape: TableCreationDateTime, required: true, location_name: "TableCreationDateTime"))
958
1037
  SourceTableDetails.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, required: true, location_name: "ProvisionedThroughput"))
959
1038
  SourceTableDetails.add_member(:item_count, Shapes::ShapeRef.new(shape: ItemCount, location_name: "ItemCount"))
1039
+ SourceTableDetails.add_member(:billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "BillingMode"))
960
1040
  SourceTableDetails.struct_class = Types::SourceTableDetails
961
1041
 
962
1042
  SourceTableFeatureDetails.add_member(:local_secondary_indexes, Shapes::ShapeRef.new(shape: LocalSecondaryIndexes, location_name: "LocalSecondaryIndexes"))
@@ -982,6 +1062,7 @@ module Aws::DynamoDB
982
1062
  TableDescription.add_member(:item_count, Shapes::ShapeRef.new(shape: Long, location_name: "ItemCount"))
983
1063
  TableDescription.add_member(:table_arn, Shapes::ShapeRef.new(shape: String, location_name: "TableArn"))
984
1064
  TableDescription.add_member(:table_id, Shapes::ShapeRef.new(shape: TableId, location_name: "TableId"))
1065
+ TableDescription.add_member(:billing_mode_summary, Shapes::ShapeRef.new(shape: BillingModeSummary, location_name: "BillingModeSummary"))
985
1066
  TableDescription.add_member(:local_secondary_indexes, Shapes::ShapeRef.new(shape: LocalSecondaryIndexDescriptionList, location_name: "LocalSecondaryIndexes"))
986
1067
  TableDescription.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexDescriptionList, location_name: "GlobalSecondaryIndexes"))
987
1068
  TableDescription.add_member(:stream_specification, Shapes::ShapeRef.new(shape: StreamSpecification, location_name: "StreamSpecification"))
@@ -1013,10 +1094,50 @@ module Aws::DynamoDB
1013
1094
  TimeToLiveSpecification.add_member(:attribute_name, Shapes::ShapeRef.new(shape: TimeToLiveAttributeName, required: true, location_name: "AttributeName"))
1014
1095
  TimeToLiveSpecification.struct_class = Types::TimeToLiveSpecification
1015
1096
 
1097
+ TransactGetItem.add_member(:get, Shapes::ShapeRef.new(shape: Get, required: true, location_name: "Get"))
1098
+ TransactGetItem.struct_class = Types::TransactGetItem
1099
+
1100
+ TransactGetItemList.member = Shapes::ShapeRef.new(shape: TransactGetItem)
1101
+
1102
+ TransactGetItemsInput.add_member(:transact_items, Shapes::ShapeRef.new(shape: TransactGetItemList, required: true, location_name: "TransactItems"))
1103
+ TransactGetItemsInput.add_member(:return_consumed_capacity, Shapes::ShapeRef.new(shape: ReturnConsumedCapacity, location_name: "ReturnConsumedCapacity"))
1104
+ TransactGetItemsInput.struct_class = Types::TransactGetItemsInput
1105
+
1106
+ TransactGetItemsOutput.add_member(:consumed_capacity, Shapes::ShapeRef.new(shape: ConsumedCapacityMultiple, location_name: "ConsumedCapacity"))
1107
+ TransactGetItemsOutput.add_member(:responses, Shapes::ShapeRef.new(shape: ItemResponseList, location_name: "Responses"))
1108
+ TransactGetItemsOutput.struct_class = Types::TransactGetItemsOutput
1109
+
1110
+ TransactWriteItem.add_member(:condition_check, Shapes::ShapeRef.new(shape: ConditionCheck, location_name: "ConditionCheck"))
1111
+ TransactWriteItem.add_member(:put, Shapes::ShapeRef.new(shape: Put, location_name: "Put"))
1112
+ TransactWriteItem.add_member(:delete, Shapes::ShapeRef.new(shape: Delete, location_name: "Delete"))
1113
+ TransactWriteItem.add_member(:update, Shapes::ShapeRef.new(shape: Update, location_name: "Update"))
1114
+ TransactWriteItem.struct_class = Types::TransactWriteItem
1115
+
1116
+ TransactWriteItemList.member = Shapes::ShapeRef.new(shape: TransactWriteItem)
1117
+
1118
+ TransactWriteItemsInput.add_member(:transact_items, Shapes::ShapeRef.new(shape: TransactWriteItemList, required: true, location_name: "TransactItems"))
1119
+ TransactWriteItemsInput.add_member(:return_consumed_capacity, Shapes::ShapeRef.new(shape: ReturnConsumedCapacity, location_name: "ReturnConsumedCapacity"))
1120
+ TransactWriteItemsInput.add_member(:return_item_collection_metrics, Shapes::ShapeRef.new(shape: ReturnItemCollectionMetrics, location_name: "ReturnItemCollectionMetrics"))
1121
+ TransactWriteItemsInput.add_member(:client_request_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
1122
+ TransactWriteItemsInput.struct_class = Types::TransactWriteItemsInput
1123
+
1124
+ TransactWriteItemsOutput.add_member(:consumed_capacity, Shapes::ShapeRef.new(shape: ConsumedCapacityMultiple, location_name: "ConsumedCapacity"))
1125
+ TransactWriteItemsOutput.add_member(:item_collection_metrics, Shapes::ShapeRef.new(shape: ItemCollectionMetricsPerTable, location_name: "ItemCollectionMetrics"))
1126
+ TransactWriteItemsOutput.struct_class = Types::TransactWriteItemsOutput
1127
+
1016
1128
  UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, required: true, location_name: "ResourceArn"))
1017
1129
  UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
1018
1130
  UntagResourceInput.struct_class = Types::UntagResourceInput
1019
1131
 
1132
+ Update.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
1133
+ Update.add_member(:update_expression, Shapes::ShapeRef.new(shape: UpdateExpression, required: true, location_name: "UpdateExpression"))
1134
+ Update.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1135
+ Update.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, location_name: "ConditionExpression"))
1136
+ Update.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
1137
+ Update.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
1138
+ Update.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
1139
+ Update.struct_class = Types::Update
1140
+
1020
1141
  UpdateContinuousBackupsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1021
1142
  UpdateContinuousBackupsInput.add_member(:point_in_time_recovery_specification, Shapes::ShapeRef.new(shape: PointInTimeRecoverySpecification, required: true, location_name: "PointInTimeRecoverySpecification"))
1022
1143
  UpdateContinuousBackupsInput.struct_class = Types::UpdateContinuousBackupsInput
@@ -1036,6 +1157,7 @@ module Aws::DynamoDB
1036
1157
  UpdateGlobalTableOutput.struct_class = Types::UpdateGlobalTableOutput
1037
1158
 
1038
1159
  UpdateGlobalTableSettingsInput.add_member(:global_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "GlobalTableName"))
1160
+ UpdateGlobalTableSettingsInput.add_member(:global_table_billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "GlobalTableBillingMode"))
1039
1161
  UpdateGlobalTableSettingsInput.add_member(:global_table_provisioned_write_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "GlobalTableProvisionedWriteCapacityUnits"))
1040
1162
  UpdateGlobalTableSettingsInput.add_member(:global_table_provisioned_write_capacity_auto_scaling_settings_update, Shapes::ShapeRef.new(shape: AutoScalingSettingsUpdate, location_name: "GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate"))
1041
1163
  UpdateGlobalTableSettingsInput.add_member(:global_table_global_secondary_index_settings_update, Shapes::ShapeRef.new(shape: GlobalTableGlobalSecondaryIndexSettingsUpdateList, location_name: "GlobalTableGlobalSecondaryIndexSettingsUpdate"))
@@ -1067,6 +1189,7 @@ module Aws::DynamoDB
1067
1189
 
1068
1190
  UpdateTableInput.add_member(:attribute_definitions, Shapes::ShapeRef.new(shape: AttributeDefinitions, location_name: "AttributeDefinitions"))
1069
1191
  UpdateTableInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1192
+ UpdateTableInput.add_member(:billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "BillingMode"))
1070
1193
  UpdateTableInput.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
1071
1194
  UpdateTableInput.add_member(:global_secondary_index_updates, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexUpdateList, location_name: "GlobalSecondaryIndexUpdates"))
1072
1195
  UpdateTableInput.add_member(:stream_specification, Shapes::ShapeRef.new(shape: StreamSpecification, location_name: "StreamSpecification"))
@@ -1119,6 +1242,7 @@ module Aws::DynamoDB
1119
1242
  o.output = Shapes::ShapeRef.new(shape: BatchGetItemOutput)
1120
1243
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1121
1244
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1245
+ o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
1122
1246
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1123
1247
  o[:pager] = Aws::Pager.new(
1124
1248
  tokens: {
@@ -1138,6 +1262,7 @@ module Aws::DynamoDB
1138
1262
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1139
1263
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1140
1264
  o.errors << Shapes::ShapeRef.new(shape: ItemCollectionSizeLimitExceededException)
1265
+ o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
1141
1266
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1142
1267
  end)
1143
1268
 
@@ -1210,6 +1335,8 @@ module Aws::DynamoDB
1210
1335
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1211
1336
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1212
1337
  o.errors << Shapes::ShapeRef.new(shape: ItemCollectionSizeLimitExceededException)
1338
+ o.errors << Shapes::ShapeRef.new(shape: TransactionConflictException)
1339
+ o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
1213
1340
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1214
1341
  end)
1215
1342
 
@@ -1329,6 +1456,7 @@ module Aws::DynamoDB
1329
1456
  o.output = Shapes::ShapeRef.new(shape: GetItemOutput)
1330
1457
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1331
1458
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1459
+ o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
1332
1460
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1333
1461
  end)
1334
1462
 
@@ -1395,6 +1523,8 @@ module Aws::DynamoDB
1395
1523
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1396
1524
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1397
1525
  o.errors << Shapes::ShapeRef.new(shape: ItemCollectionSizeLimitExceededException)
1526
+ o.errors << Shapes::ShapeRef.new(shape: TransactionConflictException)
1527
+ o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
1398
1528
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1399
1529
  end)
1400
1530
 
@@ -1408,6 +1538,7 @@ module Aws::DynamoDB
1408
1538
  o.output = Shapes::ShapeRef.new(shape: QueryOutput)
1409
1539
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1410
1540
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1541
+ o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
1411
1542
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1412
1543
  o[:pager] = Aws::Pager.new(
1413
1544
  limit_key: "limit",
@@ -1460,6 +1591,7 @@ module Aws::DynamoDB
1460
1591
  o.output = Shapes::ShapeRef.new(shape: ScanOutput)
1461
1592
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1462
1593
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1594
+ o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
1463
1595
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1464
1596
  o[:pager] = Aws::Pager.new(
1465
1597
  limit_key: "limit",
@@ -1483,6 +1615,34 @@ module Aws::DynamoDB
1483
1615
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1484
1616
  end)
1485
1617
 
1618
+ api.add_operation(:transact_get_items, Seahorse::Model::Operation.new.tap do |o|
1619
+ o.name = "TransactGetItems"
1620
+ o.http_method = "POST"
1621
+ o.http_request_uri = "/"
1622
+ o.endpoint_discovery = {
1623
+ }
1624
+ o.input = Shapes::ShapeRef.new(shape: TransactGetItemsInput)
1625
+ o.output = Shapes::ShapeRef.new(shape: TransactGetItemsOutput)
1626
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1627
+ o.errors << Shapes::ShapeRef.new(shape: TransactionCanceledException)
1628
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1629
+ end)
1630
+
1631
+ api.add_operation(:transact_write_items, Seahorse::Model::Operation.new.tap do |o|
1632
+ o.name = "TransactWriteItems"
1633
+ o.http_method = "POST"
1634
+ o.http_request_uri = "/"
1635
+ o.endpoint_discovery = {
1636
+ }
1637
+ o.input = Shapes::ShapeRef.new(shape: TransactWriteItemsInput)
1638
+ o.output = Shapes::ShapeRef.new(shape: TransactWriteItemsOutput)
1639
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1640
+ o.errors << Shapes::ShapeRef.new(shape: TransactionCanceledException)
1641
+ o.errors << Shapes::ShapeRef.new(shape: TransactionInProgressException)
1642
+ o.errors << Shapes::ShapeRef.new(shape: IdempotentParameterMismatchException)
1643
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1644
+ end)
1645
+
1486
1646
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1487
1647
  o.name = "UntagResource"
1488
1648
  o.http_method = "POST"
@@ -1553,6 +1713,8 @@ module Aws::DynamoDB
1553
1713
  o.errors << Shapes::ShapeRef.new(shape: ProvisionedThroughputExceededException)
1554
1714
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1555
1715
  o.errors << Shapes::ShapeRef.new(shape: ItemCollectionSizeLimitExceededException)
1716
+ o.errors << Shapes::ShapeRef.new(shape: TransactionConflictException)
1717
+ o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
1556
1718
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1557
1719
  end)
1558
1720
 
@@ -274,13 +274,14 @@ module Aws::DynamoDB
274
274
  # projection_type: "ALL", # accepts ALL, KEYS_ONLY, INCLUDE
275
275
  # non_key_attributes: ["NonKeyAttributeName"],
276
276
  # },
277
- # provisioned_throughput: { # required
277
+ # provisioned_throughput: {
278
278
  # read_capacity_units: 1, # required
279
279
  # write_capacity_units: 1, # required
280
280
  # },
281
281
  # },
282
282
  # ],
283
- # provisioned_throughput: { # required
283
+ # billing_mode: "PROVISIONED", # accepts PROVISIONED, PAY_PER_REQUEST
284
+ # provisioned_throughput: {
284
285
  # read_capacity_units: 1, # required
285
286
  # write_capacity_units: 1, # required
286
287
  # },
@@ -423,11 +424,24 @@ module Aws::DynamoDB
423
424
  # * `ProvisionedThroughput` - The provisioned throughput settings for
424
425
  # the global secondary index, consisting of read and write capacity
425
426
  # units.
426
- # @option options [required, Types::ProvisionedThroughput] :provisioned_throughput
427
+ # @option options [String] :billing_mode
428
+ # Controls how you are charged for read and write throughput and how you
429
+ # manage capacity. This setting can be changed later.
430
+ #
431
+ # * `PROVISIONED` - Sets the billing mode to `PROVISIONED`. We recommend
432
+ # using `PROVISIONED` for predictable workloads.
433
+ #
434
+ # * `PAY_PER_REQUEST` - Sets the billing mode to `PAY_PER_REQUEST`. We
435
+ # recommend using `PAY_PER_REQUEST` for unpredictable workloads.
436
+ # @option options [Types::ProvisionedThroughput] :provisioned_throughput
427
437
  # Represents the provisioned throughput settings for a specified table
428
438
  # or index. The settings can be modified using the `UpdateTable`
429
439
  # operation.
430
440
  #
441
+ # If you set BillingMode as `PROVISIONED`, you must specify this
442
+ # property. If you set BillingMode as `PAY_PER_REQUEST`, you cannot
443
+ # specify this property.
444
+ #
431
445
  # For current minimum and maximum provisioned throughput values, see
432
446
  # [Limits][1] in the *Amazon DynamoDB Developer Guide*.
433
447
  #