aws-sdk-dynamodb 1.66.0 → 1.70.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -370,6 +370,8 @@ module Aws::DynamoDB
370
370
  TableAlreadyExistsException = Shapes::StructureShape.new(name: 'TableAlreadyExistsException')
371
371
  TableArn = Shapes::StringShape.new(name: 'TableArn')
372
372
  TableAutoScalingDescription = Shapes::StructureShape.new(name: 'TableAutoScalingDescription')
373
+ TableClass = Shapes::StringShape.new(name: 'TableClass')
374
+ TableClassSummary = Shapes::StructureShape.new(name: 'TableClassSummary')
373
375
  TableCreationDateTime = Shapes::TimestampShape.new(name: 'TableCreationDateTime')
374
376
  TableDescription = Shapes::StructureShape.new(name: 'TableDescription')
375
377
  TableId = Shapes::StringShape.new(name: 'TableId')
@@ -534,9 +536,11 @@ module Aws::DynamoDB
534
536
  BackupSummary.struct_class = Types::BackupSummary
535
537
 
536
538
  BatchExecuteStatementInput.add_member(:statements, Shapes::ShapeRef.new(shape: PartiQLBatchRequest, required: true, location_name: "Statements"))
539
+ BatchExecuteStatementInput.add_member(:return_consumed_capacity, Shapes::ShapeRef.new(shape: ReturnConsumedCapacity, location_name: "ReturnConsumedCapacity"))
537
540
  BatchExecuteStatementInput.struct_class = Types::BatchExecuteStatementInput
538
541
 
539
542
  BatchExecuteStatementOutput.add_member(:responses, Shapes::ShapeRef.new(shape: PartiQLBatchResponse, location_name: "Responses"))
543
+ BatchExecuteStatementOutput.add_member(:consumed_capacity, Shapes::ShapeRef.new(shape: ConsumedCapacityMultiple, location_name: "ConsumedCapacity"))
540
544
  BatchExecuteStatementOutput.struct_class = Types::BatchExecuteStatementOutput
541
545
 
542
546
  BatchGetItemInput.add_member(:request_items, Shapes::ShapeRef.new(shape: BatchGetRequestMap, required: true, location_name: "RequestItems"))
@@ -668,6 +672,7 @@ module Aws::DynamoDB
668
672
  CreateReplicationGroupMemberAction.add_member(:kms_master_key_id, Shapes::ShapeRef.new(shape: KMSMasterKeyId, location_name: "KMSMasterKeyId"))
669
673
  CreateReplicationGroupMemberAction.add_member(:provisioned_throughput_override, Shapes::ShapeRef.new(shape: ProvisionedThroughputOverride, location_name: "ProvisionedThroughputOverride"))
670
674
  CreateReplicationGroupMemberAction.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexes"))
675
+ CreateReplicationGroupMemberAction.add_member(:table_class_override, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClassOverride"))
671
676
  CreateReplicationGroupMemberAction.struct_class = Types::CreateReplicationGroupMemberAction
672
677
 
673
678
  CreateTableInput.add_member(:attribute_definitions, Shapes::ShapeRef.new(shape: AttributeDefinitions, required: true, location_name: "AttributeDefinitions"))
@@ -680,6 +685,7 @@ module Aws::DynamoDB
680
685
  CreateTableInput.add_member(:stream_specification, Shapes::ShapeRef.new(shape: StreamSpecification, location_name: "StreamSpecification"))
681
686
  CreateTableInput.add_member(:sse_specification, Shapes::ShapeRef.new(shape: SSESpecification, location_name: "SSESpecification"))
682
687
  CreateTableInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
688
+ CreateTableInput.add_member(:table_class, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClass"))
683
689
  CreateTableInput.struct_class = Types::CreateTableInput
684
690
 
685
691
  CreateTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
@@ -828,17 +834,21 @@ module Aws::DynamoDB
828
834
  ExecuteStatementInput.add_member(:parameters, Shapes::ShapeRef.new(shape: PreparedStatementParameters, location_name: "Parameters"))
829
835
  ExecuteStatementInput.add_member(:consistent_read, Shapes::ShapeRef.new(shape: ConsistentRead, location_name: "ConsistentRead"))
830
836
  ExecuteStatementInput.add_member(:next_token, Shapes::ShapeRef.new(shape: PartiQLNextToken, location_name: "NextToken"))
837
+ ExecuteStatementInput.add_member(:return_consumed_capacity, Shapes::ShapeRef.new(shape: ReturnConsumedCapacity, location_name: "ReturnConsumedCapacity"))
831
838
  ExecuteStatementInput.struct_class = Types::ExecuteStatementInput
832
839
 
833
840
  ExecuteStatementOutput.add_member(:items, Shapes::ShapeRef.new(shape: ItemList, location_name: "Items"))
834
841
  ExecuteStatementOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: PartiQLNextToken, location_name: "NextToken"))
