aws-sdk-dynamodb 1.107.0 → 1.108.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -307,6 +307,8 @@ module Aws::DynamoDB
307
307
  NullAttributeValue = Shapes::BooleanShape.new(name: 'NullAttributeValue')
308
308
  NumberAttributeValue = Shapes::StringShape.new(name: 'NumberAttributeValue')
309
309
  NumberSetAttributeValue = Shapes::ListShape.new(name: 'NumberSetAttributeValue')
310
+ OnDemandThroughput = Shapes::StructureShape.new(name: 'OnDemandThroughput')
311
+ OnDemandThroughputOverride = Shapes::StructureShape.new(name: 'OnDemandThroughputOverride')
310
312
  ParameterizedStatement = Shapes::StructureShape.new(name: 'ParameterizedStatement')
311
313
  ParameterizedStatements = Shapes::ListShape.new(name: 'ParameterizedStatements')
312
314
  PartiQLBatchRequest = Shapes::ListShape.new(name: 'PartiQLBatchRequest')
@@ -711,6 +713,7 @@ module Aws::DynamoDB
711
713
  CreateGlobalSecondaryIndexAction.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
712
714
  CreateGlobalSecondaryIndexAction.add_member(:projection, Shapes::ShapeRef.new(shape: Projection, required: true, location_name: "Projection"))
713
715
  CreateGlobalSecondaryIndexAction.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
716
+ CreateGlobalSecondaryIndexAction.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
714
717
  CreateGlobalSecondaryIndexAction.struct_class = Types::CreateGlobalSecondaryIndexAction
715
718
 
716
719
  CreateGlobalTableInput.add_member(:global_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "GlobalTableName"))
@@ -726,6 +729,7 @@ module Aws::DynamoDB
726
729
  CreateReplicationGroupMemberAction.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
727
730
  CreateReplicationGroupMemberAction.add_member(:kms_master_key_id, Shapes::ShapeRef.new(shape: KMSMasterKeyId, location_name: "KMSMasterKeyId"))
728
731
  CreateReplicationGroupMemberAction.add_member(:provisioned_throughput_override, Shapes::ShapeRef.new(shape: ProvisionedThroughputOverride, location_name: "ProvisionedThroughputOverride"))
732
+ CreateReplicationGroupMemberAction.add_member(:on_demand_throughput_override, Shapes::ShapeRef.new(shape: OnDemandThroughputOverride, location_name: "OnDemandThroughputOverride"))
729
733
  CreateReplicationGroupMemberAction.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexes"))
730
734
  CreateReplicationGroupMemberAction.add_member(:table_class_override, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClassOverride"))
731
735
  CreateReplicationGroupMemberAction.struct_class = Types::CreateReplicationGroupMemberAction
@@ -743,6 +747,7 @@ module Aws::DynamoDB
743
747
  CreateTableInput.add_member(:table_class, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClass"))
744
748
  CreateTableInput.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: DeletionProtectionEnabled, location_name: "DeletionProtectionEnabled"))
745
749
  CreateTableInput.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "ResourcePolicy"))
750
+ CreateTableInput.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
746
751
  CreateTableInput.struct_class = Types::CreateTableInput
747
752
 
748
753
  CreateTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
@@ -1038,6 +1043,7 @@ module Aws::DynamoDB
1038
1043
  GlobalSecondaryIndex.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
1039
1044
  GlobalSecondaryIndex.add_member(:projection, Shapes::ShapeRef.new(shape: Projection, required: true, location_name: "Projection"))
1040
1045
  GlobalSecondaryIndex.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
1046
+ GlobalSecondaryIndex.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
1041
1047
  GlobalSecondaryIndex.struct_class = Types::GlobalSecondaryIndex
1042
1048
 
1043
1049
  GlobalSecondaryIndexAutoScalingUpdate.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "IndexName"))
