aws-sdk-dynamodb 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e199cb73afc0d46ad3c06771e2bee3ab99aadb07
4
- data.tar.gz: 819478a806d3001f843e5e2246b2df1a9609c7fe
3
+ metadata.gz: ae193cc12da22d3d6626a2aea0e4233592b1d12c
4
+ data.tar.gz: f6785690e214dbaf0bb5fa87c6d2f38d0e803e7c
5
5
  SHA512:
6
- metadata.gz: b34cc2176a8b21dad2d0cadb6f463e47758568d516af0d4a589c99b268c2ef39b1a208d3e9f725ce8d06d26cf0bc3a1baacf20b5cfe652339bbfe5644e0b8cb2
7
- data.tar.gz: b7375b7a1bfcd8fb003a09772c091867229fe102539b560732c09060cbcbbde858020e980fb8ea7662120184cbf610299aa737e0b8f7ee577d7db98022592a6c
6
+ metadata.gz: ee090788225f8e27cd79c9ae67a3c791255dea7a42fb43c17e1f17e2e5b5e8f6f63a96556d99fa99d7fdae4c8b89391f2ae757e5677f1ed20befab1a2a68ee34
7
+ data.tar.gz: 198b7d67fa1266285d4f22522430f7f9c814aafccd7d8fd3a98f9a6e1ca9f7ad00c219d778f22ede89ea8298576876f2223a44717e28bfea1a19c9bb42cbd8e8
@@ -44,6 +44,6 @@ require_relative 'aws-sdk-dynamodb/customizations'
44
44
  # @service
45
45
  module Aws::DynamoDB
46
46
 
47
- GEM_VERSION = '1.5.0'
47
+ GEM_VERSION = '1.6.0'
48
48
 
49
49
  end
@@ -818,6 +818,20 @@ module Aws::DynamoDB
818
818
  # * The tables must have DynamoDB Streams enabled
819
819
  # (NEW\_AND\_OLD\_IMAGES).
820
820
  #
821
+ # * The tables must have same provisioned and maximum write capacity
822
+ # units.
823
+ #
824
+ # If global secondary indexes are specified, then the following
825
+ # conditions must also be met:
826
+ #
827
+ # * The global secondary indexes must have the same name.
828
+ #
829
+ # * The global secondary indexes must have the same hash key and sort
830
+ # key (if present).
831
+ #
832
+ # * The global secondary indexes must have the same provisioned and
833
+ # maximum write capacity units.
834
+ #
821
835
  # @option params [required, String] :global_table_name
822
836
  # The global table name.
823
837
  #
@@ -1795,7 +1809,7 @@ module Aws::DynamoDB
1795
1809
  #
1796
1810
  # `LatestRestorableDateTime` is typically 5 minutes before the current
1797
1811
  # time. You can restore your table to any point in time during the last
1798
- # 35 days with a 1-minute granularity.
1812
+ # 35 days.
1799
1813
  #
1800
1814
  # You can call `DescribeContinuousBackups` at a maximum rate of 10 times
1801
1815
  # per second.
@@ -1863,6 +1877,45 @@ module Aws::DynamoDB
1863
1877
  req.send_request(options)
1864
1878
  end
1865
1879
 
1880
+ # Describes region specific settings for a global table.
1881
+ #
1882
+ # @option params [required, String] :global_table_name
1883
+ # The name of the global table to describe.
1884
+ #
1885
+ # @return [Types::DescribeGlobalTableSettingsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1886
+ #
1887
+ # * {Types::DescribeGlobalTableSettingsOutput#global_table_name #global_table_name} => String
1888
+ # * {Types::DescribeGlobalTableSettingsOutput#replica_settings #replica_settings} => Array<Types::ReplicaSettingsDescription>
1889
+ #
1890
+ # @example Request syntax with placeholder values
1891
+ #
1892
+ # resp = client.describe_global_table_settings({
1893
+ # global_table_name: "TableName", # required
1894
+ # })
1895
+ #
1896
+ # @example Response structure
1897
+ #
1898
+ # resp.global_table_name #=> String
1899
+ # resp.replica_settings #=> Array
1900
+ # resp.replica_settings[0].region_name #=> String
1901
+ # resp.replica_settings[0].replica_status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE"
1902
+ # resp.replica_settings[0].replica_provisioned_read_capacity_units #=> Integer
1903
+ # resp.replica_settings[0].replica_provisioned_write_capacity_units #=> Integer
1904
+ # resp.replica_settings[0].replica_global_secondary_index_settings #=> Array
1905
+ # resp.replica_settings[0].replica_global_secondary_index_settings[0].index_name #=> String
1906
+ # resp.replica_settings[0].replica_global_secondary_index_settings[0].index_status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE"
1907
+ # resp.replica_settings[0].replica_global_secondary_index_settings[0].provisioned_read_capacity_units #=> Integer
1908
+ # resp.replica_settings[0].replica_global_secondary_index_settings[0].provisioned_write_capacity_units #=> Integer
1909
+ #
1910
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeGlobalTableSettings AWS API Documentation
1911
+ #
1912
+ # @overload describe_global_table_settings(params = {})
1913
+ # @param [Hash] params ({})
1914
+ def describe_global_table_settings(params = {}, options = {})
1915
+ req = build_request(:describe_global_table_settings, params)
1916
+ req.send_request(options)
1917
+ end
1918
+
1866
1919
  # Returns the current provisioned-capacity limits for your AWS account
1867
1920
  # in a region, both for the region as a whole and for any one DynamoDB
1868
1921
  # table that you create there.
