aws-sdk-dynamodb 1.4.0 → 1.5.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: dfb22b56fccb5b34528350e2f125f37cc418cd9d
4
- data.tar.gz: 8896252fc86aee9475d84a6c9cce3f4d3e459375
3
+ metadata.gz: e199cb73afc0d46ad3c06771e2bee3ab99aadb07
4
+ data.tar.gz: 819478a806d3001f843e5e2246b2df1a9609c7fe
5
5
  SHA512:
6
- metadata.gz: 07c741b8b9b4b53a0072e7d4fc61e698c6e5905cccbb0528bc76de3f3c07468120fd246dd192f6103b37320152aaaa3c3afefa551dd632481177db4a087f38b2
7
- data.tar.gz: 3167ff87b108ce2e5498f46dcd18ed5f40c7ec531043dac0644325373336b0141d98574385961e9d294b7b9a9281a0558a09e739be3031ddd8491a8df375a894
6
+ metadata.gz: b34cc2176a8b21dad2d0cadb6f463e47758568d516af0d4a589c99b268c2ef39b1a208d3e9f725ce8d06d26cf0bc3a1baacf20b5cfe652339bbfe5644e0b8cb2
7
+ data.tar.gz: b7375b7a1bfcd8fb003a09772c091867229fe102539b560732c09060cbcbbde858020e980fb8ea7662120184cbf610299aa737e0b8f7ee577d7db98022592a6c
@@ -44,6 +44,6 @@ require_relative 'aws-sdk-dynamodb/customizations'
44
44
  # @service
45
45
  module Aws::DynamoDB
46
46
 
47
- GEM_VERSION = '1.4.0'
47
+ GEM_VERSION = '1.5.0'
48
48
 
49
49
  end
@@ -545,6 +545,9 @@ module Aws::DynamoDB
545
545
  # `BatchWriteItem` request. For example, you cannot put and delete the
546
546
  # same item in the same `BatchWriteItem` request.
547
547
  #
548
+ # * Your request contains at least two items with identical hash and
549
+ # range keys (which essentially is two put operations).
550
+ #
548
551
  # * There are more than 25 requests in the batch.
549
552
  #
550
553
  # * Any individual item in a batch exceeds 400 KB.
@@ -1781,16 +1784,25 @@ module Aws::DynamoDB
1781
1784
  req.send_request(options)
1782
1785
  end
1783
1786
 
1784
- # Checks the status of the backup restore settings on the specified
1785
- # table. If backups are enabled, `ContinuousBackupsStatus` will bet set
1786
- # to ENABLED.
1787
+ # Checks the status of continuous backups and point in time recovery on
1788
+ # the specified table. Continuous backups are `ENABLED` on all tables at
1789
+ # table creation. If point in time recovery is enabled,
1790
+ # `PointInTimeRecoveryStatus` will be set to ENABLED.
1791
+ #
1792
+ # Once continuous backups and point in time recovery are enabled, you
1793
+ # can restore to any point in time within `EarliestRestorableDateTime`
1794
+ # and `LatestRestorableDateTime`.
1795
+ #
1796
+ # `LatestRestorableDateTime` is typically 5 minutes before the current
1797
+ # time. You can restore your table to any point in time during the last
1798
+ # 35 days with a 1-minute granularity.
1787
1799
  #
1788
1800
  # You can call `DescribeContinuousBackups` at a maximum rate of 10 times
1789
1801
  # per second.
1790
1802
  #
1791
1803
  # @option params [required, String] :table_name
1792
- # Name of the table for which the customer wants to check the backup and
1793
- # restore settings.
1804
+ # Name of the table for which the customer wants to check the continuous
1805
+ # backups and point in time recovery settings.
1794
1806
  #
1795
1807
  # @return [Types::DescribeContinuousBackupsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1796
1808
  #
@@ -1805,6 +1817,9 @@ module Aws::DynamoDB
1805
1817
  # @example Response structure
1806
1818
  #
1807
1819
  # resp.continuous_backups_description.continuous_backups_status #=> String, one of "ENABLED", "DISABLED"
1820
+ # resp.continuous_backups_description.point_in_time_recovery_description.point_in_time_recovery_status #=> String, one of "ENABLED", "DISABLED"
1821
+ # resp.continuous_backups_description.point_in_time_recovery_description.earliest_restorable_date_time #=> Time
1822
+ # resp.continuous_backups_description.point_in_time_recovery_description.latest_restorable_date_time #=> Time
1808
1823
  #
1809
1824
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeContinuousBackups AWS API Documentation
1810
1825
  #
@@ -3061,8 +3076,8 @@ module Aws::DynamoDB
3061
3076
  # Items with the same partition key value are stored in sorted order by
3062
3077
  # sort key. If the sort key data type is Number, the results are stored
3063
3078
  # in numeric order. For type String, the results are stored in order of
3064
- # ASCII character code values. For type Binary, DynamoDB treats each
3065
- # byte of the binary data as unsigned.
3079
+ # UTF-8 bytes. For type Binary, DynamoDB treats each byte of the binary
3080
+ # data as unsigned.
3066
3081
  #