@@ -1055,6 +1061,7 @@ module Aws::DynamoDB
1055
1061
  GlobalSecondaryIndexDescription.add_member(:index_size_bytes, Shapes::ShapeRef.new(shape: LongObject, location_name: "IndexSizeBytes"))
1056
1062
  GlobalSecondaryIndexDescription.add_member(:item_count, Shapes::ShapeRef.new(shape: LongObject, location_name: "ItemCount"))
1057
1063
  GlobalSecondaryIndexDescription.add_member(:index_arn, Shapes::ShapeRef.new(shape: String, location_name: "IndexArn"))
1064
+ GlobalSecondaryIndexDescription.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
1058
1065
  GlobalSecondaryIndexDescription.struct_class = Types::GlobalSecondaryIndexDescription
1059
1066
 
1060
1067
  GlobalSecondaryIndexDescriptionList.member = Shapes::ShapeRef.new(shape: GlobalSecondaryIndexDescription)
@@ -1063,6 +1070,7 @@ module Aws::DynamoDB
1063
1070
  GlobalSecondaryIndexInfo.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, location_name: "KeySchema"))
1064
1071
  GlobalSecondaryIndexInfo.add_member(:projection, Shapes::ShapeRef.new(shape: Projection, location_name: "Projection"))
1065
1072
  GlobalSecondaryIndexInfo.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
1073
+ GlobalSecondaryIndexInfo.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
1066
1074
  GlobalSecondaryIndexInfo.struct_class = Types::GlobalSecondaryIndexInfo
1067
1075
 
1068
1076
  GlobalSecondaryIndexList.member = Shapes::ShapeRef.new(shape: GlobalSecondaryIndex)
@@ -1339,6 +1347,13 @@ module Aws::DynamoDB
1339
1347
 
1340
1348
  NumberSetAttributeValue.member = Shapes::ShapeRef.new(shape: NumberAttributeValue)
1341
1349
 
1350
+ OnDemandThroughput.add_member(:max_read_request_units, Shapes::ShapeRef.new(shape: LongObject, location_name: "MaxReadRequestUnits"))
1351
+ OnDemandThroughput.add_member(:max_write_request_units, Shapes::ShapeRef.new(shape: LongObject, location_name: "MaxWriteRequestUnits"))
1352
+ OnDemandThroughput.struct_class = Types::OnDemandThroughput
1353
+
1354
+ OnDemandThroughputOverride.add_member(:max_read_request_units, Shapes::ShapeRef.new(shape: LongObject, location_name: "MaxReadRequestUnits"))
1355
+ OnDemandThroughputOverride.struct_class = Types::OnDemandThroughputOverride
1356
+
1342
1357
  ParameterizedStatement.add_member(:statement, Shapes::ShapeRef.new(shape: PartiQLStatement, required: true, location_name: "Statement"))
1343
1358
  ParameterizedStatement.add_member(:parameters, Shapes::ShapeRef.new(shape: PreparedStatementParameters, location_name: "Parameters"))
1344
1359
  ParameterizedStatement.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
@@ -1482,6 +1497,7 @@ module Aws::DynamoDB
1482
1497
  ReplicaDescription.add_member(:replica_status_percent_progress, Shapes::ShapeRef.new(shape: ReplicaStatusPercentProgress, location_name: "ReplicaStatusPercentProgress"))
1483
1498
  ReplicaDescription.add_member(:kms_master_key_id, Shapes::ShapeRef.new(shape: KMSMasterKeyId, location_name: "KMSMasterKeyId"))
1484
1499
  ReplicaDescription.add_member(:provisioned_throughput_override, Shapes::ShapeRef.new(shape: ProvisionedThroughputOverride, location_name: "ProvisionedThroughputOverride"))
1500
+ ReplicaDescription.add_member(:on_demand_throughput_override, Shapes::ShapeRef.new(shape: OnDemandThroughputOverride, location_name: "OnDemandThroughputOverride"))
1485
1501
  ReplicaDescription.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexDescriptionList, location_name: "GlobalSecondaryIndexes"))