842
+ ExecuteStatementOutput.add_member(:consumed_capacity, Shapes::ShapeRef.new(shape: ConsumedCapacity, location_name: "ConsumedCapacity"))
835
843
  ExecuteStatementOutput.struct_class = Types::ExecuteStatementOutput
836
844
 
837
845
  ExecuteTransactionInput.add_member(:transact_statements, Shapes::ShapeRef.new(shape: ParameterizedStatements, required: true, location_name: "TransactStatements"))
838
846
  ExecuteTransactionInput.add_member(:client_request_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "ClientRequestToken", metadata: {"idempotencyToken"=>true}))
847
+ ExecuteTransactionInput.add_member(:return_consumed_capacity, Shapes::ShapeRef.new(shape: ReturnConsumedCapacity, location_name: "ReturnConsumedCapacity"))
839
848
  ExecuteTransactionInput.struct_class = Types::ExecuteTransactionInput
840
849
 
841
850
  ExecuteTransactionOutput.add_member(:responses, Shapes::ShapeRef.new(shape: ItemResponseList, location_name: "Responses"))
851
+ ExecuteTransactionOutput.add_member(:consumed_capacity, Shapes::ShapeRef.new(shape: ConsumedCapacityMultiple, location_name: "ConsumedCapacity"))
842
852
  ExecuteTransactionOutput.struct_class = Types::ExecuteTransactionOutput
843
853
 
844
854
  ExpectedAttributeMap.key = Shapes::ShapeRef.new(shape: AttributeName)
@@ -1295,6 +1305,7 @@ module Aws::DynamoDB
1295
1305
  ReplicaDescription.add_member(:provisioned_throughput_override, Shapes::ShapeRef.new(shape: ProvisionedThroughputOverride, location_name: "ProvisionedThroughputOverride"))
1296
1306
  ReplicaDescription.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexDescriptionList, location_name: "GlobalSecondaryIndexes"))
1297
1307
  ReplicaDescription.add_member(:replica_inaccessible_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "ReplicaInaccessibleDateTime"))
1308
+ ReplicaDescription.add_member(:replica_table_class_summary, Shapes::ShapeRef.new(shape: TableClassSummary, location_name: "ReplicaTableClassSummary"))
1298
1309
  ReplicaDescription.struct_class = Types::ReplicaDescription
1299
1310
 
1300
1311
  ReplicaDescriptionList.member = Shapes::ShapeRef.new(shape: ReplicaDescription)
@@ -1355,6 +1366,7 @@ module Aws::DynamoDB
1355
1366
  ReplicaSettingsDescription.add_member(:replica_provisioned_write_capacity_units, Shapes::ShapeRef.new(shape: NonNegativeLongObject, location_name: "ReplicaProvisionedWriteCapacityUnits"))
1356
1367
  ReplicaSettingsDescription.add_member(:replica_provisioned_write_capacity_auto_scaling_settings, Shapes::ShapeRef.new(shape: AutoScalingSettingsDescription, location_name: "ReplicaProvisionedWriteCapacityAutoScalingSettings"))
1357
1368
  ReplicaSettingsDescription.add_member(:replica_global_secondary_index_settings, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexSettingsDescriptionList, location_name: "ReplicaGlobalSecondaryIndexSettings"))