3067
3082
  # If `ScanIndexForward` is `true`, DynamoDB returns the results in the
3068
3083
  # order in which they are stored (by sort key value). This is the
@@ -3399,7 +3414,8 @@ module Aws::DynamoDB
3399
3414
  end
3400
3415
 
3401
3416
  # Creates a new table from an existing backup. Any number of users can
3402
- # execute up to 10 concurrent restores in a given account.
3417
+ # execute up to 4 concurrent restores (any type of restore) in a given
3418
+ # account.
3403
3419
  #
3404
3420
  # You can call `RestoreTableFromBackup` at a maximum rate of 10 times
3405
3421
  # per second.
@@ -3503,6 +3519,123 @@ module Aws::DynamoDB
3503
3519
  req.send_request(options)
3504
3520
  end
3505
3521
 
3522
+ # Restores the specified table to the specified point in time within
3523
+ # `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.
3527
+ #
3528
+ # You must manually set up the following on the restored table:
3529
+ #
3530
+ # * Auto scaling policies
3531
+ #
3532
+ # * IAM policies
3533
+ #
3534
+ # * Cloudwatch metrics and alarms
3535
+ #
3536
+ # * Tags
3537
+ #
3538
+ # * Stream settings
3539
+ #
3540
+ # * Time to Live (TTL) settings
3541
+ #
3542
+ # * Point in time recovery settings
3543
+ #
3544
+ # @option params [required, String] :source_table_name
3545
+ # Name of the source table that is being restored.
3546
+ #
3547
+ # @option params [required, String] :target_table_name
3548
+ # The name of the new table to which it must be restored to.
3549
+ #
3550
+ # @option params [Boolean] :use_latest_restorable_time
3551
+ # Restore the table to the latest possible time.
3552
+ # `LatestRestorableDateTime` is typically 5 minutes before the current
3553
+ # time.
3554
+ #
3555
+ # @option params [Time,DateTime,Date,Integer,String] :restore_date_time
3556
+ # Time in the past to restore the table to.
3557
+ #
3558
+ # @return [Types::RestoreTableToPointInTimeOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3559
+ #
3560
+ # * {Types::RestoreTableToPointInTimeOutput#table_description #table_description} => Types::TableDescription
3561
+ #
3562
+ # @example Request syntax with placeholder values
3563
+ #
3564
+ # resp = client.restore_table_to_point_in_time({
3565
+ # source_table_name: "TableName", # required
3566
+ # target_table_name: "TableName", # required
3567
+ # use_latest_restorable_time: false,
3568
+ # restore_date_time: Time.now,
3569
+ # })
3570
+ #
3571
+ # @example Response structure
3572
+ #
3573
+ # resp.table_description.attribute_definitions #=> Array
3574
+ # resp.table_description.attribute_definitions[0].attribute_name #=> String
3575
+ # resp.table_description.attribute_definitions[0].attribute_type #=> String, one of "S", "N", "B"
3576
+ # resp.table_description.table_name #=> String
3577
+ # resp.table_description.key_schema #=> Array
3578
+ # resp.table_description.key_schema[0].attribute_name #=> String
3579
+ # resp.table_description.key_schema[0].key_type #=> String, one of "HASH", "RANGE"
3580
+ # resp.table_description.table_status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE"
3581
+ # resp.table_description.creation_date_time #=> Time
3582
+ # resp.table_description.provisioned_throughput.last_increase_date_time #=> Time
3583
+ # resp.table_description.provisioned_throughput.last_decrease_date_time #=> Time
3584
+ # resp.table_description.provisioned_throughput.number_of_decreases_today #=> Integer
3585
+ # resp.table_description.provisioned_throughput.read_capacity_units #=> Integer
3586
+ # resp.table_description.provisioned_throughput.write_capacity_units #=> Integer
3587
+ # resp.table_description.table_size_bytes #=> Integer
3588
+ # resp.table_description.item_count #=> Integer
3589
+ # resp.table_description.table_arn #=> String
3590
+ # resp.table_description.table_id #=> String
3591
+ # resp.table_description.local_secondary_indexes #=> Array
3592
+ # resp.table_description.local_secondary_indexes[0].index_name #=> String
3593
+ # resp.table_description.local_secondary_indexes[0].key_schema #=> Array
3594
+ # resp.table_description.local_secondary_indexes[0].key_schema[0].attribute_name #=> String
3595
+ # resp.table_description.local_secondary_indexes[0].key_schema[0].key_type #=> String, one of "HASH", "RANGE"
3596
+ # resp.table_description.local_secondary_indexes[0].projection.projection_type #=> String, one of "ALL", "KEYS_ONLY", "INCLUDE"
3597
+ # resp.table_description.local_secondary_indexes[0].projection.non_key_attributes #=> Array
3598
+ # resp.table_description.local_secondary_indexes[0].projection.non_key_attributes[0] #=> String
3599
+ # resp.table_description.local_secondary_indexes[0].index_size_bytes #=> Integer
3600
+ # resp.table_description.local_secondary_indexes[0].item_count #=> Integer
3601
+ # resp.table_description.local_secondary_indexes[0].index_arn #=> String
3602
+ # resp.table_description.global_secondary_indexes #=> Array
3603
+ # resp.table_description.global_secondary_indexes[0].index_name #=> String
3604
+ # resp.table_description.global_secondary_indexes[0].key_schema #=> Array
3605
+ # resp.table_description.global_secondary_indexes[0].key_schema[0].attribute_name #=> String
3606
+ # resp.table_description.global_secondary_indexes[0].key_schema[0].key_type #=> String, one of "HASH", "RANGE"
3607
+ # resp.table_description.global_secondary_indexes[0].projection.projection_type #=> String, one of "ALL", "KEYS_ONLY", "INCLUDE"
3608
+ # resp.table_description.global_secondary_indexes[0].projection.non_key_attributes #=> Array
3609
+ # resp.table_description.global_secondary_indexes[0].projection.non_key_attributes[0] #=> String
3610
+ # resp.table_description.global_secondary_indexes[0].index_status #=> String, one of "CREATING", "UPDATING", "DELETING", "ACTIVE"
3611
+ # resp.table_description.global_secondary_indexes[0].backfilling #=> Boolean
3612
+ # resp.table_description.global_secondary_indexes[0].provisioned_throughput.last_increase_date_time #=> Time
3613
+ # resp.table_description.global_secondary_indexes[0].provisioned_throughput.last_decrease_date_time #=> Time
3614
+ # resp.table_description.global_secondary_indexes[0].provisioned_throughput.number_of_decreases_today #=> Integer
3615
+ # resp.table_description.global_secondary_indexes[0].provisioned_throughput.read_capacity_units #=> Integer
3616
+ # resp.table_description.global_secondary_indexes[0].provisioned_throughput.write_capacity_units #=> Integer
3617
+ # resp.table_description.global_secondary_indexes[0].index_size_bytes #=> Integer
3618
+ # resp.table_description.global_secondary_indexes[0].item_count #=> Integer
3619
+ # resp.table_description.global_secondary_indexes[0].index_arn #=> String
3620
+ # resp.table_description.stream_specification.stream_enabled #=> Boolean
3621
+ # resp.table_description.stream_specification.stream_view_type #=> String, one of "NEW_IMAGE", "OLD_IMAGE", "NEW_AND_OLD_IMAGES", "KEYS_ONLY"
3622
+ # resp.table_description.latest_stream_label #=> String
3623
+ # resp.table_description.latest_stream_arn #=> String
3624
+ # resp.table_description.restore_summary.source_backup_arn #=> String
3625
+ # resp.table_description.restore_summary.source_table_arn #=> String
3626
+ # resp.table_description.restore_summary.restore_date_time #=> Time
3627
+ # resp.table_description.restore_summary.restore_in_progress #=> Boolean
3628
+ # resp.table_description.sse_description.status #=> String, one of "ENABLING", "ENABLED", "DISABLING", "DISABLED"
3629
+ #
3630
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableToPointInTime AWS API Documentation
3631
+ #
3632
+ # @overload restore_table_to_point_in_time(params = {})
3633
+ # @param [Hash] params ({})
3634
+ def restore_table_to_point_in_time(params = {}, options = {})
3635
+ req = build_request(:restore_table_to_point_in_time, params)
3636
+ req.send_request(options)
3637
+ end
3638
+
3506
3639
  # The `Scan` operation returns one or more items and item attributes by