1486
1502
  ReplicaDescription.add_member(:replica_inaccessible_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "ReplicaInaccessibleDateTime"))
1487
1503
  ReplicaDescription.add_member(:replica_table_class_summary, Shapes::ShapeRef.new(shape: TableClassSummary, location_name: "ReplicaTableClassSummary"))
@@ -1491,6 +1507,7 @@ module Aws::DynamoDB
1491
1507
 
1492
1508
  ReplicaGlobalSecondaryIndex.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "IndexName"))
1493
1509
  ReplicaGlobalSecondaryIndex.add_member(:provisioned_throughput_override, Shapes::ShapeRef.new(shape: ProvisionedThroughputOverride, location_name: "ProvisionedThroughputOverride"))
1510
+ ReplicaGlobalSecondaryIndex.add_member(:on_demand_throughput_override, Shapes::ShapeRef.new(shape: OnDemandThroughputOverride, location_name: "OnDemandThroughputOverride"))
1494
1511
  ReplicaGlobalSecondaryIndex.struct_class = Types::ReplicaGlobalSecondaryIndex
1495
1512
 
1496
1513
  ReplicaGlobalSecondaryIndexAutoScalingDescription.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "IndexName"))
@@ -1509,6 +1526,7 @@ module Aws::DynamoDB
1509
1526
 
1510
1527
  ReplicaGlobalSecondaryIndexDescription.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "IndexName"))
1511
1528
  ReplicaGlobalSecondaryIndexDescription.add_member(:provisioned_throughput_override, Shapes::ShapeRef.new(shape: ProvisionedThroughputOverride, location_name: "ProvisionedThroughputOverride"))
1529
+ ReplicaGlobalSecondaryIndexDescription.add_member(:on_demand_throughput_override, Shapes::ShapeRef.new(shape: OnDemandThroughputOverride, location_name: "OnDemandThroughputOverride"))
1512
1530
  ReplicaGlobalSecondaryIndexDescription.struct_class = Types::ReplicaGlobalSecondaryIndexDescription
1513
1531
 
1514
1532
  ReplicaGlobalSecondaryIndexDescriptionList.member = Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexDescription)