@@ -3521,9 +3574,27 @@ module Aws::DynamoDB
3521
3574
 
3522
3575
  # Restores the specified table to the specified point in time within
3523
3576
  # `EarliestRestorableDateTime` and `LatestRestorableDateTime`. You can
3524
- # restore your table to any point in time during the last 35 days with a
3525
- # 1-minute granularity. Any number of users can execute up to 4
3526
- # concurrent restores (any type of restore) in a given account.
3577
+ # restore your table to any point in time during the last 35 days. Any
3578
+ # number of users can execute up to 4 concurrent restores (any type of
3579
+ # restore) in a given account.
3580
+ #
3581
+ # When you restore using point in time recovery, DynamoDB restores your
3582
+ # table data to the state based on the selected date and time
3583
+ # (day:hour:minute:second) to a new table.
3584
+ #
3585
+ # Along with data, the following are also included on the new restored
3586
+ # table using point in time recovery:
3587
+ #
3588
+ # * Global secondary indexes (GSIs)
3589
+ #
3590
+ # * Local secondary indexes (LSIs)
3591
+ #
3592
+ # * Provisioned read and write capacity
3593
+ #
3594
+ # * Encryption settings
3595
+ #
3596
+ # All these settings come from the current settings of the source
3597
+ # table at the time of restore.
3527
3598
  #
3528
3599
  # You must manually set up the following on the restored table:
3529
3600
  #
@@ -4170,7 +4241,7 @@ module Aws::DynamoDB
4170
4241
  #
4171
4242
  # `LatestRestorableDateTime` is typically 5 minutes before the current
4172
4243
  # time. You can restore your table to any point in time during the last
4173
- # 35 days with a 1-minute granularity.
4244
+ # 35 days..
4174
4245
  #
4175
4246
  # @option params [required, String] :table_name
4176
4247
  # The name of the table.
@@ -4211,7 +4282,8 @@ module Aws::DynamoDB
4211
4282
  # table must already exist to be able to use this operation. Any replica
4212
4283
  # to be added must be empty, must have the same name as the global
4213
4284
  # table, must have the same key schema, and must have DynamoDB Streams
4214
- # enabled.
4285
+ # enabled and must have same provisioned and maximum write capacity
4286
+ # units.
4215
4287
  #
4216
4288
  # <note markdown="1"> Although you can use `UpdateGlobalTable` to add replicas and remove
4217
4289
  # replicas in a single request, for simplicity we recommend that you
@@ -4219,6 +4291,17 @@ module Aws::DynamoDB
4219
4291
  #
4220
4292
  # </note>
4221
4293
  #
4294
+ # If global secondary indexes are specified, then the following
4295
+ # conditions must also be met:
4296
+ #
4297
+ # * The global secondary indexes must have the same name.
4298
+ #
4299
+ # * The global secondary indexes must have the same hash key and sort
4300
+ # key (if present).
4301
+ #
4302
+ # * The global secondary indexes must have the same provisioned and
4303
+ # maximum write capacity units.
4304
+ #
4222
4305
  # @option params [required, String] :global_table_name
4223
4306
  # The global table name.
4224
4307
  #
@@ -4264,6 +4347,76 @@ module Aws::DynamoDB
4264
4347
  req.send_request(options)
4265
4348
  end
4266
4349
 
4350
+ # Updates settings for a global table.
4351
+ #
4352
+ # @option params [required, String] :global_table_name
4353
+ # The name of the global table
4354
+ #
4355
+ # @option params [Integer] :global_table_provisioned_write_capacity_units
4356
+ # The maximum number of writes consumed per second before DynamoDB
4357
+ # returns a `ThrottlingException.`
4358
+ #
4359
+ # @option params [Array<Types::GlobalTableGlobalSecondaryIndexSettingsUpdate>] :global_table_global_secondary_index_settings_update
4360
+ # Represents the settings of a global secondary index for a global table
4361
+ # that will be modified.
4362
+ #
4363
+ # @option params [Array<Types::ReplicaSettingsUpdate>] :replica_settings_update
4364
+ # Represents the settings for a global table in a region that will be
4365
+ # modified.
4366
+ #
4367
+ # @return [Types::UpdateGlobalTableSettingsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4368
+ #
4369
+ # * {Types::UpdateGlobalTableSettingsOutput#global_table_name #global_table_name} => String
4370
+ # * {Types::UpdateGlobalTableSettingsOutput#replica_settings #replica_settings} => Array&lt;Types::ReplicaSettingsDescription&gt;
4371
+ #
4372
+ # @example Request syntax with placeholder values
4373
+ #
4374
+ # resp = client.update_global_table_settings({
4375
+ # global_table_name: "TableName", # required
4376
+ # global_table_provisioned_write_capacity_units: 1,
4377
+ # global_table_global_secondary_index_settings_update: [
4378
+ # {
4379
+ # index_name: "IndexName", # required
4380
+ # provisioned_write_capacity_units: 1,
4381
+ # },
4382
+ # ],
4383
+ # replica_settings_update: [
4384
+ # {
4385
+ # region_name: "RegionName", # required
4386
+ # replica_provisioned_read_capacity_units: 1,
4387
+ # replica_global_secondary_index_settings_update: [
4388
+ # {
4389
+ # index_name: "IndexName", # required
4390
+ # provisioned_read_capacity_units: 1,
4391
+ # },
4392
+ # ],
4393
+ # },
4394
+ # ],
4395
+ # })
4396
+ #
4397
+ # @example Response structure
4398
+ #
4399
+ # resp.global_table_name #=> String
4400
+ # resp.replica_settings #=> Array
4401
+ # resp.replica_settings[0].region_name #=> String
4402
+ # resp.replica_settings[0].replica_status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE"
4403
+ # resp.replica_settings[0].replica_provisioned_read_capacity_units #=> Integer
4404
+ # resp.replica_settings[0].replica_provisioned_write_capacity_units #=> Integer
4405
+ # resp.replica_settings[0].replica_global_secondary_index_settings #=> Array
4406
+ # resp.replica_settings[0].replica_global_secondary_index_settings[0].index_name #=> String
4407
+ # resp.replica_settings[0].replica_global_secondary_index_settings[0].index_status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE"
4408
+ # resp.replica_settings[0].replica_global_secondary_index_settings[0].provisioned_read_capacity_units #=> Integer
4409
+ # resp.replica_settings[0].replica_global_secondary_index_settings[0].provisioned_write_capacity_units #=> Integer
4410
+ #
4411
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateGlobalTableSettings AWS API Documentation
4412
+ #
4413
+ # @overload update_global_table_settings(params = {})
4414
+ # @param [Hash] params ({})
4415
+ def update_global_table_settings(params = {}, options = {})
4416
+ req = build_request(:update_global_table_settings, params)
4417
+ req.send_request(options)
4418
+ end
4419
+
4267
4420
  # Edits an existing item's attributes, or adds a new item to the table