3507
3640
  # accessing every item in a table or a secondary index. To have DynamoDB
3508
3641
  # return fewer items, you can provide a `FilterExpression` operation.
@@ -4024,11 +4157,61 @@ module Aws::DynamoDB
4024
4157
  req.send_request(options)
4025
4158
  end
4026
4159
 
4160
+ # `UpdateContinuousBackups` enables or disables point in time recovery
4161
+ # for the specified table. A successful `UpdateContinuousBackups` call
4162
+ # returns the current `ContinuousBackupsDescription`. Continuous backups
4163
+ # are `ENABLED` on all tables at table creation. If point in time
4164
+ # recovery is enabled, `PointInTimeRecoveryStatus` will be set to
4165
+ # ENABLED.
4166
+ #
4167
+ # Once continuous backups and point in time recovery are enabled, you
4168
+ # can restore to any point in time within `EarliestRestorableDateTime`
4169
+ # and `LatestRestorableDateTime`.
4170
+ #
4171
+ # `LatestRestorableDateTime` is typically 5 minutes before the current
4172
+ # time. You can restore your table to any point in time during the last
4173
+ # 35 days with a 1-minute granularity.
4174
+ #
4175
+ # @option params [required, String] :table_name
4176
+ # The name of the table.
4177
+ #
4178
+ # @option params [required, Types::PointInTimeRecoverySpecification] :point_in_time_recovery_specification
4179
+ # Represents the settings used to enable point in time recovery.
4180
+ #
4181
+ # @return [Types::UpdateContinuousBackupsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4182
+ #
4183
+ # * {Types::UpdateContinuousBackupsOutput#continuous_backups_description #continuous_backups_description} => Types::ContinuousBackupsDescription
4184
+ #
4185
+ # @example Request syntax with placeholder values
4186
+ #
4187
+ # resp = client.update_continuous_backups({
4188
+ # table_name: "TableName", # required
4189
+ # point_in_time_recovery_specification: { # required
4190
+ # point_in_time_recovery_enabled: false, # required
4191
+ # },
4192
+ # })
4193
+ #
4194
+ # @example Response structure
4195
+ #
4196
+ # resp.continuous_backups_description.continuous_backups_status #=> String, one of "ENABLED", "DISABLED"
4197
+ # resp.continuous_backups_description.point_in_time_recovery_description.point_in_time_recovery_status #=> String, one of "ENABLED", "DISABLED"
4198
+ # resp.continuous_backups_description.point_in_time_recovery_description.earliest_restorable_date_time #=> Time
4199
+ # resp.continuous_backups_description.point_in_time_recovery_description.latest_restorable_date_time #=> Time
4200
+ #
4201
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateContinuousBackups AWS API Documentation
4202
+ #
4203
+ # @overload update_continuous_backups(params = {})
4204
+ # @param [Hash] params ({})
4205
+ def update_continuous_backups(params = {}, options = {})
4206
+ req = build_request(:update_continuous_backups, params)
4207
+ req.send_request(options)
4208
+ end
4209
+
4027
4210
  # Adds or removes replicas in the specified global table. The global
