aws-sdk-dynamodb 1.107.0 → 1.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +166 -24
- data/lib/aws-sdk-dynamodb/client_api.rb +27 -1
- data/lib/aws-sdk-dynamodb/resource.rb +15 -4
- data/lib/aws-sdk-dynamodb/table.rb +37 -1
- data/lib/aws-sdk-dynamodb/types.rb +200 -29
- data/lib/aws-sdk-dynamodb.rb +1 -1
- data/sig/client.rbs +59 -3
- data/sig/resource.rbs +9 -1
- data/sig/table.rbs +29 -2
- data/sig/types.rbs +28 -0
- metadata +2 -2
@@ -1726,13 +1726,20 @@ module Aws::DynamoDB
|
|
1726
1726
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html
|
1727
1727
|
# @return [Types::ProvisionedThroughput]
|
1728
1728
|
#
|
1729
|
+
# @!attribute [rw] on_demand_throughput
|
1730
|
+
# The maximum number of read and write units for the global secondary
|
1731
|
+
# index being created. If you use this parameter, you must specify
|
1732
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
1733
|
+
# @return [Types::OnDemandThroughput]
|
1734
|
+
#
|
1729
1735
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateGlobalSecondaryIndexAction AWS API Documentation
|
1730
1736
|
#
|
1731
1737
|
class CreateGlobalSecondaryIndexAction < Struct.new(
|
1732
1738
|
:index_name,
|
1733
1739
|
:key_schema,
|
1734
1740
|
:projection,
|
1735
|
-
:provisioned_throughput
|
1741
|
+
:provisioned_throughput,
|
1742
|
+
:on_demand_throughput)
|
1736
1743
|
SENSITIVE = []
|
1737
1744
|
include Aws::Structure
|
1738
1745
|
end
|
@@ -1799,6 +1806,13 @@ module Aws::DynamoDB
|
|
1799
1806
|
# source table's provisioned throughput settings.
|
1800
1807
|
# @return [Types::ProvisionedThroughputOverride]
|
1801
1808
|
#
|
1809
|
+
# @!attribute [rw] on_demand_throughput_override
|
1810
|
+
# The maximum on-demand throughput settings for the specified replica
|
1811
|
+
# table being created. You can only modify `MaxReadRequestUnits`,
|
1812
|
+
# because you can't modify `MaxWriteRequestUnits` for individual
|
1813
|
+
# replica tables.
|
1814
|
+
# @return [Types::OnDemandThroughputOverride]
|
1815
|
+
#
|
1802
1816
|
# @!attribute [rw] global_secondary_indexes
|
1803
1817
|
# Replica-specific global secondary index settings.
|
1804
1818
|
# @return [Array<Types::ReplicaGlobalSecondaryIndex>]
|
@@ -1814,6 +1828,7 @@ module Aws::DynamoDB
|
|
1814
1828
|
:region_name,
|
1815
1829
|
:kms_master_key_id,
|
1816
1830
|
:provisioned_throughput_override,
|
1831
|
+
:on_demand_throughput_override,
|
1817
1832
|
:global_secondary_indexes,
|
1818
1833
|
:table_class_override)
|
1819
1834
|
SENSITIVE = []
|
@@ -2051,20 +2066,25 @@ module Aws::DynamoDB
|
|
2051
2066
|
# that will be attached to the table.
|
2052
2067
|
#
|
2053
2068
|
# When you attach a resource-based policy while creating a table, the
|
2054
|
-
# policy
|
2069
|
+
# policy application is *strongly consistent*.
|
2055
2070
|
#
|
2056
2071
|
# The maximum size supported for a resource-based policy document is
|
2057
2072
|
# 20 KB. DynamoDB counts whitespaces when calculating the size of a
|
2058
|
-
# policy against this limit.
|
2059
|
-
#
|
2060
|
-
#
|
2061
|
-
# policy considerations][1].
|
2073
|
+
# policy against this limit. For a full list of all considerations
|
2074
|
+
# that apply for resource-based policies, see [Resource-based policy
|
2075
|
+
# considerations][1].
|
2062
2076
|
#
|
2063
2077
|
#
|
2064
2078
|
#
|
2065
2079
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/rbac-considerations.html
|
2066
2080
|
# @return [String]
|
2067
2081
|
#
|
2082
|
+
# @!attribute [rw] on_demand_throughput
|
2083
|
+
# Sets the maximum number of read and write units for the specified
|
2084
|
+
# table in on-demand capacity mode. If you use this parameter, you
|
2085
|
+
# must specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
2086
|
+
# @return [Types::OnDemandThroughput]
|
2087
|
+
#
|
2068
2088
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTableInput AWS API Documentation
|
2069
2089
|
#
|
2070
2090
|
class CreateTableInput < Struct.new(
|
@@ -2080,7 +2100,8 @@ module Aws::DynamoDB
|
|
2080
2100
|
:tags,
|
2081
2101
|
:table_class,
|
2082
2102
|
:deletion_protection_enabled,
|
2083
|
-
:resource_policy
|
2103
|
+
:resource_policy,
|
2104
|
+
:on_demand_throughput)
|
2084
2105
|
SENSITIVE = []
|
2085
2106
|
include Aws::Structure
|
2086
2107
|
end
|
@@ -2559,7 +2580,7 @@ module Aws::DynamoDB
|
|
2559
2580
|
|
2560
2581
|
# @!attribute [rw] revision_id
|
2561
2582
|
# A unique string that represents the revision ID of the policy. If
|
2562
|
-
# you
|
2583
|
+
# you're comparing revision IDs, make sure to always use string
|
2563
2584
|
# comparison logic.
|
2564
2585
|
#
|
2565
2586
|
# This value will be empty if you make a request against a resource
|
@@ -4031,7 +4052,7 @@ module Aws::DynamoDB
|
|
4031
4052
|
#
|
4032
4053
|
# @!attribute [rw] revision_id
|
4033
4054
|
# A unique string that represents the revision ID of the policy. If
|
4034
|
-
# you
|
4055
|
+
# you're comparing revision IDs, make sure to always use string
|
4035
4056
|
# comparison logic.
|
4036
4057
|
# @return [String]
|
4037
4058
|
#
|
@@ -4092,13 +4113,20 @@ module Aws::DynamoDB
|
|
4092
4113
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html
|
4093
4114
|
# @return [Types::ProvisionedThroughput]
|
4094
4115
|
#
|
4116
|
+
# @!attribute [rw] on_demand_throughput
|
4117
|
+
# The maximum number of read and write units for the specified global
|
4118
|
+
# secondary index. If you use this parameter, you must specify
|
4119
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
4120
|
+
# @return [Types::OnDemandThroughput]
|
4121
|
+
#
|
4095
4122
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GlobalSecondaryIndex AWS API Documentation
|
4096
4123
|
#
|
4097
4124
|
class GlobalSecondaryIndex < Struct.new(
|
4098
4125
|
:index_name,
|
4099
4126
|
:key_schema,
|
4100
4127
|
:projection,
|
4101
|
-
:provisioned_throughput
|
4128
|
+
:provisioned_throughput,
|
4129
|
+
:on_demand_throughput)
|
4102
4130
|
SENSITIVE = []
|
4103
4131
|
include Aws::Structure
|
4104
4132
|
end
|
@@ -4221,6 +4249,12 @@ module Aws::DynamoDB
|
|
4221
4249
|
# The Amazon Resource Name (ARN) that uniquely identifies the index.
|
4222
4250
|
# @return [String]
|
4223
4251
|
#
|
4252
|
+
# @!attribute [rw] on_demand_throughput
|
4253
|
+
# The maximum number of read and write units for the specified global
|
4254
|
+
# secondary index. If you use this parameter, you must specify
|
4255
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
4256
|
+
# @return [Types::OnDemandThroughput]
|
4257
|
+
#
|
4224
4258
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GlobalSecondaryIndexDescription AWS API Documentation
|
4225
4259
|
#
|
4226
4260
|
class GlobalSecondaryIndexDescription < Struct.new(
|
@@ -4232,7 +4266,8 @@ module Aws::DynamoDB
|
|
4232
4266
|
:provisioned_throughput,
|
4233
4267
|
:index_size_bytes,
|
4234
4268
|
:item_count,
|
4235
|
-
:index_arn
|
4269
|
+
:index_arn,
|
4270
|
+
:on_demand_throughput)
|
4236
4271
|
SENSITIVE = []
|
4237
4272
|
include Aws::Structure
|
4238
4273
|
end
|
@@ -4277,13 +4312,20 @@ module Aws::DynamoDB
|
|
4277
4312
|
# global secondary index.
|
4278
4313
|
# @return [Types::ProvisionedThroughput]
|
4279
4314
|
#
|
4315
|
+
# @!attribute [rw] on_demand_throughput
|
4316
|
+
# Sets the maximum number of read and write units for the specified
|
4317
|
+
# on-demand table. If you use this parameter, you must specify
|
4318
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
4319
|
+
# @return [Types::OnDemandThroughput]
|
4320
|
+
#
|
4280
4321
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GlobalSecondaryIndexInfo AWS API Documentation
|
4281
4322
|
#
|
4282
4323
|
class GlobalSecondaryIndexInfo < Struct.new(
|
4283
4324
|
:index_name,
|
4284
4325
|
:key_schema,
|
4285
4326
|
:projection,
|
4286
|
-
:provisioned_throughput
|
4327
|
+
:provisioned_throughput,
|
4328
|
+
:on_demand_throughput)
|
4287
4329
|
SENSITIVE = []
|
4288
4330
|
include Aws::Structure
|
4289
4331
|
end
|
@@ -5673,6 +5715,54 @@ module Aws::DynamoDB
|
|
5673
5715
|
include Aws::Structure
|
5674
5716
|
end
|
5675
5717
|
|
5718
|
+
# Sets the maximum number of read and write units for the specified
|
5719
|
+
# on-demand table. If you use this parameter, you must specify
|
5720
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
5721
|
+
#
|
5722
|
+
# @!attribute [rw] max_read_request_units
|
5723
|
+
# Maximum number of read request units for the specified table.
|
5724
|
+
#
|
5725
|
+
# To specify a maximum `OnDemandThroughput` on your table, set the
|
5726
|
+
# value of `MaxReadRequestUnits` as greater than or equal to 1. To
|
5727
|
+
# remove the maximum `OnDemandThroughput` that is currently set on
|
5728
|
+
# your table, set the value of `MaxReadRequestUnits` to -1.
|
5729
|
+
# @return [Integer]
|
5730
|
+
#
|
5731
|
+
# @!attribute [rw] max_write_request_units
|
5732
|
+
# Maximum number of write request units for the specified table.
|
5733
|
+
#
|
5734
|
+
# To specify a maximum `OnDemandThroughput` on your table, set the
|
5735
|
+
# value of `MaxWriteRequestUnits` as greater than or equal to 1. To
|
5736
|
+
# remove the maximum `OnDemandThroughput` that is currently set on
|
5737
|
+
# your table, set the value of `MaxWriteRequestUnits` to -1.
|
5738
|
+
# @return [Integer]
|
5739
|
+
#
|
5740
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/OnDemandThroughput AWS API Documentation
|
5741
|
+
#
|
5742
|
+
class OnDemandThroughput < Struct.new(
|
5743
|
+
:max_read_request_units,
|
5744
|
+
:max_write_request_units)
|
5745
|
+
SENSITIVE = []
|
5746
|
+
include Aws::Structure
|
5747
|
+
end
|
5748
|
+
|
5749
|
+
# Overrides the on-demand throughput settings for this replica table. If
|
5750
|
+
# you don't specify a value for this parameter, it uses the source
|
5751
|
+
# table's on-demand throughput settings.
|
5752
|
+
#
|
5753
|
+
# @!attribute [rw] max_read_request_units
|
5754
|
+
# Maximum number of read request units for the specified replica
|
5755
|
+
# table.
|
5756
|
+
# @return [Integer]
|
5757
|
+
#
|
5758
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/OnDemandThroughputOverride AWS API Documentation
|
5759
|
+
#
|
5760
|
+
class OnDemandThroughputOverride < Struct.new(
|
5761
|
+
:max_read_request_units)
|
5762
|
+
SENSITIVE = []
|
5763
|
+
include Aws::Structure
|
5764
|
+
end
|
5765
|
+
|
5676
5766
|
# Represents a PartiQL statement that uses parameters.
|
5677
5767
|
#
|
5678
5768
|
# @!attribute [rw] statement
|
@@ -6339,11 +6429,17 @@ module Aws::DynamoDB
|
|
6339
6429
|
# An Amazon Web Services resource-based policy document in JSON
|
6340
6430
|
# format.
|
6341
6431
|
#
|
6342
|
-
# The maximum size supported for a resource-based policy document is
|
6343
|
-
#
|
6344
|
-
#
|
6345
|
-
#
|
6346
|
-
#
|
6432
|
+
# * The maximum size supported for a resource-based policy document is
|
6433
|
+
# 20 KB. DynamoDB counts whitespaces when calculating the size of a
|
6434
|
+
# policy against this limit.
|
6435
|
+
#
|
6436
|
+
# * Within a resource-based policy, if the action for a DynamoDB
|
6437
|
+
# service-linked role (SLR) to replicate data for a global table is
|
6438
|
+
# denied, adding or deleting a replica will fail with an error.
|
6439
|
+
#
|
6440
|
+
# For a full list of all considerations that apply while attaching a
|
6441
|
+
# resource-based policy, see [Resource-based policy
|
6442
|
+
# considerations][1].
|
6347
6443
|
#
|
6348
6444
|
#
|
6349
6445
|
#
|
@@ -6353,13 +6449,16 @@ module Aws::DynamoDB
|
|
6353
6449
|
# @!attribute [rw] expected_revision_id
|
6354
6450
|
# A string value that you can use to conditionally update your policy.
|
6355
6451
|
# You can provide the revision ID of your existing policy to make
|
6356
|
-
# mutating requests against that policy.
|
6357
|
-
#
|
6358
|
-
#
|
6359
|
-
# resource
|
6360
|
-
#
|
6452
|
+
# mutating requests against that policy.
|
6453
|
+
#
|
6454
|
+
# <note markdown="1"> When you provide an expected revision ID, if the revision ID of the
|
6455
|
+
# existing policy on the resource doesn't match or if there's no
|
6456
|
+
# policy attached to the resource, your request will be rejected with
|
6457
|
+
# a `PolicyNotFoundException`.
|
6361
6458
|
#
|
6362
|
-
#
|
6459
|
+
# </note>
|
6460
|
+
#
|
6461
|
+
# To conditionally attach a policy when no policy exists for the
|
6363
6462
|
# resource, specify `NO_POLICY` for the revision ID.
|
6364
6463
|
# @return [String]
|
6365
6464
|
#
|
@@ -6381,7 +6480,7 @@ module Aws::DynamoDB
|
|
6381
6480
|
|
6382
6481
|
# @!attribute [rw] revision_id
|
6383
6482
|
# A unique string that represents the revision ID of the policy. If
|
6384
|
-
# you
|
6483
|
+
# you're comparing revision IDs, make sure to always use string
|
6385
6484
|
# comparison logic.
|
6386
6485
|
# @return [String]
|
6387
6486
|
#
|
@@ -7038,6 +7137,11 @@ module Aws::DynamoDB
|
|
7038
7137
|
# source table's provisioned throughput settings.
|
7039
7138
|
# @return [Types::ProvisionedThroughputOverride]
|
7040
7139
|
#
|
7140
|
+
# @!attribute [rw] on_demand_throughput_override
|
7141
|
+
# Overrides the maximum on-demand throughput settings for the
|
7142
|
+
# specified replica table.
|
7143
|
+
# @return [Types::OnDemandThroughputOverride]
|
7144
|
+
#
|
7041
7145
|
# @!attribute [rw] global_secondary_indexes
|
7042
7146
|
# Replica-specific global secondary index settings.
|
7043
7147
|
# @return [Array<Types::ReplicaGlobalSecondaryIndexDescription>]
|
@@ -7061,6 +7165,7 @@ module Aws::DynamoDB
|
|
7061
7165
|
:replica_status_percent_progress,
|
7062
7166
|
:kms_master_key_id,
|
7063
7167
|
:provisioned_throughput_override,
|
7168
|
+
:on_demand_throughput_override,
|
7064
7169
|
:global_secondary_indexes,
|
7065
7170
|
:replica_inaccessible_date_time,
|
7066
7171
|
:replica_table_class_summary)
|
@@ -7079,11 +7184,17 @@ module Aws::DynamoDB
|
|
7079
7184
|
# uses the source table GSI's read capacity settings.
|
7080
7185
|
# @return [Types::ProvisionedThroughputOverride]
|
7081
7186
|
#
|
7187
|
+
# @!attribute [rw] on_demand_throughput_override
|
7188
|
+
# Overrides the maximum on-demand throughput settings for the
|
7189
|
+
# specified global secondary index in the specified replica table.
|
7190
|
+
# @return [Types::OnDemandThroughputOverride]
|
7191
|
+
#
|
7082
7192
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ReplicaGlobalSecondaryIndex AWS API Documentation
|
7083
7193
|
#
|
7084
7194
|
class ReplicaGlobalSecondaryIndex < Struct.new(
|
7085
7195
|
:index_name,
|
7086
|
-
:provisioned_throughput_override
|
7196
|
+
:provisioned_throughput_override,
|
7197
|
+
:on_demand_throughput_override)
|
7087
7198
|
SENSITIVE = []
|
7088
7199
|
include Aws::Structure
|
7089
7200
|
end
|
@@ -7161,11 +7272,17 @@ module Aws::DynamoDB
|
|
7161
7272
|
# settings.
|
7162
7273
|
# @return [Types::ProvisionedThroughputOverride]
|
7163
7274
|
#
|
7275
|
+
# @!attribute [rw] on_demand_throughput_override
|
7276
|
+
# Overrides the maximum on-demand throughput for the specified global
|
7277
|
+
# secondary index in the specified replica table.
|
7278
|
+
# @return [Types::OnDemandThroughputOverride]
|
7279
|
+
#
|
7164
7280
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ReplicaGlobalSecondaryIndexDescription AWS API Documentation
|
7165
7281
|
#
|
7166
7282
|
class ReplicaGlobalSecondaryIndexDescription < Struct.new(
|
7167
7283
|
:index_name,
|
7168
|
-
:provisioned_throughput_override
|
7284
|
+
:provisioned_throughput_override,
|
7285
|
+
:on_demand_throughput_override)
|
7169
7286
|
SENSITIVE = []
|
7170
7287
|
include Aws::Structure
|
7171
7288
|
end
|
@@ -7562,6 +7679,12 @@ module Aws::DynamoDB
|
|
7562
7679
|
# Provisioned throughput settings for the restored table.
|
7563
7680
|
# @return [Types::ProvisionedThroughput]
|
7564
7681
|
#
|
7682
|
+
# @!attribute [rw] on_demand_throughput_override
|
7683
|
+
# Sets the maximum number of read and write units for the specified
|
7684
|
+
# on-demand table. If you use this parameter, you must specify
|
7685
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
7686
|
+
# @return [Types::OnDemandThroughput]
|
7687
|
+
#
|
7565
7688
|
# @!attribute [rw] sse_specification_override
|
7566
7689
|
# The new server-side encryption settings for the restored table.
|
7567
7690
|
# @return [Types::SSESpecification]
|
@@ -7575,6 +7698,7 @@ module Aws::DynamoDB
|
|
7575
7698
|
:global_secondary_index_override,
|
7576
7699
|
:local_secondary_index_override,
|
7577
7700
|
:provisioned_throughput_override,
|
7701
|
+
:on_demand_throughput_override,
|
7578
7702
|
:sse_specification_override)
|
7579
7703
|
SENSITIVE = []
|
7580
7704
|
include Aws::Structure
|
@@ -7635,6 +7759,12 @@ module Aws::DynamoDB
|
|
7635
7759
|
# Provisioned throughput settings for the restored table.
|
7636
7760
|
# @return [Types::ProvisionedThroughput]
|
7637
7761
|
#
|
7762
|
+
# @!attribute [rw] on_demand_throughput_override
|
7763
|
+
# Sets the maximum number of read and write units for the specified
|
7764
|
+
# on-demand table. If you use this parameter, you must specify
|
7765
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
7766
|
+
# @return [Types::OnDemandThroughput]
|
7767
|
+
#
|
7638
7768
|
# @!attribute [rw] sse_specification_override
|
7639
7769
|
# The new server-side encryption settings for the restored table.
|
7640
7770
|
# @return [Types::SSESpecification]
|
@@ -7651,6 +7781,7 @@ module Aws::DynamoDB
|
|
7651
7781
|
:global_secondary_index_override,
|
7652
7782
|
:local_secondary_index_override,
|
7653
7783
|
:provisioned_throughput_override,
|
7784
|
+
:on_demand_throughput_override,
|
7654
7785
|
:sse_specification_override)
|
7655
7786
|
SENSITIVE = []
|
7656
7787
|
include Aws::Structure
|
@@ -8228,6 +8359,12 @@ module Aws::DynamoDB
|
|
8228
8359
|
# Read IOPs and Write IOPS on the table when the backup was created.
|
8229
8360
|
# @return [Types::ProvisionedThroughput]
|
8230
8361
|
#
|
8362
|
+
# @!attribute [rw] on_demand_throughput
|
8363
|
+
# Sets the maximum number of read and write units for the specified
|
8364
|
+
# on-demand table. If you use this parameter, you must specify
|
8365
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
8366
|
+
# @return [Types::OnDemandThroughput]
|
8367
|
+
#
|
8231
8368
|
# @!attribute [rw] item_count
|
8232
8369
|
# Number of items in the table. Note that this is an approximate
|
8233
8370
|
# value.
|
@@ -8256,6 +8393,7 @@ module Aws::DynamoDB
|
|
8256
8393
|
:key_schema,
|
8257
8394
|
:table_creation_date_time,
|
8258
8395
|
:provisioned_throughput,
|
8396
|
+
:on_demand_throughput,
|
8259
8397
|
:item_count,
|
8260
8398
|
:billing_mode)
|
8261
8399
|
SENSITIVE = []
|
@@ -8436,6 +8574,12 @@ module Aws::DynamoDB
|
|
8436
8574
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html
|
8437
8575
|
# @return [Types::ProvisionedThroughput]
|
8438
8576
|
#
|
8577
|
+
# @!attribute [rw] on_demand_throughput
|
8578
|
+
# Sets the maximum number of read and write units for the specified
|
8579
|
+
# on-demand table. If you use this parameter, you must specify
|
8580
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
8581
|
+
# @return [Types::OnDemandThroughput]
|
8582
|
+
#
|
8439
8583
|
# @!attribute [rw] sse_specification
|
8440
8584
|
# Represents the settings used to enable server-side encryption.
|
8441
8585
|
# @return [Types::SSESpecification]
|
@@ -8453,6 +8597,7 @@ module Aws::DynamoDB
|
|
8453
8597
|
:key_schema,
|
8454
8598
|
:billing_mode,
|
8455
8599
|
:provisioned_throughput,
|
8600
|
+
:on_demand_throughput,
|
8456
8601
|
:sse_specification,
|
8457
8602
|
:global_secondary_indexes)
|
8458
8603
|
SENSITIVE = []
|
@@ -8758,6 +8903,12 @@ module Aws::DynamoDB
|
|
8758
8903
|
# (false) on the table.
|
8759
8904
|
# @return [Boolean]
|
8760
8905
|
#
|
8906
|
+
# @!attribute [rw] on_demand_throughput
|
8907
|
+
# The maximum number of read and write units for the specified
|
8908
|
+
# on-demand table. If you use this parameter, you must specify
|
8909
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
8910
|
+
# @return [Types::OnDemandThroughput]
|
8911
|
+
#
|
8761
8912
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TableDescription AWS API Documentation
|
8762
8913
|
#
|
8763
8914
|
class TableDescription < Struct.new(
|
@@ -8783,7 +8934,8 @@ module Aws::DynamoDB
|
|
8783
8934
|
:sse_description,
|
8784
8935
|
:archival_summary,
|
8785
8936
|
:table_class_summary,
|
8786
|
-
:deletion_protection_enabled
|
8937
|
+
:deletion_protection_enabled,
|
8938
|
+
:on_demand_throughput)
|
8787
8939
|
SENSITIVE = []
|
8788
8940
|
include Aws::Structure
|
8789
8941
|
end
|
@@ -9523,11 +9675,18 @@ module Aws::DynamoDB
|
|
9523
9675
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html
|
9524
9676
|
# @return [Types::ProvisionedThroughput]
|
9525
9677
|
#
|
9678
|
+
# @!attribute [rw] on_demand_throughput
|
9679
|
+
# Updates the maximum number of read and write units for the specified
|
9680
|
+
# global secondary index. If you use this parameter, you must specify
|
9681
|
+
# `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
9682
|
+
# @return [Types::OnDemandThroughput]
|
9683
|
+
#
|
9526
9684
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateGlobalSecondaryIndexAction AWS API Documentation
|
9527
9685
|
#
|
9528
9686
|
class UpdateGlobalSecondaryIndexAction < Struct.new(
|
9529
9687
|
:index_name,
|
9530
|
-
:provisioned_throughput
|
9688
|
+
:provisioned_throughput,
|
9689
|
+
:on_demand_throughput)
|
9531
9690
|
SENSITIVE = []
|
9532
9691
|
include Aws::Structure
|
9533
9692
|
end
|
@@ -10113,6 +10272,10 @@ module Aws::DynamoDB
|
|
10113
10272
|
# source table's provisioned throughput settings.
|
10114
10273
|
# @return [Types::ProvisionedThroughputOverride]
|
10115
10274
|
#
|
10275
|
+
# @!attribute [rw] on_demand_throughput_override
|
10276
|
+
# Overrides the maximum on-demand throughput for the replica table.
|
10277
|
+
# @return [Types::OnDemandThroughputOverride]
|
10278
|
+
#
|
10116
10279
|
# @!attribute [rw] global_secondary_indexes
|
10117
10280
|
# Replica-specific global secondary index settings.
|
10118
10281
|
# @return [Array<Types::ReplicaGlobalSecondaryIndex>]
|
@@ -10128,6 +10291,7 @@ module Aws::DynamoDB
|
|
10128
10291
|
:region_name,
|
10129
10292
|
:kms_master_key_id,
|
10130
10293
|
:provisioned_throughput_override,
|
10294
|
+
:on_demand_throughput_override,
|
10131
10295
|
:global_secondary_indexes,
|
10132
10296
|
:table_class_override)
|
10133
10297
|
SENSITIVE = []
|
@@ -10235,6 +10399,12 @@ module Aws::DynamoDB
|
|
10235
10399
|
# disabled (false) on the table.
|
10236
10400
|
# @return [Boolean]
|
10237
10401
|
#
|
10402
|
+
# @!attribute [rw] on_demand_throughput
|
10403
|
+
# Updates the maximum number of read and write units for the specified
|
10404
|
+
# table in on-demand capacity mode. If you use this parameter, you
|
10405
|
+
# must specify `MaxReadRequestUnits`, `MaxWriteRequestUnits`, or both.
|
10406
|
+
# @return [Types::OnDemandThroughput]
|
10407
|
+
#
|
10238
10408
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTableInput AWS API Documentation
|
10239
10409
|
#
|
10240
10410
|
class UpdateTableInput < Struct.new(
|
@@ -10247,7 +10417,8 @@ module Aws::DynamoDB
|
|
10247
10417
|
:sse_specification,
|
10248
10418
|
:replica_updates,
|
10249
10419
|
:table_class,
|
10250
|
-
:deletion_protection_enabled
|
10420
|
+
:deletion_protection_enabled,
|
10421
|
+
:on_demand_throughput)
|
10251
10422
|
SENSITIVE = []
|
10252
10423
|
include Aws::Structure
|
10253
10424
|
end
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -214,6 +214,10 @@ module Aws
|
|
214
214
|
provisioned_throughput: {
|
215
215
|
read_capacity_units: ::Integer,
|
216
216
|
write_capacity_units: ::Integer
|
217
|
+
}?,
|
218
|
+
on_demand_throughput: {
|
219
|
+
max_read_request_units: ::Integer?,
|
220
|
+
max_write_request_units: ::Integer?
|
217
221
|
}?
|
218
222
|
},
|
219
223
|
],
|
@@ -239,7 +243,11 @@ module Aws
|
|
239
243
|
],
|
240
244
|
?table_class: ("STANDARD" | "STANDARD_INFREQUENT_ACCESS"),
|
241
245
|
?deletion_protection_enabled: bool,
|
242
|
-
?resource_policy: ::String
|
246
|
+
?resource_policy: ::String,
|
247
|
+
?on_demand_throughput: {
|
248
|
+
max_read_request_units: ::Integer?,
|
249
|
+
max_write_request_units: ::Integer?
|
250
|
+
}
|
243
251
|
) -> _CreateTableResponseSuccess
|
244
252
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateTableResponseSuccess
|
245
253
|
|
@@ -603,6 +611,10 @@ module Aws
|
|
603
611
|
read_capacity_units: ::Integer,
|
604
612
|
write_capacity_units: ::Integer
|
605
613
|
}?,
|
614
|
+
on_demand_throughput: {
|
615
|
+
max_read_request_units: ::Integer?,
|
616
|
+
max_write_request_units: ::Integer?
|
617
|
+
}?,
|
606
618
|
sse_specification: {
|
607
619
|
enabled: bool?,
|
608
620
|
sse_type: ("AES256" | "KMS")?,
|
@@ -624,6 +636,10 @@ module Aws
|
|
624
636
|
provisioned_throughput: {
|
625
637
|
read_capacity_units: ::Integer,
|
626
638
|
write_capacity_units: ::Integer
|
639
|
+
}?,
|
640
|
+
on_demand_throughput: {
|
641
|
+
max_read_request_units: ::Integer?,
|
642
|
+
max_write_request_units: ::Integer?
|
627
643
|
}?
|
628
644
|
},
|
629
645
|
]?
|
@@ -824,6 +840,10 @@ module Aws
|
|
824
840
|
provisioned_throughput: {
|
825
841
|
read_capacity_units: ::Integer,
|
826
842
|
write_capacity_units: ::Integer
|
843
|
+
}?,
|
844
|
+
on_demand_throughput: {
|
845
|
+
max_read_request_units: ::Integer?,
|
846
|
+
max_write_request_units: ::Integer?
|
827
847
|
}?
|
828
848
|
},
|
829
849
|
],
|
@@ -846,6 +866,10 @@ module Aws
|
|
846
866
|
read_capacity_units: ::Integer,
|
847
867
|
write_capacity_units: ::Integer
|
848
868
|
},
|
869
|
+
?on_demand_throughput_override: {
|
870
|
+
max_read_request_units: ::Integer?,
|
871
|
+
max_write_request_units: ::Integer?
|
872
|
+
},
|
849
873
|
?sse_specification_override: {
|
850
874
|
enabled: bool?,
|
851
875
|
sse_type: ("AES256" | "KMS")?,
|
@@ -882,6 +906,10 @@ module Aws
|
|
882
906
|
provisioned_throughput: {
|
883
907
|
read_capacity_units: ::Integer,
|
884
908
|
write_capacity_units: ::Integer
|
909
|
+
}?,
|
910
|
+
on_demand_throughput: {
|
911
|
+
max_read_request_units: ::Integer?,
|
912
|
+
max_write_request_units: ::Integer?
|
885
913
|
}?
|
886
914
|
},
|
887
915
|
],
|
@@ -904,6 +932,10 @@ module Aws
|
|
904
932
|
read_capacity_units: ::Integer,
|
905
933
|
write_capacity_units: ::Integer
|
906
934
|
},
|
935
|
+
?on_demand_throughput_override: {
|
936
|
+
max_read_request_units: ::Integer?,
|
937
|
+
max_write_request_units: ::Integer?
|
938
|
+
},
|
907
939
|
?sse_specification_override: {
|
908
940
|
enabled: bool?,
|
909
941
|
sse_type: ("AES256" | "KMS")?,
|
@@ -1247,7 +1279,11 @@ module Aws
|
|
1247
1279
|
provisioned_throughput: {
|
1248
1280
|
read_capacity_units: ::Integer,
|
1249
1281
|
write_capacity_units: ::Integer
|
1250
|
-
}
|
1282
|
+
}?,
|
1283
|
+
on_demand_throughput: {
|
1284
|
+
max_read_request_units: ::Integer?,
|
1285
|
+
max_write_request_units: ::Integer?
|
1286
|
+
}?
|
1251
1287
|
}?,
|
1252
1288
|
create: {
|
1253
1289
|
index_name: ::String,
|
@@ -1264,6 +1300,10 @@ module Aws
|
|
1264
1300
|
provisioned_throughput: {
|
1265
1301
|
read_capacity_units: ::Integer,
|
1266
1302
|
write_capacity_units: ::Integer
|
1303
|
+
}?,
|
1304
|
+
on_demand_throughput: {
|
1305
|
+
max_read_request_units: ::Integer?,
|
1306
|
+
max_write_request_units: ::Integer?
|
1267
1307
|
}?
|
1268
1308
|
}?,
|
1269
1309
|
delete: {
|
@@ -1288,11 +1328,17 @@ module Aws
|
|
1288
1328
|
provisioned_throughput_override: {
|
1289
1329
|
read_capacity_units: ::Integer?
|
1290
1330
|
}?,
|
1331
|
+
on_demand_throughput_override: {
|
1332
|
+
max_read_request_units: ::Integer?
|
1333
|
+
}?,
|
1291
1334
|
global_secondary_indexes: Array[
|
1292
1335
|
{
|
1293
1336
|
index_name: ::String,
|
1294
1337
|
provisioned_throughput_override: {
|
1295
1338
|
read_capacity_units: ::Integer?
|
1339
|
+
}?,
|
1340
|
+
on_demand_throughput_override: {
|
1341
|
+
max_read_request_units: ::Integer?
|
1296
1342
|
}?
|
1297
1343
|
},
|
1298
1344
|
]?,
|
@@ -1304,11 +1350,17 @@ module Aws
|
|
1304
1350
|
provisioned_throughput_override: {
|
1305
1351
|
read_capacity_units: ::Integer?
|
1306
1352
|
}?,
|
1353
|
+
on_demand_throughput_override: {
|
1354
|
+
max_read_request_units: ::Integer?
|
1355
|
+
}?,
|
1307
1356
|
global_secondary_indexes: Array[
|
1308
1357
|
{
|
1309
1358
|
index_name: ::String,
|
1310
1359
|
provisioned_throughput_override: {
|
1311
1360
|
read_capacity_units: ::Integer?
|
1361
|
+
}?,
|
1362
|
+
on_demand_throughput_override: {
|
1363
|
+
max_read_request_units: ::Integer?
|
1312
1364
|
}?
|
1313
1365
|
},
|
1314
1366
|
]?,
|
@@ -1320,7 +1372,11 @@ module Aws
|
|
1320
1372
|
},
|
1321
1373
|
],
|
1322
1374
|
?table_class: ("STANDARD" | "STANDARD_INFREQUENT_ACCESS"),
|
1323
|
-
?deletion_protection_enabled: bool
|
1375
|
+
?deletion_protection_enabled: bool,
|
1376
|
+
?on_demand_throughput: {
|
1377
|
+
max_read_request_units: ::Integer?,
|
1378
|
+
max_write_request_units: ::Integer?
|
1379
|
+
}
|
1324
1380
|
) -> _UpdateTableResponseSuccess
|
1325
1381
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateTableResponseSuccess
|
1326
1382
|
|