@@ -1593,6 +1611,7 @@ module Aws::DynamoDB
1593
1611
  RestoreTableFromBackupInput.add_member(:global_secondary_index_override, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexOverride"))
1594
1612
  RestoreTableFromBackupInput.add_member(:local_secondary_index_override, Shapes::ShapeRef.new(shape: LocalSecondaryIndexList, location_name: "LocalSecondaryIndexOverride"))
1595
1613
  RestoreTableFromBackupInput.add_member(:provisioned_throughput_override, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughputOverride"))
1614
+ RestoreTableFromBackupInput.add_member(:on_demand_throughput_override, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughputOverride"))
1596
1615
  RestoreTableFromBackupInput.add_member(:sse_specification_override, Shapes::ShapeRef.new(shape: SSESpecification, location_name: "SSESpecificationOverride"))
1597
1616
  RestoreTableFromBackupInput.struct_class = Types::RestoreTableFromBackupInput
1598
1617
 
@@ -1608,6 +1627,7 @@ module Aws::DynamoDB
1608
1627
  RestoreTableToPointInTimeInput.add_member(:global_secondary_index_override, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexOverride"))
1609
1628
  RestoreTableToPointInTimeInput.add_member(:local_secondary_index_override, Shapes::ShapeRef.new(shape: LocalSecondaryIndexList, location_name: "LocalSecondaryIndexOverride"))
1610
1629
  RestoreTableToPointInTimeInput.add_member(:provisioned_throughput_override, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughputOverride"))
1630
+ RestoreTableToPointInTimeInput.add_member(:on_demand_throughput_override, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughputOverride"))
1611
1631
  RestoreTableToPointInTimeInput.add_member(:sse_specification_override, Shapes::ShapeRef.new(shape: SSESpecification, location_name: "SSESpecificationOverride"))
1612
1632
  RestoreTableToPointInTimeInput.struct_class = Types::RestoreTableToPointInTimeInput
1613
1633
 
@@ -1665,6 +1685,7 @@ module Aws::DynamoDB
1665
1685
  SourceTableDetails.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
1666
1686
  SourceTableDetails.add_member(:table_creation_date_time, Shapes::ShapeRef.new(shape: TableCreationDateTime, required: true, location_name: "TableCreationDateTime"))
1667
1687
  SourceTableDetails.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, required: true, location_name: "ProvisionedThroughput"))
1688
+ SourceTableDetails.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
1668
1689
  SourceTableDetails.add_member(:item_count, Shapes::ShapeRef.new(shape: ItemCount, location_name: "ItemCount"))
1669
1690
  SourceTableDetails.add_member(:billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "BillingMode"))
1670
1691
  SourceTableDetails.struct_class = Types::SourceTableDetails
@@ -1699,6 +1720,7 @@ module Aws::DynamoDB
1699
1720
  TableCreationParameters.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
1700
1721
  TableCreationParameters.add_member(:billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "BillingMode"))
1701
1722
  TableCreationParameters.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
1723
+ TableCreationParameters.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
1702
1724
  TableCreationParameters.add_member(:sse_specification, Shapes::ShapeRef.new(shape: SSESpecification, location_name: "SSESpecification"))
1703
1725
  TableCreationParameters.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexes"))
1704
1726
  TableCreationParameters.struct_class = Types::TableCreationParameters
@@ -1726,6 +1748,7 @@ module Aws::DynamoDB
1726
1748
  TableDescription.add_member(:archival_summary, Shapes::ShapeRef.new(shape: ArchivalSummary, location_name: "ArchivalSummary"))
1727
1749
  TableDescription.add_member(:table_class_summary, Shapes::ShapeRef.new(shape: TableClassSummary, location_name: "TableClassSummary"))
1728
1750
  TableDescription.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: DeletionProtectionEnabled, location_name: "DeletionProtectionEnabled"))
1751
+ TableDescription.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
1729
1752
  TableDescription.struct_class = Types::TableDescription
1730
1753
 
1731
1754
  TableInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
@@ -1828,7 +1851,8 @@ module Aws::DynamoDB
1828
1851
  UpdateContributorInsightsOutput.struct_class = Types::UpdateContributorInsightsOutput
1829
1852
 
1830
1853
  UpdateGlobalSecondaryIndexAction.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "IndexName"))
1831
- UpdateGlobalSecondaryIndexAction.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, required: true, location_name: "ProvisionedThroughput"))
1854
+ UpdateGlobalSecondaryIndexAction.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
1855
+ UpdateGlobalSecondaryIndexAction.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
1832
1856
  UpdateGlobalSecondaryIndexAction.struct_class = Types::UpdateGlobalSecondaryIndexAction
1833
1857
 
1834
1858
  UpdateGlobalTableInput.add_member(:global_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "GlobalTableName"))
@@ -1887,6 +1911,7 @@ module Aws::DynamoDB
1887
1911
  UpdateReplicationGroupMemberAction.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
1888
1912
  UpdateReplicationGroupMemberAction.add_member(:kms_master_key_id, Shapes::ShapeRef.new(shape: KMSMasterKeyId, location_name: "KMSMasterKeyId"))
1889
1913
  UpdateReplicationGroupMemberAction.add_member(:provisioned_throughput_override, Shapes::ShapeRef.new(shape: ProvisionedThroughputOverride, location_name: "ProvisionedThroughputOverride"))
1914
+ UpdateReplicationGroupMemberAction.add_member(:on_demand_throughput_override, Shapes::ShapeRef.new(shape: OnDemandThroughputOverride, location_name: "OnDemandThroughputOverride"))
1890
1915
  UpdateReplicationGroupMemberAction.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexes"))