4268
4421
  # if it does not already exist. You can put, delete, or add attribute
4269
4422
  # values. You can also perform a conditional update on an existing item
@@ -4985,7 +5138,7 @@ module Aws::DynamoDB
4985
5138
  params: params,
4986
5139
  config: config)
4987
5140
  context[:gem_name] = 'aws-sdk-dynamodb'
4988
- context[:gem_version] = '1.5.0'
5141
+ context[:gem_version] = '1.6.0'
4989
5142
  Seahorse::Client::Request.new(handlers, context)
4990
5143
  end
4991
5144
 
@@ -82,6 +82,8 @@ module Aws::DynamoDB
82
82
  DescribeContinuousBackupsOutput = Shapes::StructureShape.new(name: 'DescribeContinuousBackupsOutput')
83
83
  DescribeGlobalTableInput = Shapes::StructureShape.new(name: 'DescribeGlobalTableInput')
84
84
  DescribeGlobalTableOutput = Shapes::StructureShape.new(name: 'DescribeGlobalTableOutput')
85
+ DescribeGlobalTableSettingsInput = Shapes::StructureShape.new(name: 'DescribeGlobalTableSettingsInput')
86
+ DescribeGlobalTableSettingsOutput = Shapes::StructureShape.new(name: 'DescribeGlobalTableSettingsOutput')
85
87
  DescribeLimitsInput = Shapes::StructureShape.new(name: 'DescribeLimitsInput')
86
88
  DescribeLimitsOutput = Shapes::StructureShape.new(name: 'DescribeLimitsOutput')
87
89
  DescribeTableInput = Shapes::StructureShape.new(name: 'DescribeTableInput')
@@ -110,10 +112,13 @@ module Aws::DynamoDB
110
112
  GlobalTableAlreadyExistsException = Shapes::StructureShape.new(name: 'GlobalTableAlreadyExistsException')
111
113
  GlobalTableArnString = Shapes::StringShape.new(name: 'GlobalTableArnString')
112
114
  GlobalTableDescription = Shapes::StructureShape.new(name: 'GlobalTableDescription')
115
+ GlobalTableGlobalSecondaryIndexSettingsUpdate = Shapes::StructureShape.new(name: 'GlobalTableGlobalSecondaryIndexSettingsUpdate')
116
+ GlobalTableGlobalSecondaryIndexSettingsUpdateList = Shapes::ListShape.new(name: 'GlobalTableGlobalSecondaryIndexSettingsUpdateList')
113
117
  GlobalTableList = Shapes::ListShape.new(name: 'GlobalTableList')
114
118
  GlobalTableNotFoundException = Shapes::StructureShape.new(name: 'GlobalTableNotFoundException')
115
119
  GlobalTableStatus = Shapes::StringShape.new(name: 'GlobalTableStatus')
116
120
  IndexName = Shapes::StringShape.new(name: 'IndexName')
121
+ IndexNotFoundException = Shapes::StructureShape.new(name: 'IndexNotFoundException')
117
122
  IndexStatus = Shapes::StringShape.new(name: 'IndexStatus')
118
123
  Integer = Shapes::IntegerShape.new(name: 'Integer')
119
124
  InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
@@ -184,8 +189,17 @@ module Aws::DynamoDB
184
189
  ReplicaAlreadyExistsException = Shapes::StructureShape.new(name: 'ReplicaAlreadyExistsException')
185
190
  ReplicaDescription = Shapes::StructureShape.new(name: 'ReplicaDescription')
186
191
  ReplicaDescriptionList = Shapes::ListShape.new(name: 'ReplicaDescriptionList')
192
+ ReplicaGlobalSecondaryIndexSettingsDescription = Shapes::StructureShape.new(name: 'ReplicaGlobalSecondaryIndexSettingsDescription')
193
+ ReplicaGlobalSecondaryIndexSettingsDescriptionList = Shapes::ListShape.new(name: 'ReplicaGlobalSecondaryIndexSettingsDescriptionList')
194
+ ReplicaGlobalSecondaryIndexSettingsUpdate = Shapes::StructureShape.new(name: 'ReplicaGlobalSecondaryIndexSettingsUpdate')
195
+ ReplicaGlobalSecondaryIndexSettingsUpdateList = Shapes::ListShape.new(name: 'ReplicaGlobalSecondaryIndexSettingsUpdateList')
187
196
  ReplicaList = Shapes::ListShape.new(name: 'ReplicaList')