4028
4211
  # table must already exist to be able to use this operation. Any replica
4029
4212
  # to be added must be empty, must have the same name as the global
4030
- # table, must have the same key schema, must have DynamoDB Streams
4031
- # enabled, and cannot have any local secondary indexes (LSIs).
4213
+ # table, must have the same key schema, and must have DynamoDB Streams
4214
+ # enabled.
4032
4215
  #
4033
4216
  # <note markdown="1"> Although you can use `UpdateGlobalTable` to add replicas and remove
4034
4217
  # replicas in a single request, for simplicity we recommend that you
@@ -4802,7 +4985,7 @@ module Aws::DynamoDB
4802
4985
  params: params,
4803
4986
  config: config)
4804
4987
  context[:gem_name] = 'aws-sdk-dynamodb'
4805
- context[:gem_version] = '1.4.0'
4988
+ context[:gem_version] = '1.5.0'
4806
4989
  Seahorse::Client::Request.new(handlers, context)
4807
4990
  end
4808
4991
 
@@ -117,6 +117,7 @@ module Aws::DynamoDB
117
117
  IndexStatus = Shapes::StringShape.new(name: 'IndexStatus')
118
118
  Integer = Shapes::IntegerShape.new(name: 'Integer')
119
119
  InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
120
+ InvalidRestoreTimeException = Shapes::StructureShape.new(name: 'InvalidRestoreTimeException')
120
121
  ItemCollectionKeyAttributeMap = Shapes::MapShape.new(name: 'ItemCollectionKeyAttributeMap')
121
122
  ItemCollectionMetrics = Shapes::StructureShape.new(name: 'ItemCollectionMetrics')
122
123
  ItemCollectionMetricsMultiple = Shapes::ListShape.new(name: 'ItemCollectionMetricsMultiple')
@@ -160,6 +161,10 @@ module Aws::DynamoDB
160
161
  NullAttributeValue = Shapes::BooleanShape.new(name: 'NullAttributeValue')
161
162
  NumberAttributeValue = Shapes::StringShape.new(name: 'NumberAttributeValue')
162
163
  NumberSetAttributeValue = Shapes::ListShape.new(name: 'NumberSetAttributeValue')
164
+ PointInTimeRecoveryDescription = Shapes::StructureShape.new(name: 'PointInTimeRecoveryDescription')
165
+ PointInTimeRecoverySpecification = Shapes::StructureShape.new(name: 'PointInTimeRecoverySpecification')
166
+ PointInTimeRecoveryStatus = Shapes::StringShape.new(name: 'PointInTimeRecoveryStatus')
167
+ PointInTimeRecoveryUnavailableException = Shapes::StructureShape.new(name: 'PointInTimeRecoveryUnavailableException')
163
168
  PositiveIntegerObject = Shapes::IntegerShape.new(name: 'PositiveIntegerObject')
164
169
  PositiveLongObject = Shapes::IntegerShape.new(name: 'PositiveLongObject')
165
170
  Projection = Shapes::StructureShape.new(name: 'Projection')
@@ -186,11 +191,12 @@ module Aws::DynamoDB
186
191
  ResourceArnString = Shapes::StringShape.new(name: 'ResourceArnString')