1891
1916
  UpdateReplicationGroupMemberAction.add_member(:table_class_override, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClassOverride"))
1892
1917
  UpdateReplicationGroupMemberAction.struct_class = Types::UpdateReplicationGroupMemberAction
@@ -1901,6 +1926,7 @@ module Aws::DynamoDB
1901
1926
  UpdateTableInput.add_member(:replica_updates, Shapes::ShapeRef.new(shape: ReplicationGroupUpdateList, location_name: "ReplicaUpdates"))
1902
1927
  UpdateTableInput.add_member(:table_class, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClass"))
1903
1928
  UpdateTableInput.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: DeletionProtectionEnabled, location_name: "DeletionProtectionEnabled"))
1929
+ UpdateTableInput.add_member(:on_demand_throughput, Shapes::ShapeRef.new(shape: OnDemandThroughput, location_name: "OnDemandThroughput"))
1904
1930
  UpdateTableInput.struct_class = Types::UpdateTableInput
1905
1931
 
1906
1932
  UpdateTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
@@ -297,6 +297,10 @@ module Aws::DynamoDB
297
297
  # read_capacity_units: 1, # required
298
298
  # write_capacity_units: 1, # required
299
299
  # },
300
+ # on_demand_throughput: {
301
+ # max_read_request_units: 1,
302
+ # max_write_request_units: 1,
303
+ # },
300
304
  # },
301
305
  # ],
302
306
  # billing_mode: "PROVISIONED", # accepts PROVISIONED, PAY_PER_REQUEST
@@ -322,6 +326,10 @@ module Aws::DynamoDB
322
326
  # table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
323
327
  # deletion_protection_enabled: false,
324
328
  # resource_policy: "ResourcePolicy",
329
+ # on_demand_throughput: {
330
+ # max_read_request_units: 1,
331
+ # max_write_request_units: 1,
332
+ # },
325
333
  # })
326
334
  # @param [Hash] options ({})
327
335
  # @option options [required, Array<Types::AttributeDefinition>] :attribute_definitions
@@ -527,18 +535,21 @@ module Aws::DynamoDB
527
535
  # that will be attached to the table.
528
536
  #
529
537
  # When you attach a resource-based policy while creating a table, the
530
- # policy creation is *strongly consistent*.
538
+ # policy application is *strongly consistent*.
531
539
  #
532
540
  # The maximum size supported for a resource-based policy document is 20
533
541
  # KB. DynamoDB counts whitespaces when calculating the size of a policy
534
- # against this limit. You can’t request an increase for this limit. For
535
- # a full list of all considerations that you should keep in mind while
536
- # attaching a resource-based policy, see [Resource-based policy
542
+ # against this limit. For a full list of all considerations that apply
543
+ # for resource-based policies, see [Resource-based policy
537
544
  # considerations][1].
538
545
  #
539
546
  #
540
547
  #
541
548
  # [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html
549
+ # @option options [Types::OnDemandThroughput] :on_demand_throughput
550
+ # Sets the maximum number of read and write units for the specified
551
+ # table in on-demand capacity mode. If you use this parameter, you must
552
+ # specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
542
553
  # @return [Table]
543
554
  def create_table(options = {})
544
555
  resp = Aws::Plugins::UserAgent.feature('resource') do
@@ -370,6 +370,14 @@ module Aws::DynamoDB
370
370
  data[:deletion_protection_enabled]
371
371
  end
372
372
 
373
+ # The maximum number of read and write units for the specified on-demand
374
+ # table. If you use this parameter, you must specify
375
+ # `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
376
+ # @return [Types::OnDemandThroughput]
377
+ def on_demand_throughput
378
+ data[:on_demand_throughput]
379
+ end
380
+
373
381
  # @!endgroup
374
382
 