188
197
  ReplicaNotFoundException = Shapes::StructureShape.new(name: 'ReplicaNotFoundException')
198
+ ReplicaSettingsDescription = Shapes::StructureShape.new(name: 'ReplicaSettingsDescription')
199
+ ReplicaSettingsDescriptionList = Shapes::ListShape.new(name: 'ReplicaSettingsDescriptionList')
200
+ ReplicaSettingsUpdate = Shapes::StructureShape.new(name: 'ReplicaSettingsUpdate')
201
+ ReplicaSettingsUpdateList = Shapes::ListShape.new(name: 'ReplicaSettingsUpdateList')
202
+ ReplicaStatus = Shapes::StringShape.new(name: 'ReplicaStatus')
189
203
  ReplicaUpdate = Shapes::StructureShape.new(name: 'ReplicaUpdate')
190
204
  ReplicaUpdateList = Shapes::ListShape.new(name: 'ReplicaUpdateList')
191
205
  ResourceArnString = Shapes::StringShape.new(name: 'ResourceArnString')
@@ -250,6 +264,8 @@ module Aws::DynamoDB
250
264
  UpdateGlobalSecondaryIndexAction = Shapes::StructureShape.new(name: 'UpdateGlobalSecondaryIndexAction')
251
265
  UpdateGlobalTableInput = Shapes::StructureShape.new(name: 'UpdateGlobalTableInput')
252
266
  UpdateGlobalTableOutput = Shapes::StructureShape.new(name: 'UpdateGlobalTableOutput')
267
+ UpdateGlobalTableSettingsInput = Shapes::StructureShape.new(name: 'UpdateGlobalTableSettingsInput')
268
+ UpdateGlobalTableSettingsOutput = Shapes::StructureShape.new(name: 'UpdateGlobalTableSettingsOutput')
253
269
  UpdateItemInput = Shapes::StructureShape.new(name: 'UpdateItemInput')
254
270
  UpdateItemOutput = Shapes::StructureShape.new(name: 'UpdateItemOutput')
255
271
  UpdateTableInput = Shapes::StructureShape.new(name: 'UpdateTableInput')
@@ -457,6 +473,13 @@ module Aws::DynamoDB
457
473
  DescribeGlobalTableOutput.add_member(:global_table_description, Shapes::ShapeRef.new(shape: GlobalTableDescription, location_name: "GlobalTableDescription"))
458
474
  DescribeGlobalTableOutput.struct_class = Types::DescribeGlobalTableOutput
459
475
 
476
+ DescribeGlobalTableSettingsInput.add_member(:global_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "GlobalTableName"))
477
+ DescribeGlobalTableSettingsInput.struct_class = Types::DescribeGlobalTableSettingsInput
478
+
479
+ DescribeGlobalTableSettingsOutput.add_member(:global_table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "GlobalTableName"))
480
+ DescribeGlobalTableSettingsOutput.add_member(:replica_settings, Shapes::ShapeRef.new(shape: ReplicaSettingsDescriptionList, location_name: "ReplicaSettings"))
481
+ DescribeGlobalTableSettingsOutput.struct_class = Types::DescribeGlobalTableSettingsOutput
482
+
460
483
  DescribeLimitsInput.struct_class = Types::DescribeLimitsInput
461
484
 
462
485
  DescribeLimitsOutput.add_member(:account_max_read_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "AccountMaxReadCapacityUnits"))
@@ -555,6 +578,12 @@ module Aws::DynamoDB
555
578
  GlobalTableDescription.add_member(:global_table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "GlobalTableName"))
556
579
  GlobalTableDescription.struct_class = Types::GlobalTableDescription
557
580
 
581
+ GlobalTableGlobalSecondaryIndexSettingsUpdate.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "IndexName"))
582
+ GlobalTableGlobalSecondaryIndexSettingsUpdate.add_member(:provisioned_write_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ProvisionedWriteCapacityUnits"))
583
+ GlobalTableGlobalSecondaryIndexSettingsUpdate.struct_class = Types::GlobalTableGlobalSecondaryIndexSettingsUpdate
584
+
585
+ GlobalTableGlobalSecondaryIndexSettingsUpdateList.member = Shapes::ShapeRef.new(shape: GlobalTableGlobalSecondaryIndexSettingsUpdate)
586
+
558
587
  GlobalTableList.member = Shapes::ShapeRef.new(shape: GlobalTable)
559
588
 
560
589
  ItemCollectionKeyAttributeMap.key = Shapes::ShapeRef.new(shape: AttributeName)
@@ -743,8 +772,38 @@ module Aws::DynamoDB
743
772
 
744
773
  ReplicaDescriptionList.member = Shapes::ShapeRef.new(shape: ReplicaDescription)
745
774
 
775
+ ReplicaGlobalSecondaryIndexSettingsDescription.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "IndexName"))
776
+ ReplicaGlobalSecondaryIndexSettingsDescription.add_member(:index_status, Shapes::ShapeRef.new(shape: IndexStatus, location_name: "IndexStatus"))
777
+ ReplicaGlobalSecondaryIndexSettingsDescription.add_member(:provisioned_read_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ProvisionedReadCapacityUnits"))
778
+ ReplicaGlobalSecondaryIndexSettingsDescription.add_member(:provisioned_write_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ProvisionedWriteCapacityUnits"))
779
+ ReplicaGlobalSecondaryIndexSettingsDescription.struct_class = Types::ReplicaGlobalSecondaryIndexSettingsDescription
780
+
781
+ ReplicaGlobalSecondaryIndexSettingsDescriptionList.member = Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexSettingsDescription)
782
+
783
+ ReplicaGlobalSecondaryIndexSettingsUpdate.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "IndexName"))
784
+ ReplicaGlobalSecondaryIndexSettingsUpdate.add_member(:provisioned_read_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ProvisionedReadCapacityUnits"))
785
+ ReplicaGlobalSecondaryIndexSettingsUpdate.struct_class = Types::ReplicaGlobalSecondaryIndexSettingsUpdate
786
+
787
+ ReplicaGlobalSecondaryIndexSettingsUpdateList.member = Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexSettingsUpdate)
788
+
746
789
  ReplicaList.member = Shapes::ShapeRef.new(shape: Replica)