187
192
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
188
193
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
189
- RestoreDateTime = Shapes::TimestampShape.new(name: 'RestoreDateTime')
190
194
  RestoreInProgress = Shapes::BooleanShape.new(name: 'RestoreInProgress')
191
195
  RestoreSummary = Shapes::StructureShape.new(name: 'RestoreSummary')
192
196
  RestoreTableFromBackupInput = Shapes::StructureShape.new(name: 'RestoreTableFromBackupInput')
193
197
  RestoreTableFromBackupOutput = Shapes::StructureShape.new(name: 'RestoreTableFromBackupOutput')
198
+ RestoreTableToPointInTimeInput = Shapes::StructureShape.new(name: 'RestoreTableToPointInTimeInput')
199
+ RestoreTableToPointInTimeOutput = Shapes::StructureShape.new(name: 'RestoreTableToPointInTimeOutput')
194
200
  ReturnConsumedCapacity = Shapes::StringShape.new(name: 'ReturnConsumedCapacity')
195
201
  ReturnItemCollectionMetrics = Shapes::StringShape.new(name: 'ReturnItemCollectionMetrics')
196
202
  ReturnValue = Shapes::StringShape.new(name: 'ReturnValue')
@@ -238,6 +244,8 @@ module Aws::DynamoDB
238
244
  TimeToLiveSpecification = Shapes::StructureShape.new(name: 'TimeToLiveSpecification')
239
245
  TimeToLiveStatus = Shapes::StringShape.new(name: 'TimeToLiveStatus')
240
246
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
247
+ UpdateContinuousBackupsInput = Shapes::StructureShape.new(name: 'UpdateContinuousBackupsInput')
248
+ UpdateContinuousBackupsOutput = Shapes::StructureShape.new(name: 'UpdateContinuousBackupsOutput')
241
249
  UpdateExpression = Shapes::StringShape.new(name: 'UpdateExpression')
242
250
  UpdateGlobalSecondaryIndexAction = Shapes::StructureShape.new(name: 'UpdateGlobalSecondaryIndexAction')
243
251
  UpdateGlobalTableInput = Shapes::StructureShape.new(name: 'UpdateGlobalTableInput')
@@ -354,6 +362,7 @@ module Aws::DynamoDB
354
362
  ConsumedCapacityMultiple.member = Shapes::ShapeRef.new(shape: ConsumedCapacity)
355
363
 
356
364
  ContinuousBackupsDescription.add_member(:continuous_backups_status, Shapes::ShapeRef.new(shape: ContinuousBackupsStatus, required: true, location_name: "ContinuousBackupsStatus"))
365
+ ContinuousBackupsDescription.add_member(:point_in_time_recovery_description, Shapes::ShapeRef.new(shape: PointInTimeRecoveryDescription, location_name: "PointInTimeRecoveryDescription"))
357
366
  ContinuousBackupsDescription.struct_class = Types::ContinuousBackupsDescription
358
367
 
359
368
  CreateBackupInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
@@ -654,6 +663,14 @@ module Aws::DynamoDB
654
663
 
655
664
  NumberSetAttributeValue.member = Shapes::ShapeRef.new(shape: NumberAttributeValue)
656
665
 
666
+ PointInTimeRecoveryDescription.add_member(:point_in_time_recovery_status, Shapes::ShapeRef.new(shape: PointInTimeRecoveryStatus, location_name: "PointInTimeRecoveryStatus"))
667
+ PointInTimeRecoveryDescription.add_member(:earliest_restorable_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "EarliestRestorableDateTime"))
668
+ PointInTimeRecoveryDescription.add_member(:latest_restorable_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "LatestRestorableDateTime"))
669
+ PointInTimeRecoveryDescription.struct_class = Types::PointInTimeRecoveryDescription
670
+
671
+ PointInTimeRecoverySpecification.add_member(:point_in_time_recovery_enabled, Shapes::ShapeRef.new(shape: BooleanObject, required: true, location_name: "PointInTimeRecoveryEnabled"))
672
+ PointInTimeRecoverySpecification.struct_class = Types::PointInTimeRecoverySpecification
673
+
657
674
  Projection.add_member(:projection_type, Shapes::ShapeRef.new(shape: ProjectionType, location_name: "ProjectionType"))
658
675
  Projection.add_member(:non_key_attributes, Shapes::ShapeRef.new(shape: NonKeyAttributeNameList, location_name: "NonKeyAttributes"))
659
676
  Projection.struct_class = Types::Projection
@@ -736,7 +753,7 @@ module Aws::DynamoDB
736
753
 
737
754
  RestoreSummary.add_member(:source_backup_arn, Shapes::ShapeRef.new(shape: BackupArn, location_name: "SourceBackupArn"))
738
755
  RestoreSummary.add_member(:source_table_arn, Shapes::ShapeRef.new(shape: TableArn, location_name: "SourceTableArn"))