1369
+ ReplicaSettingsDescription.add_member(:replica_table_class_summary, Shapes::ShapeRef.new(shape: TableClassSummary, location_name: "ReplicaTableClassSummary"))
1358
1370
  ReplicaSettingsDescription.struct_class = Types::ReplicaSettingsDescription
1359
1371
 
1360
1372
  ReplicaSettingsDescriptionList.member = Shapes::ShapeRef.new(shape: ReplicaSettingsDescription)
@@ -1363,6 +1375,7 @@ module Aws::DynamoDB
1363
1375
  ReplicaSettingsUpdate.add_member(:replica_provisioned_read_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ReplicaProvisionedReadCapacityUnits"))
1364
1376
  ReplicaSettingsUpdate.add_member(:replica_provisioned_read_capacity_auto_scaling_settings_update, Shapes::ShapeRef.new(shape: AutoScalingSettingsUpdate, location_name: "ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate"))
1365
1377
  ReplicaSettingsUpdate.add_member(:replica_global_secondary_index_settings_update, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexSettingsUpdateList, location_name: "ReplicaGlobalSecondaryIndexSettingsUpdate"))
1378
+ ReplicaSettingsUpdate.add_member(:replica_table_class, Shapes::ShapeRef.new(shape: TableClass, location_name: "ReplicaTableClass"))
1366
1379
  ReplicaSettingsUpdate.struct_class = Types::ReplicaSettingsUpdate
1367
1380
 
1368
1381
  ReplicaSettingsUpdateList.member = Shapes::ShapeRef.new(shape: ReplicaSettingsUpdate)
@@ -1493,6 +1506,10 @@ module Aws::DynamoDB
1493
1506
  TableAutoScalingDescription.add_member(:replicas, Shapes::ShapeRef.new(shape: ReplicaAutoScalingDescriptionList, location_name: "Replicas"))
1494
1507
  TableAutoScalingDescription.struct_class = Types::TableAutoScalingDescription
1495
1508
 
1509
+ TableClassSummary.add_member(:table_class, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClass"))
1510
+ TableClassSummary.add_member(:last_update_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastUpdateDateTime"))
1511
+ TableClassSummary.struct_class = Types::TableClassSummary
1512
+
1496
1513
  TableDescription.add_member(:attribute_definitions, Shapes::ShapeRef.new(shape: AttributeDefinitions, location_name: "AttributeDefinitions"))
1497
1514
  TableDescription.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
1498
1515
  TableDescription.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, location_name: "KeySchema"))
@@ -1514,6 +1531,7 @@ module Aws::DynamoDB
1514
1531
  TableDescription.add_member(:restore_summary, Shapes::ShapeRef.new(shape: RestoreSummary, location_name: "RestoreSummary"))
1515
1532
  TableDescription.add_member(:sse_description, Shapes::ShapeRef.new(shape: SSEDescription, location_name: "SSEDescription"))
1516
1533
  TableDescription.add_member(:archival_summary, Shapes::ShapeRef.new(shape: ArchivalSummary, location_name: "ArchivalSummary"))
1534
+ TableDescription.add_member(:table_class_summary, Shapes::ShapeRef.new(shape: TableClassSummary, location_name: "TableClassSummary"))
1517
1535
  TableDescription.struct_class = Types::TableDescription
1518
1536
 
1519
1537
  TableInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
@@ -1661,6 +1679,7 @@ module Aws::DynamoDB
1661
1679
  UpdateReplicationGroupMemberAction.add_member(:kms_master_key_id, Shapes::ShapeRef.new(shape: KMSMasterKeyId, location_name: "KMSMasterKeyId"))
1662
1680
  UpdateReplicationGroupMemberAction.add_member(:provisioned_throughput_override, Shapes::ShapeRef.new(shape: ProvisionedThroughputOverride, location_name: "ProvisionedThroughputOverride"))
1663
1681
  UpdateReplicationGroupMemberAction.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexes"))