747
790
 
791
+ ReplicaSettingsDescription.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
792
+ ReplicaSettingsDescription.add_member(:replica_status, Shapes::ShapeRef.new(shape: ReplicaStatus, location_name: "ReplicaStatus"))
793
+ ReplicaSettingsDescription.add_member(:replica_provisioned_read_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ReplicaProvisionedReadCapacityUnits"))
794
+ ReplicaSettingsDescription.add_member(:replica_provisioned_write_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ReplicaProvisionedWriteCapacityUnits"))
795
+ ReplicaSettingsDescription.add_member(:replica_global_secondary_index_settings, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexSettingsDescriptionList, location_name: "ReplicaGlobalSecondaryIndexSettings"))
796
+ ReplicaSettingsDescription.struct_class = Types::ReplicaSettingsDescription
797
+
798
+ ReplicaSettingsDescriptionList.member = Shapes::ShapeRef.new(shape: ReplicaSettingsDescription)
799
+
800
+ ReplicaSettingsUpdate.add_member(:region_name, Shapes::ShapeRef.new(shape: RegionName, required: true, location_name: "RegionName"))
801
+ ReplicaSettingsUpdate.add_member(:replica_provisioned_read_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "ReplicaProvisionedReadCapacityUnits"))
802
+ ReplicaSettingsUpdate.add_member(:replica_global_secondary_index_settings_update, Shapes::ShapeRef.new(shape: ReplicaGlobalSecondaryIndexSettingsUpdateList, location_name: "ReplicaGlobalSecondaryIndexSettingsUpdate"))
803
+ ReplicaSettingsUpdate.struct_class = Types::ReplicaSettingsUpdate
804
+
805
+ ReplicaSettingsUpdateList.member = Shapes::ShapeRef.new(shape: ReplicaSettingsUpdate)
806
+
748
807
  ReplicaUpdate.add_member(:create, Shapes::ShapeRef.new(shape: CreateReplicaAction, location_name: "Create"))
749
808
  ReplicaUpdate.add_member(:delete, Shapes::ShapeRef.new(shape: DeleteReplicaAction, location_name: "Delete"))
750
809
  ReplicaUpdate.struct_class = Types::ReplicaUpdate
@@ -893,6 +952,16 @@ module Aws::DynamoDB
893
952
  UpdateGlobalTableOutput.add_member(:global_table_description, Shapes::ShapeRef.new(shape: GlobalTableDescription, location_name: "GlobalTableDescription"))
894
953
  UpdateGlobalTableOutput.struct_class = Types::UpdateGlobalTableOutput
895
954
 
955
+ UpdateGlobalTableSettingsInput.add_member(:global_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "GlobalTableName"))
956
+ UpdateGlobalTableSettingsInput.add_member(:global_table_provisioned_write_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "GlobalTableProvisionedWriteCapacityUnits"))
957
+ UpdateGlobalTableSettingsInput.add_member(:global_table_global_secondary_index_settings_update, Shapes::ShapeRef.new(shape: GlobalTableGlobalSecondaryIndexSettingsUpdateList, location_name: "GlobalTableGlobalSecondaryIndexSettingsUpdate"))
958
+ UpdateGlobalTableSettingsInput.add_member(:replica_settings_update, Shapes::ShapeRef.new(shape: ReplicaSettingsUpdateList, location_name: "ReplicaSettingsUpdate"))
959
+ UpdateGlobalTableSettingsInput.struct_class = Types::UpdateGlobalTableSettingsInput
960
+
961
+ UpdateGlobalTableSettingsOutput.add_member(:global_table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "GlobalTableName"))
962
+ UpdateGlobalTableSettingsOutput.add_member(:replica_settings, Shapes::ShapeRef.new(shape: ReplicaSettingsDescriptionList, location_name: "ReplicaSettings"))
963
+ UpdateGlobalTableSettingsOutput.struct_class = Types::UpdateGlobalTableSettingsOutput
964
+
896
965
  UpdateItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
897
966
  UpdateItemInput.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
898
967
  UpdateItemInput.add_member(:attribute_updates, Shapes::ShapeRef.new(shape: AttributeUpdates, location_name: "AttributeUpdates"))
@@ -1082,6 +1151,16 @@ module Aws::DynamoDB
1082
1151
  o.errors << Shapes::ShapeRef.new(shape: GlobalTableNotFoundException)
1083
1152
  end)
1084
1153
 