739
- RestoreSummary.add_member(:restore_date_time, Shapes::ShapeRef.new(shape: RestoreDateTime, required: true, location_name: "RestoreDateTime"))
756
+ RestoreSummary.add_member(:restore_date_time, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "RestoreDateTime"))
740
757
  RestoreSummary.add_member(:restore_in_progress, Shapes::ShapeRef.new(shape: RestoreInProgress, required: true, location_name: "RestoreInProgress"))
741
758
  RestoreSummary.struct_class = Types::RestoreSummary
742
759
 
@@ -747,6 +764,15 @@ module Aws::DynamoDB
747
764
  RestoreTableFromBackupOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
748
765
  RestoreTableFromBackupOutput.struct_class = Types::RestoreTableFromBackupOutput
749
766
 
767
+ RestoreTableToPointInTimeInput.add_member(:source_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "SourceTableName"))
768
+ RestoreTableToPointInTimeInput.add_member(:target_table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TargetTableName"))
769
+ RestoreTableToPointInTimeInput.add_member(:use_latest_restorable_time, Shapes::ShapeRef.new(shape: BooleanObject, location_name: "UseLatestRestorableTime"))
770
+ RestoreTableToPointInTimeInput.add_member(:restore_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "RestoreDateTime"))
771
+ RestoreTableToPointInTimeInput.struct_class = Types::RestoreTableToPointInTimeInput
772
+
773
+ RestoreTableToPointInTimeOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
774
+ RestoreTableToPointInTimeOutput.struct_class = Types::RestoreTableToPointInTimeOutput
775
+
750
776
  SSEDescription.add_member(:status, Shapes::ShapeRef.new(shape: SSEStatus, location_name: "Status"))
751
777
  SSEDescription.struct_class = Types::SSEDescription
752
778
 
@@ -849,6 +875,13 @@ module Aws::DynamoDB
849
875
  UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
850
876
  UntagResourceInput.struct_class = Types::UntagResourceInput
851
877
 
878
+ UpdateContinuousBackupsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
879
+ UpdateContinuousBackupsInput.add_member(:point_in_time_recovery_specification, Shapes::ShapeRef.new(shape: PointInTimeRecoverySpecification, required: true, location_name: "PointInTimeRecoverySpecification"))
880
+ UpdateContinuousBackupsInput.struct_class = Types::UpdateContinuousBackupsInput
881
+
882
+ UpdateContinuousBackupsOutput.add_member(:continuous_backups_description, Shapes::ShapeRef.new(shape: ContinuousBackupsDescription, location_name: "ContinuousBackupsDescription"))
883
+ UpdateContinuousBackupsOutput.struct_class = Types::UpdateContinuousBackupsOutput
884
+
852
885
  UpdateGlobalSecondaryIndexAction.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "IndexName"))
853
886
  UpdateGlobalSecondaryIndexAction.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, required: true, location_name: "ProvisionedThroughput"))
854
887
  UpdateGlobalSecondaryIndexAction.struct_class = Types::UpdateGlobalSecondaryIndexAction
@@ -1176,6 +1209,21 @@ module Aws::DynamoDB
1176
1209
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1177
1210
  end)
1178
1211
 
1212
+ api.add_operation(:restore_table_to_point_in_time, Seahorse::Model::Operation.new.tap do |o|
1213
+ o.name = "RestoreTableToPointInTime"
1214
+ o.http_method = "POST"
1215
+ o.http_request_uri = "/"
1216
+ o.input = Shapes::ShapeRef.new(shape: RestoreTableToPointInTimeInput)
1217
+ o.output = Shapes::ShapeRef.new(shape: RestoreTableToPointInTimeOutput)
1218
+ o.errors << Shapes::ShapeRef.new(shape: TableAlreadyExistsException)
1219
+ o.errors << Shapes::ShapeRef.new(shape: TableNotFoundException)
1220
+ o.errors << Shapes::ShapeRef.new(shape: TableInUseException)
1221
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1222
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRestoreTimeException)
1223
+ o.errors << Shapes::ShapeRef.new(shape: PointInTimeRecoveryUnavailableException)
1224
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1225
+ end)
1226
+
1179
1227
  api.add_operation(:scan, Seahorse::Model::Operation.new.tap do |o|
1180
1228
  o.name = "Scan"
1181
1229
  o.http_method = "POST"
@@ -1217,6 +1265,17 @@ module Aws::DynamoDB
1217
1265
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
1218
1266
  end)
1219
1267
 