375
383
  # @return [Client]
@@ -1800,10 +1808,14 @@ module Aws::DynamoDB
1800
1808
  # {
1801
1809
  # update: {
1802
1810
  # index_name: "IndexName", # required
1803
- # provisioned_throughput: { # required
1811
+ # provisioned_throughput: {
1804
1812
  # read_capacity_units: 1, # required
1805
1813
  # write_capacity_units: 1, # required
1806
1814
  # },
1815
+ # on_demand_throughput: {
1816
+ # max_read_request_units: 1,
1817
+ # max_write_request_units: 1,
1818
+ # },
1807
1819
  # },
1808
1820
  # create: {
1809
1821
  # index_name: "IndexName", # required
@@ -1821,6 +1833,10 @@ module Aws::DynamoDB
1821
1833
  # read_capacity_units: 1, # required
1822
1834
  # write_capacity_units: 1, # required
1823
1835
  # },
1836
+ # on_demand_throughput: {
1837
+ # max_read_request_units: 1,
1838
+ # max_write_request_units: 1,
1839
+ # },
1824
1840
  # },
1825
1841
  # delete: {
1826
1842
  # index_name: "IndexName", # required
@@ -1844,12 +1860,18 @@ module Aws::DynamoDB
1844
1860
  # provisioned_throughput_override: {
1845
1861
  # read_capacity_units: 1,
1846
1862
  # },
1863
+ # on_demand_throughput_override: {
1864
+ # max_read_request_units: 1,
1865
+ # },
1847
1866
  # global_secondary_indexes: [
1848
1867
  # {
1849
1868
  # index_name: "IndexName", # required
1850
1869
  # provisioned_throughput_override: {
1851
1870
  # read_capacity_units: 1,
1852
1871
  # },
1872
+ # on_demand_throughput_override: {
1873
+ # max_read_request_units: 1,
1874
+ # },
1853
1875
  # },
1854
1876
  # ],
1855
1877
  # table_class_override: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
@@ -1860,12 +1882,18 @@ module Aws::DynamoDB
1860
1882
  # provisioned_throughput_override: {
1861
1883
  # read_capacity_units: 1,
1862
1884
  # },
1885
+ # on_demand_throughput_override: {
1886
+ # max_read_request_units: 1,
1887
+ # },
1863
1888
  # global_secondary_indexes: [
1864
1889
  # {
1865
1890
  # index_name: "IndexName", # required
1866
1891
  # provisioned_throughput_override: {
1867
1892
  # read_capacity_units: 1,
1868
1893
  # },
1894
+ # on_demand_throughput_override: {
1895
+ # max_read_request_units: 1,
1896
+ # },
1869
1897
  # },
1870
1898
  # ],
1871
1899
  # table_class_override: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
@@ -1877,6 +1905,10 @@ module Aws::DynamoDB
1877
1905
  # ],
1878
1906
  # table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
1879
1907
  # deletion_protection_enabled: false,
1908
+ # on_demand_throughput: {
1909
+ # max_read_request_units: 1,
1910
+ # max_write_request_units: 1,
1911
+ # },
1880
1912
  # })
1881
1913
  # @param [Hash] options ({})
1882
1914
  # @option options [Array<Types::AttributeDefinition>] :attribute_definitions
@@ -1955,6 +1987,10 @@ module Aws::DynamoDB
1955
1987
  # @option options [Boolean] :deletion_protection_enabled
1956
1988
  # Indicates whether deletion protection is to be enabled (true) or
1957
1989
  # disabled (false) on the table.
1990
+ # @option options [Types::OnDemandThroughput] :on_demand_throughput
1991
+ # Updates the maximum number of read and write units for the specified
1992
+ # table in on-demand capacity mode. If you use this parameter, you must
1993
+ # specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
1958
1994
  # @return [Table]
1959
1995
  def update(options = {})
1960
1996
  options = options.merge(table_name: @name)