1154
+ api.add_operation(:describe_global_table_settings, Seahorse::Model::Operation.new.tap do |o|
1155
+ o.name = "DescribeGlobalTableSettings"
1156
+ o.http_method = "POST"
1157
+ o.http_request_uri = "/"
1158
+ o.input = Shapes::ShapeRef.new(shape: DescribeGlobalTableSettingsInput)
1159
+ o.output = Shapes::ShapeRef.new(shape: DescribeGlobalTableSettingsOutput)
1160
+ o.errors << Shapes::ShapeRef.new(shape: GlobalTableNotFoundException)
1161
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1162
+ end)
1163
+
1085
1164
  api.add_operation(:describe_limits, Seahorse::Model::Operation.new.tap do |o|
1086
1165
  o.name = "DescribeLimits"
1087
1166
  o.http_method = "POST"
@@ -1289,6 +1368,20 @@ module Aws::DynamoDB
1289
1368
  o.errors << Shapes::ShapeRef.new(shape: TableNotFoundException)
1290
1369
  end)
1291
1370
 
1371
+ api.add_operation(:update_global_table_settings, Seahorse::Model::Operation.new.tap do |o|
1372
+ o.name = "UpdateGlobalTableSettings"
1373
+ o.http_method = "POST"
1374
+ o.http_request_uri = "/"
1375
+ o.input = Shapes::ShapeRef.new(shape: UpdateGlobalTableSettingsInput)
1376
+ o.output = Shapes::ShapeRef.new(shape: UpdateGlobalTableSettingsOutput)
1377
+ o.errors << Shapes::ShapeRef.new(shape: GlobalTableNotFoundException)
1378
+ o.errors << Shapes::ShapeRef.new(shape: ReplicaNotFoundException)
1379
+ o.errors << Shapes::ShapeRef.new(shape: IndexNotFoundException)
1380
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1381
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1382
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1383
+ end)
1384
+
1292
1385
  api.add_operation(:update_item, Seahorse::Model::Operation.new.tap do |o|
1293
1386
  o.name = "UpdateItem"
1294
1387
  o.http_method = "POST"
@@ -2001,6 +2001,40 @@ module Aws::DynamoDB
2001
2001
  include Aws::Structure
2002
2002
  end
2003
2003
 
2004
+ # @note When making an API call, you may pass DescribeGlobalTableSettingsInput
2005
+ # data as a hash:
2006
+ #
2007
+ # {
2008
+ # global_table_name: "TableName", # required
2009
+ # }
2010
+ #
2011
+ # @!attribute [rw] global_table_name
2012
+ # The name of the global table to describe.
2013
+ # @return [String]
2014
+ #
2015
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeGlobalTableSettingsInput AWS API Documentation
2016
+ #
2017
+ class DescribeGlobalTableSettingsInput < Struct.new(
2018
+ :global_table_name)
2019
+ include Aws::Structure
2020
+ end
2021
+
2022
+ # @!attribute [rw] global_table_name
2023
+ # The name of the global table.
2024
+ # @return [String]
2025
+ #
2026
+ # @!attribute [rw] replica_settings
2027
+ # The region specific settings for the global table.
2028
+ # @return [Array<Types::ReplicaSettingsDescription>]
2029
+ #
2030
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeGlobalTableSettingsOutput AWS API Documentation
2031
+ #
2032
+ class DescribeGlobalTableSettingsOutput < Struct.new(
2033
+ :global_table_name,
2034
+ :replica_settings)
2035
+ include Aws::Structure
2036
+ end
2037
+
2004
2038
  # Represents the input of a `DescribeLimits` operation. Has no content.
2005
2039
  #
2006
2040
  # @api private
@@ -2933,6 +2967,35 @@ module Aws::DynamoDB
2933
2967
  include Aws::Structure
2934
2968
  end
2935
2969
 
2970
+ # Represents the settings of a global secondary index for a global table
2971
+ # that will be modified.
2972
+ #
2973
+ # @note When making an API call, you may pass GlobalTableGlobalSecondaryIndexSettingsUpdate
2974
+ # data as a hash:
2975
+ #
2976
+ # {
2977
+ # index_name: "IndexName", # required
2978
+ # provisioned_write_capacity_units: 1,
2979
+ # }
2980
+ #
2981
+ # @!attribute [rw] index_name
2982
+ # The name of the global secondary index. The name must be unique
2983
+ # among all other indexes on this table.
2984
+ # @return [String]
2985
+ #
2986
+ # @!attribute [rw] provisioned_write_capacity_units
2987
+ # The maximum number of writes consumed per second before DynamoDB
2988
+ # returns a `ThrottlingException.`
2989
+ # @return [Integer]
2990
+ #
2991
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/GlobalTableGlobalSecondaryIndexSettingsUpdate AWS API Documentation
2992
+ #
2993
+ class GlobalTableGlobalSecondaryIndexSettingsUpdate < Struct.new(
2994
+ :index_name,
2995
+ :provisioned_write_capacity_units)
2996
+ include Aws::Structure
2997
+ end
2998
+
2936
2999
  # Information about item collections, if any, that were affected by the
2937
3000
  # operation. `ItemCollectionMetrics` is only returned if the request
2938
3001
  # asked for it. If the table does not have any local secondary indexes,
@@ -3535,13 +3598,13 @@ module Aws::DynamoDB
3535
3598
  #
3536
3599
  # @!attribute [rw] earliest_restorable_date_time
3537
3600
  # Specifies the earliest point in time you can restore your table to.
3538
- # It is equal to the maximum of point in time recovery enabled time
3539
- # and `CurrentTime` - `PointInTimeRecoveryPeriod`.
3601
+ # It You can restore your table to any point in time during the last
3602
+ # 35 days.
3540
3603
  # @return [Time]
3541
3604
  #
3542
3605
  # @!attribute [rw] latest_restorable_date_time
3543
- # `LatestRestorableDateTime` is 5 minutes from now and there is a +/-
3544
- # 1 minute fuzziness on the restore times.
3606
+ # `LatestRestorableDateTime` is typically 5 minutes before the current
3607
+ # time.
3545
3608
  # @return [Time]
3546
3609
  #
3547
3610
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PointInTimeRecoveryDescription AWS API Documentation
@@ -4602,6 +4665,175 @@ module Aws::DynamoDB
4602
4665
  include Aws::Structure
4603
4666
  end
4604
4667
 
4668
+ # Represents the properties of a global secondary index.
4669
+ #
4670
+ # @!attribute [rw] index_name
4671
+ # The name of the global secondary index. The name must be unique
4672
+ # among all other indexes on this table.
4673
+ # @return [String]
4674
+ #
4675
+ # @!attribute [rw] index_status
4676
+ # The current status of the global secondary index:
4677
+ #
4678
+ # * `CREATING` - The global secondary index is being created.
4679
+ #
4680
+ # * `UPDATING` - The global secondary index is being updated.
4681
+ #
4682
+ # * `DELETING` - The global secondary index is being deleted.
4683
+ #
4684
+ # * `ACTIVE` - The global secondary index is ready for use.
4685
+ # @return [String]
4686
+ #
4687
+ # @!attribute [rw] provisioned_read_capacity_units
4688
+ # The maximum number of strongly consistent reads consumed per second
4689
+ # before DynamoDB returns a `ThrottlingException`.
4690
+ # @return [Integer]
4691
+ #
4692
+ # @!attribute [rw] provisioned_write_capacity_units
4693
+ # The maximum number of writes consumed per second before DynamoDB
4694
+ # returns a `ThrottlingException`.
4695
+ # @return [Integer]
4696
+ #
4697
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ReplicaGlobalSecondaryIndexSettingsDescription AWS API Documentation
4698
+ #
4699
+ class ReplicaGlobalSecondaryIndexSettingsDescription < Struct.new(
4700
+ :index_name,
4701
+ :index_status,
4702
+ :provisioned_read_capacity_units,
4703
+ :provisioned_write_capacity_units)
4704
+ include Aws::Structure
4705
+ end
4706
+
4707
+ # Represents the settings of a global secondary index for a global table
4708
+ # that will be modified.
4709
+ #
4710
+ # @note When making an API call, you may pass ReplicaGlobalSecondaryIndexSettingsUpdate
4711
+ # data as a hash:
4712
+ #
4713
+ # {
4714
+ # index_name: "IndexName", # required
4715
+ # provisioned_read_capacity_units: 1,
4716
+ # }
4717
+ #
4718
+ # @!attribute [rw] index_name
4719
+ # The name of the global secondary index. The name must be unique
4720
+ # among all other indexes on this table.
4721
+ # @return [String]
4722
+ #
4723
+ # @!attribute [rw] provisioned_read_capacity_units
4724
+ # The maximum number of strongly consistent reads consumed per second
4725
+ # before DynamoDB returns a `ThrottlingException`.
4726
+ # @return [Integer]
4727
+ #
4728
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ReplicaGlobalSecondaryIndexSettingsUpdate AWS API Documentation
4729
+ #
4730
+ class ReplicaGlobalSecondaryIndexSettingsUpdate < Struct.new(
4731
+ :index_name,
4732
+ :provisioned_read_capacity_units)
4733
+ include Aws::Structure
4734
+ end
4735
+
4736
+ # Represents the properties of a replica.
4737
+ #
4738
+ # @!attribute [rw] region_name
4739
+ # The region name of the replica.
4740
+ # @return [String]
4741
+ #
4742
+ # @!attribute [rw] replica_status
4743
+ # The current state of the region:
4744
+ #
4745
+ # * `CREATING` - The region is being created.
4746
+ #
4747
+ # * `UPDATING` - The region is being updated.
4748
+ #
4749
+ # * `DELETING` - The region is being deleted.
4750
+ #
4751
+ # * `ACTIVE` - The region is ready for use.
4752
+ # @return [String]
4753
+ #
4754
+ # @!attribute [rw] replica_provisioned_read_capacity_units
4755
+ # The maximum number of strongly consistent reads consumed per second
4756
+ # before DynamoDB returns a `ThrottlingException`. For more
4757
+ # information, see [Specifying Read and Write Requirements][1] in the
4758
+ # *Amazon DynamoDB Developer Guide*.
4759
+ #
4760
+ #
4761
+ #
4762
+ # [1]: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput
4763
+ # @return [Integer]
4764
+ #
4765
+ # @!attribute [rw] replica_provisioned_write_capacity_units
4766
+ # The maximum number of writes consumed per second before DynamoDB
4767
+ # returns a `ThrottlingException`. For more information, see
4768
+ # [Specifying Read and Write Requirements][1] in the *Amazon DynamoDB
4769
+ # Developer Guide*.
4770
+ #
4771
+ #
4772
+ #
4773
+ # [1]: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput
4774
+ # @return [Integer]
4775
+ #
4776
+ # @!attribute [rw] replica_global_secondary_index_settings
4777
+ # Replica global secondary index settings for the global table.
4778
+ # @return [Array<Types::ReplicaGlobalSecondaryIndexSettingsDescription>]
4779
+ #
4780
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ReplicaSettingsDescription AWS API Documentation
4781
+ #
4782
+ class ReplicaSettingsDescription < Struct.new(
4783
+ :region_name,
4784
+ :replica_status,
4785
+ :replica_provisioned_read_capacity_units,
4786
+ :replica_provisioned_write_capacity_units,
4787
+ :replica_global_secondary_index_settings)
4788
+ include Aws::Structure
4789
+ end
4790
+
4791
+ # Represents the settings for a global table in a region that will be
4792
+ # modified.
4793
+ #
4794
+ # @note When making an API call, you may pass ReplicaSettingsUpdate
4795
+ # data as a hash:
4796
+ #
4797
+ # {
4798
+ # region_name: "RegionName", # required
4799
+ # replica_provisioned_read_capacity_units: 1,
4800
+ # replica_global_secondary_index_settings_update: [
4801
+ # {
4802
+ # index_name: "IndexName", # required
4803
+ # provisioned_read_capacity_units: 1,
4804
+ # },
4805
+ # ],
4806
+ # }
4807
+ #
4808
+ # @!attribute [rw] region_name
4809
+ # The region of the replica to be added.
4810
+ # @return [String]
4811
+ #
4812
+ # @!attribute [rw] replica_provisioned_read_capacity_units
4813
+ # The maximum number of strongly consistent reads consumed per second
4814
+ # before DynamoDB returns a `ThrottlingException`. For more
4815
+ # information, see [Specifying Read and Write Requirements][1] in the
4816
+ # *Amazon DynamoDB Developer Guide*.
4817
+ #
4818
+ #
4819
+ #
4820
+ # [1]: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#ProvisionedThroughput
4821
+ # @return [Integer]
4822
+ #
4823
+ # @!attribute [rw] replica_global_secondary_index_settings_update
4824
+ # Represents the settings of a global secondary index for a global
4825
+ # table that will be modified.
4826
+ # @return [Array<Types::ReplicaGlobalSecondaryIndexSettingsUpdate>]
4827
+ #
4828
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ReplicaSettingsUpdate AWS API Documentation
4829
+ #
4830
+ class ReplicaSettingsUpdate < Struct.new(
4831
+ :region_name,
4832
+ :replica_provisioned_read_capacity_units,
4833
+ :replica_global_secondary_index_settings_update)
4834
+ include Aws::Structure
4835
+ end
4836
+
4605
4837
  # Represents one of the following:
4606
4838
  #
4607
4839
  # * A new replica to be added to an existing global table.
@@ -5913,6 +6145,77 @@ module Aws::DynamoDB
5913
6145
  include Aws::Structure
5914
6146
  end
5915
6147
 
6148
+ # @note When making an API call, you may pass UpdateGlobalTableSettingsInput
6149
+ # data as a hash:
6150
+ #
6151
+ # {
6152
+ # global_table_name: "TableName", # required
6153
+ # global_table_provisioned_write_capacity_units: 1,
6154
+ # global_table_global_secondary_index_settings_update: [
6155
+ # {
6156
+ # index_name: "IndexName", # required
6157
+ # provisioned_write_capacity_units: 1,
6158
+ # },
6159
+ # ],
6160
+ # replica_settings_update: [
6161
+ # {
6162
+ # region_name: "RegionName", # required
6163
+ # replica_provisioned_read_capacity_units: 1,
6164
+ # replica_global_secondary_index_settings_update: [
6165
+ # {
6166
+ # index_name: "IndexName", # required
6167
+ # provisioned_read_capacity_units: 1,
6168
+ # },
6169
+ # ],
6170
+ # },
6171
+ # ],
6172
+ # }
6173
+ #
6174
+ # @!attribute [rw] global_table_name
6175
+ # The name of the global table
6176
+ # @return [String]
6177
+ #
6178
+ # @!attribute [rw] global_table_provisioned_write_capacity_units
6179
+ # The maximum number of writes consumed per second before DynamoDB
6180
+ # returns a `ThrottlingException.`
6181
+ # @return [Integer]
6182
+ #
6183
+ # @!attribute [rw] global_table_global_secondary_index_settings_update
6184
+ # Represents the settings of a global secondary index for a global
6185
+ # table that will be modified.
6186
+ # @return [Array<Types::GlobalTableGlobalSecondaryIndexSettingsUpdate>]
6187
+ #
6188
+ # @!attribute [rw] replica_settings_update
6189
+ # Represents the settings for a global table in a region that will be
6190
+ # modified.
6191
+ # @return [Array<Types::ReplicaSettingsUpdate>]
6192
+ #
6193
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateGlobalTableSettingsInput AWS API Documentation
6194
+ #
6195
+ class UpdateGlobalTableSettingsInput < Struct.new(
6196
+ :global_table_name,
6197
+ :global_table_provisioned_write_capacity_units,
6198
+ :global_table_global_secondary_index_settings_update,
6199
+ :replica_settings_update)
6200
+ include Aws::Structure
6201
+ end
6202
+
6203
+ # @!attribute [rw] global_table_name
6204
+ # The name of the global table.
6205
+ # @return [String]
6206
+ #
6207
+ # @!attribute [rw] replica_settings
6208
+ # The region specific settings for the global table.
6209
+ # @return [Array<Types::ReplicaSettingsDescription>]
6210
+ #
6211
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateGlobalTableSettingsOutput AWS API Documentation
6212
+ #
6213
+ class UpdateGlobalTableSettingsOutput < Struct.new(
6214
+ :global_table_name,
6215
+ :replica_settings)
6216
+ include Aws::Structure
6217
+ end
6218
+
5916
6219
  # Represents the input of an `UpdateItem` operation.
5917
6220
  #
5918
6221
  # @note When making an API call, you may pass UpdateItemInput
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-dynamodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-26 00:00:00.000000000 Z
11
+ date: 2018-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project:
85
- rubygems_version: 2.5.2.2
85
+ rubygems_version: 2.5.2.3
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: AWS SDK for Ruby - DynamoDB