1268
+ api.add_operation(:update_continuous_backups, Seahorse::Model::Operation.new.tap do |o|
1269
+ o.name = "UpdateContinuousBackups"
1270
+ o.http_method = "POST"
1271
+ o.http_request_uri = "/"
1272
+ o.input = Shapes::ShapeRef.new(shape: UpdateContinuousBackupsInput)
1273
+ o.output = Shapes::ShapeRef.new(shape: UpdateContinuousBackupsOutput)
1274
+ o.errors << Shapes::ShapeRef.new(shape: TableNotFoundException)
1275
+ o.errors << Shapes::ShapeRef.new(shape: ContinuousBackupsUnavailableException)
1276
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1277
+ end)
1278
+
1220
1279
  api.add_operation(:update_global_table, Seahorse::Model::Operation.new.tap do |o|
1221
1280
  o.name = "UpdateGlobalTable"
1222
1281
  o.http_method = "POST"
@@ -1122,8 +1122,8 @@ module Aws::DynamoDB
1122
1122
  # Items with the same partition key value are stored in sorted order by
1123
1123
  # sort key. If the sort key data type is Number, the results are stored
1124
1124
  # in numeric order. For type String, the results are stored in order of
1125
- # ASCII character code values. For type Binary, DynamoDB treats each
1126
- # byte of the binary data as unsigned.
1125
+ # UTF-8 bytes. For type Binary, DynamoDB treats each byte of the binary
1126
+ # data as unsigned.
1127
1127
  #
1128
1128
  # If `ScanIndexForward` is `true`, DynamoDB returns the results in the
1129
1129
  # order in which they are stored (by sort key value). This is the
@@ -1047,18 +1047,24 @@ module Aws::DynamoDB
1047
1047
  include Aws::Structure
1048
1048
  end
1049
1049
 
1050
- # Represents the backup and restore settings on the table when the
1051
- # backup was created.
1050
+ # Represents the continuous backups and point in time recovery settings
1051
+ # on the table.
1052
1052
  #
1053
1053
  # @!attribute [rw] continuous_backups_status
1054
- # ContinuousBackupsStatus can be one of the following states :
1054
+ # `ContinuousBackupsStatus` can be one of the following states :
1055
1055
  # ENABLED, DISABLED
1056
1056
  # @return [String]
1057
1057
  #
1058
+ # @!attribute [rw] point_in_time_recovery_description
1059
+ # The description of the point in time recovery settings applied to
1060
+ # the table.
1061
+ # @return [Types::PointInTimeRecoveryDescription]
1062
+ #
1058
1063
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/ContinuousBackupsDescription AWS API Documentation
1059
1064
  #
1060
1065
  class ContinuousBackupsDescription < Struct.new(
1061
- :continuous_backups_status)
1066
+ :continuous_backups_status,
1067
+ :point_in_time_recovery_description)
1062
1068
  include Aws::Structure
1063
1069
  end
1064
1070
 
@@ -1943,8 +1949,8 @@ module Aws::DynamoDB
1943
1949
  # }
1944
1950
  #
1945
1951
  # @!attribute [rw] table_name
1946
- # Name of the table for which the customer wants to check the backup
1947
- # and restore settings.
1952
+ # Name of the table for which the customer wants to check the
1953
+ # continuous backups and point in time recovery settings.
1948
1954
  # @return [String]
1949
1955
  #
1950
1956
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DescribeContinuousBackupsInput AWS API Documentation
@@ -3515,6 +3521,59 @@ module Aws::DynamoDB
3515
3521
  include Aws::Structure
3516
3522
  end
3517
3523
 
3524
+ # The description of the point in time settings applied to the table.
3525
+ #
3526
+ # @!attribute [rw] point_in_time_recovery_status
3527
+ # The current state of point in time recovery:
3528
+ #
3529
+ # * `ENABLING` - Point in time recovery is being enabled.
3530
+ #
3531
+ # * `ENABLED` - Point in time recovery is enabled.
3532
+ #
3533
+ # * `DISABLED` - Point in time recovery is disabled.
3534
+ # @return [String]
3535
+ #
3536
+ # @!attribute [rw] earliest_restorable_date_time
3537
+ # 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`.
3540
+ # @return [Time]
3541
+ #
3542
+ # @!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.
3545
+ # @return [Time]
3546
+ #
3547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PointInTimeRecoveryDescription AWS API Documentation
3548
+ #
3549
+ class PointInTimeRecoveryDescription < Struct.new(
3550
+ :point_in_time_recovery_status,
3551
+ :earliest_restorable_date_time,
3552
+ :latest_restorable_date_time)
3553
+ include Aws::Structure
3554
+ end
3555
+
3556
+ # Represents the settings used to enable point in time recovery.
3557
+ #
3558
+ # @note When making an API call, you may pass PointInTimeRecoverySpecification
3559
+ # data as a hash:
3560
+ #
3561
+ # {
3562
+ # point_in_time_recovery_enabled: false, # required
3563
+ # }
3564
+ #
3565
+ # @!attribute [rw] point_in_time_recovery_enabled
3566
+ # Indicates whether point in time recovery is enabled (true) or
3567
+ # disabled (false) on the table.
3568
+ # @return [Boolean]
3569
+ #
3570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/PointInTimeRecoverySpecification AWS API Documentation
3571
+ #
3572
+ class PointInTimeRecoverySpecification < Struct.new(
3573
+ :point_in_time_recovery_enabled)
3574
+ include Aws::Structure
3575
+ end
3576
+
3518
3577
  # Represents attributes that are copied (projected) from the table into
3519
3578
  # an index. These are in addition to the primary key attributes and