1682
+ UpdateReplicationGroupMemberAction.add_member(:table_class_override, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClassOverride"))
1664
1683
  UpdateReplicationGroupMemberAction.struct_class = Types::UpdateReplicationGroupMemberAction
1665
1684
 
1666
1685
  UpdateTableInput.add_member(:attribute_definitions, Shapes::ShapeRef.new(shape: AttributeDefinitions, location_name: "AttributeDefinitions"))
@@ -1671,6 +1690,7 @@ module Aws::DynamoDB
1671
1690
  UpdateTableInput.add_member(:stream_specification, Shapes::ShapeRef.new(shape: StreamSpecification, location_name: "StreamSpecification"))
1672
1691
  UpdateTableInput.add_member(:sse_specification, Shapes::ShapeRef.new(shape: SSESpecification, location_name: "SSESpecification"))
1673
1692
  UpdateTableInput.add_member(:replica_updates, Shapes::ShapeRef.new(shape: ReplicationGroupUpdateList, location_name: "ReplicaUpdates"))
1693
+ UpdateTableInput.add_member(:table_class, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClass"))
1674
1694
  UpdateTableInput.struct_class = Types::UpdateTableInput
1675
1695
 
1676
1696
  UpdateTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
@@ -143,8 +143,8 @@ module Aws::DynamoDB
143
143
  # [2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html
144
144
  # [3]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.AttributesToGet.html
145
145
  # @option options [String] :return_consumed_capacity
146
- # Determines the level of detail about provisioned throughput
147
- # consumption that is returned in the response:
146
+ # Determines the level of detail about either provisioned or on-demand
147
+ # throughput consumption that is returned in the response:
148
148
  #
149
149
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
150
150
  # for the operation, together with `ConsumedCapacity` for each table
@@ -219,8 +219,8 @@ module Aws::DynamoDB
219
219
  # the data types for those attributes must match those of the schema
220
220
  # in the table's attribute definition.
221
221
  # @option options [String] :return_consumed_capacity
222
- # Determines the level of detail about provisioned throughput
223
- # consumption that is returned in the response:
222
+ # Determines the level of detail about either provisioned or on-demand
223
+ # throughput consumption that is returned in the response:
224
224
  #
225
225
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
226
226
  # for the operation, together with `ConsumedCapacity` for each table
@@ -315,6 +315,7 @@ module Aws::DynamoDB
315
315
  # value: "TagValueString", # required
316
316
  # },
317
317
  # ],
318
+ # table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
318
319
  # })
319
320
  # @param [Hash] options ({})
320
321
  # @option options [required, Array<Types::AttributeDefinition>] :attribute_definitions
@@ -508,6 +509,9 @@ module Aws::DynamoDB
508
509
  #
509
510
  #
510
511
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html
512
+ # @option options [String] :table_class
513
+ # The table class of the new table. Valid values are `STANDARD` and
514
+ # `STANDARD_INFREQUENT_ACCESS`.
511
515
  # @return [Table]
512
516
  def create_table(options = {})
513
517
  resp = @client.create_table(options)
@@ -356,6 +356,12 @@ module Aws::DynamoDB
356
356
  data[:archival_summary]
357
357
  end
358
358
 
359
+ # Contains details of the table class.
360
+ # @return [Types::TableClassSummary]
361
+ def table_class_summary
362
+ data[:table_class_summary]
363
+ end
364
+
359
365
  # @!endgroup
360
366
 
361
367
  # @return [Client]
@@ -569,8 +575,8 @@ module Aws::DynamoDB
569
575
  #
570
576
  # </note>
571
577
  # @option options [String] :return_consumed_capacity
572
- # Determines the level of detail about provisioned throughput
573
- # consumption that is returned in the response:
578
+ # Determines the level of detail about either provisioned or on-demand
579
+ # throughput consumption that is returned in the response:
574
580
  #
575
581
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
576
582
  # for the operation, together with `ConsumedCapacity` for each table
@@ -728,8 +734,8 @@ module Aws::DynamoDB
728
734
  # operation uses strongly consistent reads; otherwise, the operation
729
735
  # uses eventually consistent reads.
730
736
  # @option options [String] :return_consumed_capacity
731
- # Determines the level of detail about provisioned throughput
732
- # consumption that is returned in the response:
737
+ # Determines the level of detail about either provisioned or on-demand
738
+ # throughput consumption that is returned in the response:
733
739
  #
734
740
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
735
741
  # for the operation, together with `ConsumedCapacity` for each table
@@ -897,8 +903,8 @@ module Aws::DynamoDB
897
903
  #
898
904
  # </note>
899
905
  # @option options [String] :return_consumed_capacity
900
- # Determines the level of detail about provisioned throughput
901
- # consumption that is returned in the response:
906
+ # Determines the level of detail about either provisioned or on-demand
907
+ # throughput consumption that is returned in the response:
902
908
  #
903
909
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
904
910
  # for the operation, together with `ConsumedCapacity` for each table
@@ -1198,8 +1204,8 @@ module Aws::DynamoDB
1198
1204
  # The data type for `ExclusiveStartKey` must be String, Number, or
1199
1205
  # Binary. No set data types are allowed.
1200
1206
  # @option options [String] :return_consumed_capacity
1201
- # Determines the level of detail about provisioned throughput
1202
- # consumption that is returned in the response:
1207
+ # Determines the level of detail about either provisioned or on-demand
1208
+ # throughput consumption that is returned in the response:
1203
1209
  #
1204
1210
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
1205
1211
  # for the operation, together with `ConsumedCapacity` for each table
@@ -1550,8 +1556,8 @@ module Aws::DynamoDB
1550
1556
  # must specify the same segment whose previous `Scan` returned the
1551
1557
  # corresponding value of `LastEvaluatedKey`.
1552
1558
  # @option options [String] :return_consumed_capacity
1553
- # Determines the level of detail about provisioned throughput
1554
- # consumption that is returned in the response:
1559
+ # Determines the level of detail about either provisioned or on-demand
1560
+ # throughput consumption that is returned in the response:
1555
1561
  #
1556
1562
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
1557
1563
  # for the operation, together with `ConsumedCapacity` for each table
@@ -1797,6 +1803,7 @@ module Aws::DynamoDB
1797
1803
  # },
1798
1804
  # },
1799
1805
  # ],
1806
+ # table_class_override: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
1800
1807
  # },
1801
1808
  # update: {
1802
1809
  # region_name: "RegionName", # required
@@ -1812,12 +1819,14 @@ module Aws::DynamoDB
1812
1819
  # },
1813
1820
  # },
1814
1821
  # ],
1822
+ # table_class_override: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
1815
1823
  # },
1816
1824
  # delete: {
1817
1825
  # region_name: "RegionName", # required
1818
1826
  # },
1819
1827
  # },
1820
1828
  # ],
1829
+ # table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
1821
1830
  # })
1822
1831
  # @param [Hash] options ({})
1823
1832
  # @option options [Array<Types::AttributeDefinition>] :attribute_definitions
@@ -1890,6 +1899,9 @@ module Aws::DynamoDB
1890
1899
  #
1891
1900
  #
1892
1901
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.V2.html
1902
+ # @option options [String] :table_class
1903
+ # The table class of the table to be updated. Valid values are
1904
+ # `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
1893
1905
  # @return [Table]
1894
1906
  def update(options = {})
1895
1907
  options = options.merge(table_name: @name)
@@ -1994,8 +2006,8 @@ module Aws::DynamoDB
1994
2006
  #
1995
2007
  # The values returned are strongly consistent.
1996
2008
  # @option options [String] :return_consumed_capacity
1997
- # Determines the level of detail about provisioned throughput
1998
- # consumption that is returned in the response:
2009
+ # Determines the level of detail about either provisioned or on-demand
2010
+ # throughput consumption that is returned in the response:
1999
2011
  #
2000
2012
  # * `INDEXES` - The response includes the aggregate `ConsumedCapacity`
2001
2013
  # for the operation, together with `ConsumedCapacity` for each table