3520
3579
  # index key attributes, which are automatically projected.
@@ -4166,8 +4225,8 @@ module Aws::DynamoDB
4166
4225
  # Items with the same partition key value are stored in sorted order
4167
4226
  # by sort key. If the sort key data type is Number, the results are
4168
4227
  # stored in numeric order. For type String, the results are stored in
4169
- # order of ASCII character code values. For type Binary, DynamoDB
4170
- # treats each byte of the binary data as unsigned.
4228
+ # order of UTF-8 bytes. For type Binary, DynamoDB treats each byte of
4229
+ # the binary data as unsigned.
4171
4230
  #
4172
4231
  # If `ScanIndexForward` is `true`, DynamoDB returns the results in the
4173
4232
  # order in which they are stored (by sort key value). This is the
@@ -4643,6 +4702,55 @@ module Aws::DynamoDB
4643
4702
  include Aws::Structure
4644
4703
  end
4645
4704
 
4705
+ # @note When making an API call, you may pass RestoreTableToPointInTimeInput
4706
+ # data as a hash:
4707
+ #
4708
+ # {
4709
+ # source_table_name: "TableName", # required
4710
+ # target_table_name: "TableName", # required
4711
+ # use_latest_restorable_time: false,
4712
+ # restore_date_time: Time.now,
4713
+ # }
4714
+ #
4715
+ # @!attribute [rw] source_table_name
4716
+ # Name of the source table that is being restored.
4717
+ # @return [String]
4718
+ #
4719
+ # @!attribute [rw] target_table_name
4720
+ # The name of the new table to which it must be restored to.
4721
+ # @return [String]
4722
+ #
4723
+ # @!attribute [rw] use_latest_restorable_time
4724
+ # Restore the table to the latest possible time.
4725
+ # `LatestRestorableDateTime` is typically 5 minutes before the current
4726
+ # time.
4727
+ # @return [Boolean]
4728
+ #
4729
+ # @!attribute [rw] restore_date_time
4730
+ # Time in the past to restore the table to.
4731
+ # @return [Time]
4732
+ #
4733
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableToPointInTimeInput AWS API Documentation
4734
+ #
4735
+ class RestoreTableToPointInTimeInput < Struct.new(
4736
+ :source_table_name,
4737
+ :target_table_name,
4738
+ :use_latest_restorable_time,
4739
+ :restore_date_time)
4740
+ include Aws::Structure
4741
+ end
4742
+
4743
+ # @!attribute [rw] table_description
4744
+ # Represents the properties of a table.
4745
+ # @return [Types::TableDescription]
4746
+ #
4747
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableToPointInTimeOutput AWS API Documentation
4748
+ #
4749
+ class RestoreTableToPointInTimeOutput < Struct.new(
4750
+ :table_description)
4751
+ include Aws::Structure
4752
+ end
4753
+
4646
4754
  # The description of the server-side encryption status on the specified
4647
4755
  # table.
4648
4756
  #
@@ -5684,6 +5792,44 @@ module Aws::DynamoDB
5684
5792
  include Aws::Structure
5685
5793
  end
5686
5794
 
5795
+ # @note When making an API call, you may pass UpdateContinuousBackupsInput
5796
+ # data as a hash:
5797
+ #
5798
+ # {
5799
+ # table_name: "TableName", # required
5800
+ # point_in_time_recovery_specification: { # required
5801
+ # point_in_time_recovery_enabled: false, # required
5802
+ # },
5803
+ # }
5804
+ #
5805
+ # @!attribute [rw] table_name
5806
+ # The name of the table.
5807
+ # @return [String]
5808
+ #
5809
+ # @!attribute [rw] point_in_time_recovery_specification
5810
+ # Represents the settings used to enable point in time recovery.
5811
+ # @return [Types::PointInTimeRecoverySpecification]
5812
+ #
5813
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateContinuousBackupsInput AWS API Documentation
5814
+ #
5815
+ class UpdateContinuousBackupsInput < Struct.new(
5816
+ :table_name,
5817
+ :point_in_time_recovery_specification)
5818
+ include Aws::Structure
5819
+ end
5820
+
5821
+ # @!attribute [rw] continuous_backups_description
5822
+ # Represents the continuous backups and point in time recovery
5823
+ # settings on the table.
5824
+ # @return [Types::ContinuousBackupsDescription]
5825
+ #
5826
+ # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateContinuousBackupsOutput AWS API Documentation
5827
+ #
5828
+ class UpdateContinuousBackupsOutput < Struct.new(
5829
+ :continuous_backups_description)
5830
+ include Aws::Structure
5831
+ end
5832
+
5687
5833
  # Represents the new provisioned throughput settings to be applied to a
5688
5834
  # global secondary index.
5689
5835
  #
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.4.0
4
+ version: 1.5.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-02-08 00:00:00.000000000 Z
11
+ date: 2018-03-26 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.1
85
+ rubygems_version: 2.5.2.2
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: AWS SDK for Ruby - DynamoDB