aws-sdk-dynamodb 1.82.0 → 1.84.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-dynamodb/client.rb +34 -24
- data/lib/aws-sdk-dynamodb/client_api.rb +16 -11
- data/lib/aws-sdk-dynamodb/resource.rb +6 -2
- data/lib/aws-sdk-dynamodb/table.rb +23 -18
- data/lib/aws-sdk-dynamodb/types.rb +64 -47
- data/lib/aws-sdk-dynamodb.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b31fcc73d67db0049e012495b695e4ae4b85cc952c8f862181dcb417e0e4cf0a
|
4
|
+
data.tar.gz: 87bea8666f245827107d1ad9b06061de3ef361d396116ecb206fd056aa985b88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 273ec0815f3857aeb1a7d67c60973119f5b8c0c4a5f497405fc8869de0a5bd4200958ff128da8740a7f89973671fcd1060bcbb7c67903cf18e5d3b019b4e6646
|
7
|
+
data.tar.gz: 23231683370f4f0bb8a8d72a24496f82d0900fb6d9228e491b87ea79ffcef8b79d8cb1e0d7f7a6e99ddeddbb3bde0d798711e59fded447df468a441b72a289d5
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.84.0 (2023-04-17)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Documentation updates for DynamoDB API
|
8
|
+
|
9
|
+
1.83.0 (2023-03-08)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Adds deletion protection support to DynamoDB tables. Tables with deletion protection enabled cannot be deleted. Deletion protection is disabled by default, can be enabled via the CreateTable or UpdateTable APIs, and is visible in TableDescription. This setting is not replicated for Global Tables.
|
13
|
+
|
4
14
|
1.82.0 (2023-03-03)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.84.0
|
@@ -534,8 +534,8 @@ module Aws::DynamoDB
|
|
534
534
|
# every table in the request. If you want strongly consistent reads
|
535
535
|
# instead, you can set `ConsistentRead` to `true` for any or all tables.
|
536
536
|
#
|
537
|
-
# In order to minimize response latency, `BatchGetItem`
|
538
|
-
# in parallel.
|
537
|
+
# In order to minimize response latency, `BatchGetItem` may retrieve
|
538
|
+
# items in parallel.
|
539
539
|
#
|
540
540
|
# When designing your application, keep in mind that DynamoDB does not
|
541
541
|
# return items in any particular order. To help parse the response by
|
@@ -565,7 +565,7 @@ module Aws::DynamoDB
|
|
565
565
|
#
|
566
566
|
# * `ExpressionAttributeNames` - One or more substitution tokens for
|
567
567
|
# attribute names in the `ProjectionExpression` parameter. The
|
568
|
-
# following are some use cases for using `ExpressionAttributeNames
|
568
|
+
# following are some use cases for using `ExpressionAttributeNames`:
|
569
569
|
#
|
570
570
|
# * To access an attribute whose name conflicts with a DynamoDB
|
571
571
|
# reserved word.
|
@@ -587,7 +587,7 @@ module Aws::DynamoDB
|
|
587
587
|
# cannot be used directly in an expression. (For the complete list of
|
588
588
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
589
589
|
# Developer Guide*). To work around this, you could specify the
|
590
|
-
# following for `ExpressionAttributeNames
|
590
|
+
# following for `ExpressionAttributeNames`:
|
591
591
|
#
|
592
592
|
# * `\{"#P":"Percentile"\}`
|
593
593
|
#
|
@@ -1433,6 +1433,10 @@ module Aws::DynamoDB
|
|
1433
1433
|
# The table class of the new table. Valid values are `STANDARD` and
|
1434
1434
|
# `STANDARD_INFREQUENT_ACCESS`.
|
1435
1435
|
#
|
1436
|
+
# @option params [Boolean] :deletion_protection_enabled
|
1437
|
+
# Indicates whether deletion protection is to be enabled (true) or
|
1438
|
+
# disabled (false) on the table.
|
1439
|
+
#
|
1436
1440
|
# @return [Types::CreateTableOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1437
1441
|
#
|
1438
1442
|
# * {Types::CreateTableOutput#table_description #table_description} => Types::TableDescription
|
@@ -1576,6 +1580,7 @@ module Aws::DynamoDB
|
|
1576
1580
|
# },
|
1577
1581
|
# ],
|
1578
1582
|
# table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
|
1583
|
+
# deletion_protection_enabled: false,
|
1579
1584
|
# })
|
1580
1585
|
#
|
1581
1586
|
# @example Response structure
|
@@ -1660,6 +1665,7 @@ module Aws::DynamoDB
|
|
1660
1665
|
# resp.table_description.archival_summary.archival_backup_arn #=> String
|
1661
1666
|
# resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
1662
1667
|
# resp.table_description.table_class_summary.last_update_date_time #=> Time
|
1668
|
+
# resp.table_description.deletion_protection_enabled #=> Boolean
|
1663
1669
|
#
|
1664
1670
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTable AWS API Documentation
|
1665
1671
|
#
|
@@ -1858,8 +1864,7 @@ module Aws::DynamoDB
|
|
1858
1864
|
#
|
1859
1865
|
# @option params [Hash<String,String>] :expression_attribute_names
|
1860
1866
|
# One or more substitution tokens for attribute names in an expression.
|
1861
|
-
# The following are some use cases for using
|
1862
|
-
# `ExpressionAttributeNames`\:
|
1867
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
1863
1868
|
#
|
1864
1869
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
1865
1870
|
# word.
|
@@ -1881,7 +1886,7 @@ module Aws::DynamoDB
|
|
1881
1886
|
# cannot be used directly in an expression. (For the complete list of
|
1882
1887
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
1883
1888
|
# Developer Guide*). To work around this, you could specify the
|
1884
|
-
# following for `ExpressionAttributeNames
|
1889
|
+
# following for `ExpressionAttributeNames`:
|
1885
1890
|
#
|
1886
1891
|
# * `\{"#P":"Percentile"\}`
|
1887
1892
|
#
|
@@ -2170,6 +2175,7 @@ module Aws::DynamoDB
|
|
2170
2175
|
# resp.table_description.archival_summary.archival_backup_arn #=> String
|
2171
2176
|
# resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
2172
2177
|
# resp.table_description.table_class_summary.last_update_date_time #=> Time
|
2178
|
+
# resp.table_description.deletion_protection_enabled #=> Boolean
|
2173
2179
|
#
|
2174
2180
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteTable AWS API Documentation
|
2175
2181
|
#
|
@@ -2955,6 +2961,7 @@ module Aws::DynamoDB
|
|
2955
2961
|
# resp.table.archival_summary.archival_backup_arn #=> String
|
2956
2962
|
# resp.table.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
2957
2963
|
# resp.table.table_class_summary.last_update_date_time #=> Time
|
2964
|
+
# resp.table.deletion_protection_enabled #=> Boolean
|
2958
2965
|
#
|
2959
2966
|
#
|
2960
2967
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -3536,8 +3543,7 @@ module Aws::DynamoDB
|
|
3536
3543
|
#
|
3537
3544
|
# @option params [Hash<String,String>] :expression_attribute_names
|
3538
3545
|
# One or more substitution tokens for attribute names in an expression.
|
3539
|
-
# The following are some use cases for using
|
3540
|
-
# `ExpressionAttributeNames`\:
|
3546
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
3541
3547
|
#
|
3542
3548
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
3543
3549
|
# word.
|
@@ -3559,7 +3565,7 @@ module Aws::DynamoDB
|
|
3559
3565
|
# cannot be used directly in an expression. (For the complete list of
|
3560
3566
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
3561
3567
|
# Developer Guide*). To work around this, you could specify the
|
3562
|
-
# following for `ExpressionAttributeNames
|
3568
|
+
# following for `ExpressionAttributeNames`:
|
3563
3569
|
#
|
3564
3570
|
# * `\{"#P":"Percentile"\}`
|
3565
3571
|
#
|
@@ -4371,8 +4377,7 @@ module Aws::DynamoDB
|
|
4371
4377
|
#
|
4372
4378
|
# @option params [Hash<String,String>] :expression_attribute_names
|
4373
4379
|
# One or more substitution tokens for attribute names in an expression.
|
4374
|
-
# The following are some use cases for using
|
4375
|
-
# `ExpressionAttributeNames`\:
|
4380
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
4376
4381
|
#
|
4377
4382
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
4378
4383
|
# word.
|
@@ -4394,7 +4399,7 @@ module Aws::DynamoDB
|
|
4394
4399
|
# cannot be used directly in an expression. (For the complete list of
|
4395
4400
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
4396
4401
|
# Developer Guide*). To work around this, you could specify the
|
4397
|
-
# following for `ExpressionAttributeNames
|
4402
|
+
# following for `ExpressionAttributeNames`:
|
4398
4403
|
#
|
4399
4404
|
# * `\{"#P":"Percentile"\}`
|
4400
4405
|
#
|
@@ -4889,8 +4894,7 @@ module Aws::DynamoDB
|
|
4889
4894
|
#
|
4890
4895
|
# @option params [Hash<String,String>] :expression_attribute_names
|
4891
4896
|
# One or more substitution tokens for attribute names in an expression.
|
4892
|
-
# The following are some use cases for using
|
4893
|
-
# `ExpressionAttributeNames`\:
|
4897
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
4894
4898
|
#
|
4895
4899
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
4896
4900
|
# word.
|
@@ -4912,7 +4916,7 @@ module Aws::DynamoDB
|
|
4912
4916
|
# cannot be used directly in an expression. (For the complete list of
|
4913
4917
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
4914
4918
|
# Developer Guide*). To work around this, you could specify the
|
4915
|
-
# following for `ExpressionAttributeNames
|
4919
|
+
# following for `ExpressionAttributeNames`:
|
4916
4920
|
#
|
4917
4921
|
# * `\{"#P":"Percentile"\}`
|
4918
4922
|
#
|
@@ -5075,7 +5079,7 @@ module Aws::DynamoDB
|
|
5075
5079
|
end
|
5076
5080
|
|
5077
5081
|
# Creates a new table from an existing backup. Any number of users can
|
5078
|
-
# execute up to
|
5082
|
+
# execute up to 50 concurrent restores (any type of restore) in a given
|
5079
5083
|
# account.
|
5080
5084
|
#
|
5081
5085
|
# You can call `RestoreTableFromBackup` at a maximum rate of 10 times
|
@@ -5257,6 +5261,7 @@ module Aws::DynamoDB
|
|
5257
5261
|
# resp.table_description.archival_summary.archival_backup_arn #=> String
|
5258
5262
|
# resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
5259
5263
|
# resp.table_description.table_class_summary.last_update_date_time #=> Time
|
5264
|
+
# resp.table_description.deletion_protection_enabled #=> Boolean
|
5260
5265
|
#
|
5261
5266
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableFromBackup AWS API Documentation
|
5262
5267
|
#
|
@@ -5484,6 +5489,7 @@ module Aws::DynamoDB
|
|
5484
5489
|
# resp.table_description.archival_summary.archival_backup_arn #=> String
|
5485
5490
|
# resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
5486
5491
|
# resp.table_description.table_class_summary.last_update_date_time #=> Time
|
5492
|
+
# resp.table_description.deletion_protection_enabled #=> Boolean
|
5487
5493
|
#
|
5488
5494
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableToPointInTime AWS API Documentation
|
5489
5495
|
#
|
@@ -5733,8 +5739,7 @@ module Aws::DynamoDB
|
|
5733
5739
|
#
|
5734
5740
|
# @option params [Hash<String,String>] :expression_attribute_names
|
5735
5741
|
# One or more substitution tokens for attribute names in an expression.
|
5736
|
-
# The following are some use cases for using
|
5737
|
-
# `ExpressionAttributeNames`\:
|
5742
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
5738
5743
|
#
|
5739
5744
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
5740
5745
|
# word.
|
@@ -5756,7 +5761,7 @@ module Aws::DynamoDB
|
|
5756
5761
|
# cannot be used directly in an expression. (For the complete list of
|
5757
5762
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
5758
5763
|
# Developer Guide*). To work around this, you could specify the
|
5759
|
-
# following for `ExpressionAttributeNames
|
5764
|
+
# following for `ExpressionAttributeNames`:
|
5760
5765
|
#
|
5761
5766
|
# * `\{"#P":"Percentile"\}`
|
5762
5767
|
#
|
@@ -6948,8 +6953,7 @@ module Aws::DynamoDB
|
|
6948
6953
|
#
|
6949
6954
|
# @option params [Hash<String,String>] :expression_attribute_names
|
6950
6955
|
# One or more substitution tokens for attribute names in an expression.
|
6951
|
-
# The following are some use cases for using
|
6952
|
-
# `ExpressionAttributeNames`\:
|
6956
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
6953
6957
|
#
|
6954
6958
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
6955
6959
|
# word.
|
@@ -6971,7 +6975,7 @@ module Aws::DynamoDB
|
|
6971
6975
|
# cannot be used directly in an expression. (For the complete list of
|
6972
6976
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
6973
6977
|
# Developer Guide*.) To work around this, you could specify the
|
6974
|
-
# following for `ExpressionAttributeNames
|
6978
|
+
# following for `ExpressionAttributeNames`:
|
6975
6979
|
#
|
6976
6980
|
# * `\{"#P":"Percentile"\}`
|
6977
6981
|
#
|
@@ -7241,6 +7245,10 @@ module Aws::DynamoDB
|
|
7241
7245
|
# The table class of the table to be updated. Valid values are
|
7242
7246
|
# `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
|
7243
7247
|
#
|
7248
|
+
# @option params [Boolean] :deletion_protection_enabled
|
7249
|
+
# Indicates whether deletion protection is to be enabled (true) or
|
7250
|
+
# disabled (false) on the table.
|
7251
|
+
#
|
7244
7252
|
# @return [Types::UpdateTableOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7245
7253
|
#
|
7246
7254
|
# * {Types::UpdateTableOutput#table_description #table_description} => Types::TableDescription
|
@@ -7390,6 +7398,7 @@ module Aws::DynamoDB
|
|
7390
7398
|
# },
|
7391
7399
|
# ],
|
7392
7400
|
# table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
|
7401
|
+
# deletion_protection_enabled: false,
|
7393
7402
|
# })
|
7394
7403
|
#
|
7395
7404
|
# @example Response structure
|
@@ -7474,6 +7483,7 @@ module Aws::DynamoDB
|
|
7474
7483
|
# resp.table_description.archival_summary.archival_backup_arn #=> String
|
7475
7484
|
# resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
|
7476
7485
|
# resp.table_description.table_class_summary.last_update_date_time #=> Time
|
7486
|
+
# resp.table_description.deletion_protection_enabled #=> Boolean
|
7477
7487
|
#
|
7478
7488
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTable AWS API Documentation
|
7479
7489
|
#
|
@@ -7738,7 +7748,7 @@ module Aws::DynamoDB
|
|
7738
7748
|
params: params,
|
7739
7749
|
config: config)
|
7740
7750
|
context[:gem_name] = 'aws-sdk-dynamodb'
|
7741
|
-
context[:gem_version] = '1.
|
7751
|
+
context[:gem_version] = '1.84.0'
|
7742
7752
|
Seahorse::Client::Request.new(handlers, context)
|
7743
7753
|
end
|
7744
7754
|
|
@@ -120,6 +120,7 @@ module Aws::DynamoDB
|
|
120
120
|
DeleteRequest = Shapes::StructureShape.new(name: 'DeleteRequest')
|
121
121
|
DeleteTableInput = Shapes::StructureShape.new(name: 'DeleteTableInput')
|
122
122
|
DeleteTableOutput = Shapes::StructureShape.new(name: 'DeleteTableOutput')
|
123
|
+
DeletionProtectionEnabled = Shapes::BooleanShape.new(name: 'DeletionProtectionEnabled')
|
123
124
|
DescribeBackupInput = Shapes::StructureShape.new(name: 'DescribeBackupInput')
|
124
125
|
DescribeBackupOutput = Shapes::StructureShape.new(name: 'DescribeBackupOutput')
|
125
126
|
DescribeContinuousBackupsInput = Shapes::StructureShape.new(name: 'DescribeContinuousBackupsInput')
|
@@ -147,7 +148,7 @@ module Aws::DynamoDB
|
|
147
148
|
DescribeTimeToLiveInput = Shapes::StructureShape.new(name: 'DescribeTimeToLiveInput')
|
148
149
|
DescribeTimeToLiveOutput = Shapes::StructureShape.new(name: 'DescribeTimeToLiveOutput')
|
149
150
|
DestinationStatus = Shapes::StringShape.new(name: 'DestinationStatus')
|
150
|
-
|
151
|
+
DoubleObject = Shapes::FloatShape.new(name: 'DoubleObject')
|
151
152
|
DuplicateItemException = Shapes::StructureShape.new(name: 'DuplicateItemException')
|
152
153
|
Endpoint = Shapes::StructureShape.new(name: 'Endpoint')
|
153
154
|
Endpoints = Shapes::ListShape.new(name: 'Endpoints')
|
@@ -285,6 +286,7 @@ module Aws::DynamoDB
|
|
285
286
|
LocalSecondaryIndexList = Shapes::ListShape.new(name: 'LocalSecondaryIndexList')
|
286
287
|
LocalSecondaryIndexes = Shapes::ListShape.new(name: 'LocalSecondaryIndexes')
|
287
288
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
289
|
+
LongObject = Shapes::IntegerShape.new(name: 'LongObject')
|
288
290
|
MapAttributeValue = Shapes::MapShape.new(name: 'MapAttributeValue')
|
289
291
|
NextTokenString = Shapes::StringShape.new(name: 'NextTokenString')
|
290
292
|
NonKeyAttributeName = Shapes::StringShape.new(name: 'NonKeyAttributeName')
|
@@ -522,13 +524,13 @@ module Aws::DynamoDB
|
|
522
524
|
AutoScalingTargetTrackingScalingPolicyConfigurationDescription.add_member(:disable_scale_in, Shapes::ShapeRef.new(shape: BooleanObject, location_name: "DisableScaleIn"))
|
523
525
|
AutoScalingTargetTrackingScalingPolicyConfigurationDescription.add_member(:scale_in_cooldown, Shapes::ShapeRef.new(shape: IntegerObject, location_name: "ScaleInCooldown"))
|
524
526
|
AutoScalingTargetTrackingScalingPolicyConfigurationDescription.add_member(:scale_out_cooldown, Shapes::ShapeRef.new(shape: IntegerObject, location_name: "ScaleOutCooldown"))
|
525
|
-
AutoScalingTargetTrackingScalingPolicyConfigurationDescription.add_member(:target_value, Shapes::ShapeRef.new(shape:
|
527
|
+
AutoScalingTargetTrackingScalingPolicyConfigurationDescription.add_member(:target_value, Shapes::ShapeRef.new(shape: DoubleObject, required: true, location_name: "TargetValue"))
|
526
528
|
AutoScalingTargetTrackingScalingPolicyConfigurationDescription.struct_class = Types::AutoScalingTargetTrackingScalingPolicyConfigurationDescription
|
527
529
|
|
528
530
|
AutoScalingTargetTrackingScalingPolicyConfigurationUpdate.add_member(:disable_scale_in, Shapes::ShapeRef.new(shape: BooleanObject, location_name: "DisableScaleIn"))
|
529
531
|
AutoScalingTargetTrackingScalingPolicyConfigurationUpdate.add_member(:scale_in_cooldown, Shapes::ShapeRef.new(shape: IntegerObject, location_name: "ScaleInCooldown"))
|
530
532
|
AutoScalingTargetTrackingScalingPolicyConfigurationUpdate.add_member(:scale_out_cooldown, Shapes::ShapeRef.new(shape: IntegerObject, location_name: "ScaleOutCooldown"))
|
531
|
-
AutoScalingTargetTrackingScalingPolicyConfigurationUpdate.add_member(:target_value, Shapes::ShapeRef.new(shape:
|
533
|
+
AutoScalingTargetTrackingScalingPolicyConfigurationUpdate.add_member(:target_value, Shapes::ShapeRef.new(shape: DoubleObject, required: true, location_name: "TargetValue"))
|
532
534
|
AutoScalingTargetTrackingScalingPolicyConfigurationUpdate.struct_class = Types::AutoScalingTargetTrackingScalingPolicyConfigurationUpdate
|
533
535
|
|
534
536
|
BackupDescription.add_member(:backup_details, Shapes::ShapeRef.new(shape: BackupDetails, location_name: "BackupDetails"))
|
@@ -716,6 +718,7 @@ module Aws::DynamoDB
|
|
716
718
|
CreateTableInput.add_member(:sse_specification, Shapes::ShapeRef.new(shape: SSESpecification, location_name: "SSESpecification"))
|
717
719
|
CreateTableInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
718
720
|
CreateTableInput.add_member(:table_class, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClass"))
|
721
|
+
CreateTableInput.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: DeletionProtectionEnabled, location_name: "DeletionProtectionEnabled"))
|
719
722
|
CreateTableInput.struct_class = Types::CreateTableInput
|
720
723
|
|
721
724
|
CreateTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
|
@@ -1001,8 +1004,8 @@ module Aws::DynamoDB
|
|
1001
1004
|
GlobalSecondaryIndexDescription.add_member(:index_status, Shapes::ShapeRef.new(shape: IndexStatus, location_name: "IndexStatus"))
|
1002
1005
|
GlobalSecondaryIndexDescription.add_member(:backfilling, Shapes::ShapeRef.new(shape: Backfilling, location_name: "Backfilling"))
|
1003
1006
|
GlobalSecondaryIndexDescription.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughputDescription, location_name: "ProvisionedThroughput"))
|
1004
|
-
GlobalSecondaryIndexDescription.add_member(:index_size_bytes, Shapes::ShapeRef.new(shape:
|
1005
|
-
GlobalSecondaryIndexDescription.add_member(:item_count, Shapes::ShapeRef.new(shape:
|
1007
|
+
GlobalSecondaryIndexDescription.add_member(:index_size_bytes, Shapes::ShapeRef.new(shape: LongObject, location_name: "IndexSizeBytes"))
|
1008
|
+
GlobalSecondaryIndexDescription.add_member(:item_count, Shapes::ShapeRef.new(shape: LongObject, location_name: "ItemCount"))
|
1006
1009
|
GlobalSecondaryIndexDescription.add_member(:index_arn, Shapes::ShapeRef.new(shape: String, location_name: "IndexArn"))
|
1007
1010
|
GlobalSecondaryIndexDescription.struct_class = Types::GlobalSecondaryIndexDescription
|
1008
1011
|
|
@@ -1086,7 +1089,7 @@ module Aws::DynamoDB
|
|
1086
1089
|
ImportTableDescription.add_member(:table_creation_parameters, Shapes::ShapeRef.new(shape: TableCreationParameters, location_name: "TableCreationParameters"))
|
1087
1090
|
ImportTableDescription.add_member(:start_time, Shapes::ShapeRef.new(shape: ImportStartTime, location_name: "StartTime"))
|
1088
1091
|
ImportTableDescription.add_member(:end_time, Shapes::ShapeRef.new(shape: ImportEndTime, location_name: "EndTime"))
|
1089
|
-
ImportTableDescription.add_member(:processed_size_bytes, Shapes::ShapeRef.new(shape:
|
1092
|
+
ImportTableDescription.add_member(:processed_size_bytes, Shapes::ShapeRef.new(shape: LongObject, location_name: "ProcessedSizeBytes"))
|
1090
1093
|
ImportTableDescription.add_member(:processed_item_count, Shapes::ShapeRef.new(shape: ProcessedItemCount, location_name: "ProcessedItemCount"))
|
1091
1094
|
ImportTableDescription.add_member(:imported_item_count, Shapes::ShapeRef.new(shape: ImportedItemCount, location_name: "ImportedItemCount"))
|
1092
1095
|
ImportTableDescription.add_member(:failure_code, Shapes::ShapeRef.new(shape: FailureCode, location_name: "FailureCode"))
|
@@ -1257,8 +1260,8 @@ module Aws::DynamoDB
|
|
1257
1260
|
LocalSecondaryIndexDescription.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "IndexName"))
|
1258
1261
|
LocalSecondaryIndexDescription.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, location_name: "KeySchema"))
|
1259
1262
|
LocalSecondaryIndexDescription.add_member(:projection, Shapes::ShapeRef.new(shape: Projection, location_name: "Projection"))
|
1260
|
-
LocalSecondaryIndexDescription.add_member(:index_size_bytes, Shapes::ShapeRef.new(shape:
|
1261
|
-
LocalSecondaryIndexDescription.add_member(:item_count, Shapes::ShapeRef.new(shape:
|
1263
|
+
LocalSecondaryIndexDescription.add_member(:index_size_bytes, Shapes::ShapeRef.new(shape: LongObject, location_name: "IndexSizeBytes"))
|
1264
|
+
LocalSecondaryIndexDescription.add_member(:item_count, Shapes::ShapeRef.new(shape: LongObject, location_name: "ItemCount"))
|
1262
1265
|
LocalSecondaryIndexDescription.add_member(:index_arn, Shapes::ShapeRef.new(shape: String, location_name: "IndexArn"))
|
1263
1266
|
LocalSecondaryIndexDescription.struct_class = Types::LocalSecondaryIndexDescription
|
1264
1267
|
|
@@ -1588,7 +1591,7 @@ module Aws::DynamoDB
|
|
1588
1591
|
SourceTableDetails.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
|
1589
1592
|
SourceTableDetails.add_member(:table_id, Shapes::ShapeRef.new(shape: TableId, required: true, location_name: "TableId"))
|
1590
1593
|
SourceTableDetails.add_member(:table_arn, Shapes::ShapeRef.new(shape: TableArn, location_name: "TableArn"))
|
1591
|
-
SourceTableDetails.add_member(:table_size_bytes, Shapes::ShapeRef.new(shape:
|
1594
|
+
SourceTableDetails.add_member(:table_size_bytes, Shapes::ShapeRef.new(shape: LongObject, location_name: "TableSizeBytes"))
|
1592
1595
|
SourceTableDetails.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
|
1593
1596
|
SourceTableDetails.add_member(:table_creation_date_time, Shapes::ShapeRef.new(shape: TableCreationDateTime, required: true, location_name: "TableCreationDateTime"))
|
1594
1597
|
SourceTableDetails.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, required: true, location_name: "ProvisionedThroughput"))
|
@@ -1636,8 +1639,8 @@ module Aws::DynamoDB
|
|
1636
1639
|
TableDescription.add_member(:table_status, Shapes::ShapeRef.new(shape: TableStatus, location_name: "TableStatus"))
|
1637
1640
|
TableDescription.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "CreationDateTime"))
|
1638
1641
|
TableDescription.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughputDescription, location_name: "ProvisionedThroughput"))
|
1639
|
-
TableDescription.add_member(:table_size_bytes, Shapes::ShapeRef.new(shape:
|
1640
|
-
TableDescription.add_member(:item_count, Shapes::ShapeRef.new(shape:
|
1642
|
+
TableDescription.add_member(:table_size_bytes, Shapes::ShapeRef.new(shape: LongObject, location_name: "TableSizeBytes"))
|
1643
|
+
TableDescription.add_member(:item_count, Shapes::ShapeRef.new(shape: LongObject, location_name: "ItemCount"))
|
1641
1644
|
TableDescription.add_member(:table_arn, Shapes::ShapeRef.new(shape: String, location_name: "TableArn"))
|
1642
1645
|
TableDescription.add_member(:table_id, Shapes::ShapeRef.new(shape: TableId, location_name: "TableId"))
|
1643
1646
|
TableDescription.add_member(:billing_mode_summary, Shapes::ShapeRef.new(shape: BillingModeSummary, location_name: "BillingModeSummary"))
|
@@ -1652,6 +1655,7 @@ module Aws::DynamoDB
|
|
1652
1655
|
TableDescription.add_member(:sse_description, Shapes::ShapeRef.new(shape: SSEDescription, location_name: "SSEDescription"))
|
1653
1656
|
TableDescription.add_member(:archival_summary, Shapes::ShapeRef.new(shape: ArchivalSummary, location_name: "ArchivalSummary"))
|
1654
1657
|
TableDescription.add_member(:table_class_summary, Shapes::ShapeRef.new(shape: TableClassSummary, location_name: "TableClassSummary"))
|
1658
|
+
TableDescription.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: DeletionProtectionEnabled, location_name: "DeletionProtectionEnabled"))
|
1655
1659
|
TableDescription.struct_class = Types::TableDescription
|
1656
1660
|
|
1657
1661
|
TableInUseException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
@@ -1811,6 +1815,7 @@ module Aws::DynamoDB
|
|
1811
1815
|
UpdateTableInput.add_member(:sse_specification, Shapes::ShapeRef.new(shape: SSESpecification, location_name: "SSESpecification"))
|
1812
1816
|
UpdateTableInput.add_member(:replica_updates, Shapes::ShapeRef.new(shape: ReplicationGroupUpdateList, location_name: "ReplicaUpdates"))
|
1813
1817
|
UpdateTableInput.add_member(:table_class, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClass"))
|
1818
|
+
UpdateTableInput.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: DeletionProtectionEnabled, location_name: "DeletionProtectionEnabled"))
|
1814
1819
|
UpdateTableInput.struct_class = Types::UpdateTableInput
|
1815
1820
|
|
1816
1821
|
UpdateTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
|
@@ -69,7 +69,7 @@ module Aws::DynamoDB
|
|
69
69
|
#
|
70
70
|
# * `ExpressionAttributeNames` - One or more substitution tokens for
|
71
71
|
# attribute names in the `ProjectionExpression` parameter. The
|
72
|
-
# following are some use cases for using `ExpressionAttributeNames
|
72
|
+
# following are some use cases for using `ExpressionAttributeNames`:
|
73
73
|
#
|
74
74
|
# * To access an attribute whose name conflicts with a DynamoDB
|
75
75
|
# reserved word.
|
@@ -91,7 +91,7 @@ module Aws::DynamoDB
|
|
91
91
|
# cannot be used directly in an expression. (For the complete list of
|
92
92
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
93
93
|
# Developer Guide*). To work around this, you could specify the
|
94
|
-
# following for `ExpressionAttributeNames
|
94
|
+
# following for `ExpressionAttributeNames`:
|
95
95
|
#
|
96
96
|
# * `\{"#P":"Percentile"\}`
|
97
97
|
#
|
@@ -316,6 +316,7 @@ module Aws::DynamoDB
|
|
316
316
|
# },
|
317
317
|
# ],
|
318
318
|
# table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
|
319
|
+
# deletion_protection_enabled: false,
|
319
320
|
# })
|
320
321
|
# @param [Hash] options ({})
|
321
322
|
# @option options [required, Array<Types::AttributeDefinition>] :attribute_definitions
|
@@ -512,6 +513,9 @@ module Aws::DynamoDB
|
|
512
513
|
# @option options [String] :table_class
|
513
514
|
# The table class of the new table. Valid values are `STANDARD` and
|
514
515
|
# `STANDARD_INFREQUENT_ACCESS`.
|
516
|
+
# @option options [Boolean] :deletion_protection_enabled
|
517
|
+
# Indicates whether deletion protection is to be enabled (true) or
|
518
|
+
# disabled (false) on the table.
|
515
519
|
# @return [Table]
|
516
520
|
def create_table(options = {})
|
517
521
|
resp = @client.create_table(options)
|
@@ -363,6 +363,13 @@ module Aws::DynamoDB
|
|
363
363
|
data[:table_class_summary]
|
364
364
|
end
|
365
365
|
|
366
|
+
# Indicates whether deletion protection is enabled (true) or disabled
|
367
|
+
# (false) on the table.
|
368
|
+
# @return [Boolean]
|
369
|
+
def deletion_protection_enabled
|
370
|
+
data[:deletion_protection_enabled]
|
371
|
+
end
|
372
|
+
|
366
373
|
# @!endgroup
|
367
374
|
|
368
375
|
# @return [Client]
|
@@ -623,8 +630,7 @@ module Aws::DynamoDB
|
|
623
630
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
|
624
631
|
# @option options [Hash<String,String>] :expression_attribute_names
|
625
632
|
# One or more substitution tokens for attribute names in an expression.
|
626
|
-
# The following are some use cases for using
|
627
|
-
# `ExpressionAttributeNames`\:
|
633
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
628
634
|
#
|
629
635
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
630
636
|
# word.
|
@@ -646,7 +652,7 @@ module Aws::DynamoDB
|
|
646
652
|
# cannot be used directly in an expression. (For the complete list of
|
647
653
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
648
654
|
# Developer Guide*). To work around this, you could specify the
|
649
|
-
# following for `ExpressionAttributeNames
|
655
|
+
# following for `ExpressionAttributeNames`:
|
650
656
|
#
|
651
657
|
# * `\{"#P":"Percentile"\}`
|
652
658
|
#
|
@@ -772,8 +778,7 @@ module Aws::DynamoDB
|
|
772
778
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.AccessingItemAttributes.html
|
773
779
|
# @option options [Hash<String,String>] :expression_attribute_names
|
774
780
|
# One or more substitution tokens for attribute names in an expression.
|
775
|
-
# The following are some use cases for using
|
776
|
-
# `ExpressionAttributeNames`\:
|
781
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
777
782
|
#
|
778
783
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
779
784
|
# word.
|
@@ -795,7 +800,7 @@ module Aws::DynamoDB
|
|
795
800
|
# cannot be used directly in an expression. (For the complete list of
|
796
801
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
797
802
|
# Developer Guide*). To work around this, you could specify the
|
798
|
-
# following for `ExpressionAttributeNames
|
803
|
+
# following for `ExpressionAttributeNames`:
|
799
804
|
#
|
800
805
|
# * `\{"#P":"Percentile"\}`
|
801
806
|
#
|
@@ -963,8 +968,7 @@ module Aws::DynamoDB
|
|
963
968
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
|
964
969
|
# @option options [Hash<String,String>] :expression_attribute_names
|
965
970
|
# One or more substitution tokens for attribute names in an expression.
|
966
|
-
# The following are some use cases for using
|
967
|
-
# `ExpressionAttributeNames`\:
|
971
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
968
972
|
#
|
969
973
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
970
974
|
# word.
|
@@ -986,7 +990,7 @@ module Aws::DynamoDB
|
|
986
990
|
# cannot be used directly in an expression. (For the complete list of
|
987
991
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
988
992
|
# Developer Guide*). To work around this, you could specify the
|
989
|
-
# following for `ExpressionAttributeNames
|
993
|
+
# following for `ExpressionAttributeNames`:
|
990
994
|
#
|
991
995
|
# * `\{"#P":"Percentile"\}`
|
992
996
|
#
|
@@ -1352,8 +1356,7 @@ module Aws::DynamoDB
|
|
1352
1356
|
# [2]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ExpressionPlaceholders.html
|
1353
1357
|
# @option options [Hash<String,String>] :expression_attribute_names
|
1354
1358
|
# One or more substitution tokens for attribute names in an expression.
|
1355
|
-
# The following are some use cases for using
|
1356
|
-
# `ExpressionAttributeNames`\:
|
1359
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
1357
1360
|
#
|
1358
1361
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
1359
1362
|
# word.
|
@@ -1375,7 +1378,7 @@ module Aws::DynamoDB
|
|
1375
1378
|
# cannot be used directly in an expression. (For the complete list of
|
1376
1379
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
1377
1380
|
# Developer Guide*). To work around this, you could specify the
|
1378
|
-
# following for `ExpressionAttributeNames
|
1381
|
+
# following for `ExpressionAttributeNames`:
|
1379
1382
|
#
|
1380
1383
|
# * `\{"#P":"Percentile"\}`
|
1381
1384
|
#
|
@@ -1651,8 +1654,7 @@ module Aws::DynamoDB
|
|
1651
1654
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Query.FilterExpression
|
1652
1655
|
# @option options [Hash<String,String>] :expression_attribute_names
|
1653
1656
|
# One or more substitution tokens for attribute names in an expression.
|
1654
|
-
# The following are some use cases for using
|
1655
|
-
# `ExpressionAttributeNames`\:
|
1657
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
1656
1658
|
#
|
1657
1659
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
1658
1660
|
# word.
|
@@ -1674,7 +1676,7 @@ module Aws::DynamoDB
|
|
1674
1676
|
# cannot be used directly in an expression. (For the complete list of
|
1675
1677
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
1676
1678
|
# Developer Guide*). To work around this, you could specify the
|
1677
|
-
# following for `ExpressionAttributeNames
|
1679
|
+
# following for `ExpressionAttributeNames`:
|
1678
1680
|
#
|
1679
1681
|
# * `\{"#P":"Percentile"\}`
|
1680
1682
|
#
|
@@ -1842,6 +1844,7 @@ module Aws::DynamoDB
|
|
1842
1844
|
# },
|
1843
1845
|
# ],
|
1844
1846
|
# table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
|
1847
|
+
# deletion_protection_enabled: false,
|
1845
1848
|
# })
|
1846
1849
|
# @param [Hash] options ({})
|
1847
1850
|
# @option options [Array<Types::AttributeDefinition>] :attribute_definitions
|
@@ -1917,6 +1920,9 @@ module Aws::DynamoDB
|
|
1917
1920
|
# @option options [String] :table_class
|
1918
1921
|
# The table class of the table to be updated. Valid values are
|
1919
1922
|
# `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
|
1923
|
+
# @option options [Boolean] :deletion_protection_enabled
|
1924
|
+
# Indicates whether deletion protection is to be enabled (true) or
|
1925
|
+
# disabled (false) on the table.
|
1920
1926
|
# @return [Table]
|
1921
1927
|
def update(options = {})
|
1922
1928
|
options = options.merge(table_name: @name)
|
@@ -2151,8 +2157,7 @@ module Aws::DynamoDB
|
|
2151
2157
|
# [1]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html
|
2152
2158
|
# @option options [Hash<String,String>] :expression_attribute_names
|
2153
2159
|
# One or more substitution tokens for attribute names in an expression.
|
2154
|
-
# The following are some use cases for using
|
2155
|
-
# `ExpressionAttributeNames`\:
|
2160
|
+
# The following are some use cases for using `ExpressionAttributeNames`:
|
2156
2161
|
#
|
2157
2162
|
# * To access an attribute whose name conflicts with a DynamoDB reserved
|
2158
2163
|
# word.
|
@@ -2174,7 +2179,7 @@ module Aws::DynamoDB
|
|
2174
2179
|
# cannot be used directly in an expression. (For the complete list of
|
2175
2180
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
2176
2181
|
# Developer Guide*.) To work around this, you could specify the
|
2177
|
-
# following for `ExpressionAttributeNames
|
2182
|
+
# following for `ExpressionAttributeNames`:
|
2178
2183
|
#
|
2179
2184
|
# * `\{"#P":"Percentile"\}`
|
2180
2185
|
#
|
@@ -747,8 +747,7 @@ module Aws::DynamoDB
|
|
747
747
|
#
|
748
748
|
# * `ExpressionAttributeNames` - One or more substitution tokens for
|
749
749
|
# attribute names in the `ProjectionExpression` parameter. The
|
750
|
-
# following are some use cases for using
|
751
|
-
# `ExpressionAttributeNames`\:
|
750
|
+
# following are some use cases for using `ExpressionAttributeNames`:
|
752
751
|
#
|
753
752
|
# * To access an attribute whose name conflicts with a DynamoDB
|
754
753
|
# reserved word.
|
@@ -771,7 +770,7 @@ module Aws::DynamoDB
|
|
771
770
|
# cannot be used directly in an expression. (For the complete list
|
772
771
|
# of reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
773
772
|
# Developer Guide*). To work around this, you could specify the
|
774
|
-
# following for `ExpressionAttributeNames
|
773
|
+
# following for `ExpressionAttributeNames`:
|
775
774
|
#
|
776
775
|
# * `\{"#P":"Percentile"\}`
|
777
776
|
#
|
@@ -1276,7 +1275,7 @@ module Aws::DynamoDB
|
|
1276
1275
|
#
|
1277
1276
|
# The following are descriptions of each comparison operator.
|
1278
1277
|
#
|
1279
|
-
# * `EQ
|
1278
|
+
# * `EQ` : Equal. `EQ` is supported for all data types, including
|
1280
1279
|
# lists and maps.
|
1281
1280
|
#
|
1282
1281
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
@@ -1289,7 +1288,7 @@ module Aws::DynamoDB
|
|
1289
1288
|
#
|
1290
1289
|
#
|
1291
1290
|
#
|
1292
|
-
# * `NE
|
1291
|
+
# * `NE` : Not equal. `NE` is supported for all data types, including
|
1293
1292
|
# lists and maps.
|
1294
1293
|
#
|
1295
1294
|
# `AttributeValueList` can contain only one `AttributeValue` of type
|
@@ -1301,7 +1300,7 @@ module Aws::DynamoDB
|
|
1301
1300
|
#
|
1302
1301
|
#
|
1303
1302
|
#
|
1304
|
-
# * `LE
|
1303
|
+
# * `LE` : Less than or equal.
|
1305
1304
|
#
|
1306
1305
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
1307
1306
|
# of type String, Number, or Binary (not a set type). If an item
|
@@ -1312,7 +1311,7 @@ module Aws::DynamoDB
|
|
1312
1311
|
#
|
1313
1312
|
#
|
1314
1313
|
#
|
1315
|
-
# * `LT
|
1314
|
+
# * `LT` : Less than.
|
1316
1315
|
#
|
1317
1316
|
# `AttributeValueList` can contain only one `AttributeValue` of type
|
1318
1317
|
# String, Number, or Binary (not a set type). If an item contains an
|
@@ -1323,7 +1322,7 @@ module Aws::DynamoDB
|
|
1323
1322
|
#
|
1324
1323
|
#
|
1325
1324
|
#
|
1326
|
-
# * `GE
|
1325
|
+
# * `GE` : Greater than or equal.
|
1327
1326
|
#
|
1328
1327
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
1329
1328
|
# of type String, Number, or Binary (not a set type). If an item
|
@@ -1334,7 +1333,7 @@ module Aws::DynamoDB
|
|
1334
1333
|
#
|
1335
1334
|
#
|
1336
1335
|
#
|
1337
|
-
# * `GT
|
1336
|
+
# * `GT` : Greater than.
|
1338
1337
|
#
|
1339
1338
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
1340
1339
|
# of type String, Number, or Binary (not a set type). If an item
|
@@ -1345,7 +1344,7 @@ module Aws::DynamoDB
|
|
1345
1344
|
#
|
1346
1345
|
#
|
1347
1346
|
#
|
1348
|
-
# * `NOT_NULL
|
1347
|
+
# * `NOT_NULL` : The attribute exists. `NOT_NULL` is supported for all
|
1349
1348
|
# data types, including lists and maps.
|
1350
1349
|
#
|
1351
1350
|
# <note markdown="1"> This operator tests for the existence of an attribute, not its
|
@@ -1356,7 +1355,7 @@ module Aws::DynamoDB
|
|
1356
1355
|
#
|
1357
1356
|
# </note>
|
1358
1357
|
#
|
1359
|
-
# * `NULL
|
1358
|
+
# * `NULL` : The attribute does not exist. `NULL` is supported for all
|
1360
1359
|
# data types, including lists and maps.
|
1361
1360
|
#
|
1362
1361
|
# <note markdown="1"> This operator tests for the nonexistence of an attribute, not its
|
@@ -1367,7 +1366,7 @@ module Aws::DynamoDB
|
|
1367
1366
|
#
|
1368
1367
|
# </note>
|
1369
1368
|
#
|
1370
|
-
# * `CONTAINS
|
1369
|
+
# * `CONTAINS` : Checks for a subsequence, or value in a set.
|
1371
1370
|
#
|
1372
1371
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
1373
1372
|
# of type String, Number, or Binary (not a set type). If the target
|
@@ -1383,7 +1382,7 @@ module Aws::DynamoDB
|
|
1383
1382
|
# b`", "`a`" can be a list; however, "`b`" cannot be a set, a
|
1384
1383
|
# map, or a list.
|
1385
1384
|
#
|
1386
|
-
# * `NOT_CONTAINS
|
1385
|
+
# * `NOT_CONTAINS` : Checks for absence of a subsequence, or absence
|
1387
1386
|
# of a value in a set.
|
1388
1387
|
#
|
1389
1388
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
@@ -1400,7 +1399,7 @@ module Aws::DynamoDB
|
|
1400
1399
|
# CONTAINS b`", "`a`" can be a list; however, "`b`" cannot be a
|
1401
1400
|
# set, a map, or a list.
|
1402
1401
|
#
|
1403
|
-
# * `BEGINS_WITH
|
1402
|
+
# * `BEGINS_WITH` : Checks for a prefix.
|
1404
1403
|
#
|
1405
1404
|
# `AttributeValueList` can contain only one `AttributeValue` of type
|
1406
1405
|
# String or Binary (not a Number or a set type). The target
|
@@ -1409,7 +1408,7 @@ module Aws::DynamoDB
|
|
1409
1408
|
#
|
1410
1409
|
#
|
1411
1410
|
#
|
1412
|
-
# * `IN
|
1411
|
+
# * `IN` : Checks for matching elements in a list.
|
1413
1412
|
#
|
1414
1413
|
# `AttributeValueList` can contain one or more `AttributeValue`
|
1415
1414
|
# elements of type String, Number, or Binary. These attributes are
|
@@ -1417,7 +1416,7 @@ module Aws::DynamoDB
|
|
1417
1416
|
# of the input are equal to the item attribute, the expression
|
1418
1417
|
# evaluates to true.
|
1419
1418
|
#
|
1420
|
-
# * `BETWEEN
|
1419
|
+
# * `BETWEEN` : Greater than or equal to the first value, and less
|
1421
1420
|
# than or equal to the second value.
|
1422
1421
|
#
|
1423
1422
|
# `AttributeValueList` must contain two `AttributeValue` elements of
|
@@ -2013,6 +2012,11 @@ module Aws::DynamoDB
|
|
2013
2012
|
# `STANDARD_INFREQUENT_ACCESS`.
|
2014
2013
|
# @return [String]
|
2015
2014
|
#
|
2015
|
+
# @!attribute [rw] deletion_protection_enabled
|
2016
|
+
# Indicates whether deletion protection is to be enabled (true) or
|
2017
|
+
# disabled (false) on the table.
|
2018
|
+
# @return [Boolean]
|
2019
|
+
#
|
2016
2020
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTableInput AWS API Documentation
|
2017
2021
|
#
|
2018
2022
|
class CreateTableInput < Struct.new(
|
@@ -2026,7 +2030,8 @@ module Aws::DynamoDB
|
|
2026
2030
|
:stream_specification,
|
2027
2031
|
:sse_specification,
|
2028
2032
|
:tags,
|
2029
|
-
:table_class
|
2033
|
+
:table_class,
|
2034
|
+
:deletion_protection_enabled)
|
2030
2035
|
SENSITIVE = []
|
2031
2036
|
include Aws::Structure
|
2032
2037
|
end
|
@@ -2265,7 +2270,7 @@ module Aws::DynamoDB
|
|
2265
2270
|
# @!attribute [rw] expression_attribute_names
|
2266
2271
|
# One or more substitution tokens for attribute names in an
|
2267
2272
|
# expression. The following are some use cases for using
|
2268
|
-
# `ExpressionAttributeNames
|
2273
|
+
# `ExpressionAttributeNames`:
|
2269
2274
|
#
|
2270
2275
|
# * To access an attribute whose name conflicts with a DynamoDB
|
2271
2276
|
# reserved word.
|
@@ -2287,7 +2292,7 @@ module Aws::DynamoDB
|
|
2287
2292
|
# cannot be used directly in an expression. (For the complete list of
|
2288
2293
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
2289
2294
|
# Developer Guide*). To work around this, you could specify the
|
2290
|
-
# following for `ExpressionAttributeNames
|
2295
|
+
# following for `ExpressionAttributeNames`:
|
2291
2296
|
#
|
2292
2297
|
# * `\{"#P":"Percentile"\}`
|
2293
2298
|
#
|
@@ -3157,7 +3162,7 @@ module Aws::DynamoDB
|
|
3157
3162
|
#
|
3158
3163
|
# The following are descriptions of each comparison operator.
|
3159
3164
|
#
|
3160
|
-
# * `EQ
|
3165
|
+
# * `EQ` : Equal. `EQ` is supported for all data types, including
|
3161
3166
|
# lists and maps.
|
3162
3167
|
#
|
3163
3168
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
@@ -3170,7 +3175,7 @@ module Aws::DynamoDB
|
|
3170
3175
|
#
|
3171
3176
|
#
|
3172
3177
|
#
|
3173
|
-
# * `NE
|
3178
|
+
# * `NE` : Not equal. `NE` is supported for all data types, including
|
3174
3179
|
# lists and maps.
|
3175
3180
|
#
|
3176
3181
|
# `AttributeValueList` can contain only one `AttributeValue` of type
|
@@ -3182,7 +3187,7 @@ module Aws::DynamoDB
|
|
3182
3187
|
#
|
3183
3188
|
#
|
3184
3189
|
#
|
3185
|
-
# * `LE
|
3190
|
+
# * `LE` : Less than or equal.
|
3186
3191
|
#
|
3187
3192
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
3188
3193
|
# of type String, Number, or Binary (not a set type). If an item
|
@@ -3193,7 +3198,7 @@ module Aws::DynamoDB
|
|
3193
3198
|
#
|
3194
3199
|
#
|
3195
3200
|
#
|
3196
|
-
# * `LT
|
3201
|
+
# * `LT` : Less than.
|
3197
3202
|
#
|
3198
3203
|
# `AttributeValueList` can contain only one `AttributeValue` of type
|
3199
3204
|
# String, Number, or Binary (not a set type). If an item contains an
|
@@ -3204,7 +3209,7 @@ module Aws::DynamoDB
|
|
3204
3209
|
#
|
3205
3210
|
#
|
3206
3211
|
#
|
3207
|
-
# * `GE
|
3212
|
+
# * `GE` : Greater than or equal.
|
3208
3213
|
#
|
3209
3214
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
3210
3215
|
# of type String, Number, or Binary (not a set type). If an item
|
@@ -3215,7 +3220,7 @@ module Aws::DynamoDB
|
|
3215
3220
|
#
|
3216
3221
|
#
|
3217
3222
|
#
|
3218
|
-
# * `GT
|
3223
|
+
# * `GT` : Greater than.
|
3219
3224
|
#
|
3220
3225
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
3221
3226
|
# of type String, Number, or Binary (not a set type). If an item
|
@@ -3226,7 +3231,7 @@ module Aws::DynamoDB
|
|
3226
3231
|
#
|
3227
3232
|
#
|
3228
3233
|
#
|
3229
|
-
# * `NOT_NULL
|
3234
|
+
# * `NOT_NULL` : The attribute exists. `NOT_NULL` is supported for all
|
3230
3235
|
# data types, including lists and maps.
|
3231
3236
|
#
|
3232
3237
|
# <note markdown="1"> This operator tests for the existence of an attribute, not its
|
@@ -3237,7 +3242,7 @@ module Aws::DynamoDB
|
|
3237
3242
|
#
|
3238
3243
|
# </note>
|
3239
3244
|
#
|
3240
|
-
# * `NULL
|
3245
|
+
# * `NULL` : The attribute does not exist. `NULL` is supported for all
|
3241
3246
|
# data types, including lists and maps.
|
3242
3247
|
#
|
3243
3248
|
# <note markdown="1"> This operator tests for the nonexistence of an attribute, not its
|
@@ -3248,7 +3253,7 @@ module Aws::DynamoDB
|
|
3248
3253
|
#
|
3249
3254
|
# </note>
|
3250
3255
|
#
|
3251
|
-
# * `CONTAINS
|
3256
|
+
# * `CONTAINS` : Checks for a subsequence, or value in a set.
|
3252
3257
|
#
|
3253
3258
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
3254
3259
|
# of type String, Number, or Binary (not a set type). If the target
|
@@ -3264,7 +3269,7 @@ module Aws::DynamoDB
|
|
3264
3269
|
# b`", "`a`" can be a list; however, "`b`" cannot be a set, a
|
3265
3270
|
# map, or a list.
|
3266
3271
|
#
|
3267
|
-
# * `NOT_CONTAINS
|
3272
|
+
# * `NOT_CONTAINS` : Checks for absence of a subsequence, or absence
|
3268
3273
|
# of a value in a set.
|
3269
3274
|
#
|
3270
3275
|
# `AttributeValueList` can contain only one `AttributeValue` element
|
@@ -3281,7 +3286,7 @@ module Aws::DynamoDB
|
|
3281
3286
|
# CONTAINS b`", "`a`" can be a list; however, "`b`" cannot be a
|
3282
3287
|
# set, a map, or a list.
|
3283
3288
|
#
|
3284
|
-
# * `BEGINS_WITH
|
3289
|
+
# * `BEGINS_WITH` : Checks for a prefix.
|
3285
3290
|
#
|
3286
3291
|
# `AttributeValueList` can contain only one `AttributeValue` of type
|
3287
3292
|
# String or Binary (not a Number or a set type). The target
|
@@ -3290,7 +3295,7 @@ module Aws::DynamoDB
|
|
3290
3295
|
#
|
3291
3296
|
#
|
3292
3297
|
#
|
3293
|
-
# * `IN
|
3298
|
+
# * `IN` : Checks for matching elements in a list.
|
3294
3299
|
#
|
3295
3300
|
# `AttributeValueList` can contain one or more `AttributeValue`
|
3296
3301
|
# elements of type String, Number, or Binary. These attributes are
|
@@ -3298,7 +3303,7 @@ module Aws::DynamoDB
|
|
3298
3303
|
# of the input are equal to the item attribute, the expression
|
3299
3304
|
# evaluates to true.
|
3300
3305
|
#
|
3301
|
-
# * `BETWEEN
|
3306
|
+
# * `BETWEEN` : Greater than or equal to the first value, and less
|
3302
3307
|
# than or equal to the second value.
|
3303
3308
|
#
|
3304
3309
|
# `AttributeValueList` must contain two `AttributeValue` elements of
|
@@ -3730,7 +3735,7 @@ module Aws::DynamoDB
|
|
3730
3735
|
# @!attribute [rw] expression_attribute_names
|
3731
3736
|
# One or more substitution tokens for attribute names in an
|
3732
3737
|
# expression. The following are some use cases for using
|
3733
|
-
# `ExpressionAttributeNames
|
3738
|
+
# `ExpressionAttributeNames`:
|
3734
3739
|
#
|
3735
3740
|
# * To access an attribute whose name conflicts with a DynamoDB
|
3736
3741
|
# reserved word.
|
@@ -3752,7 +3757,7 @@ module Aws::DynamoDB
|
|
3752
3757
|
# cannot be used directly in an expression. (For the complete list of
|
3753
3758
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
3754
3759
|
# Developer Guide*). To work around this, you could specify the
|
3755
|
-
# following for `ExpressionAttributeNames
|
3760
|
+
# following for `ExpressionAttributeNames`:
|
3756
3761
|
#
|
3757
3762
|
# * `\{"#P":"Percentile"\}`
|
3758
3763
|
#
|
@@ -4740,7 +4745,7 @@ module Aws::DynamoDB
|
|
4740
4745
|
# @!attribute [rw] expression_attribute_names
|
4741
4746
|
# One or more substitution tokens for attribute names in an
|
4742
4747
|
# expression. The following are some use cases for using
|
4743
|
-
# `ExpressionAttributeNames
|
4748
|
+
# `ExpressionAttributeNames`:
|
4744
4749
|
#
|
4745
4750
|
# * To access an attribute whose name conflicts with a DynamoDB
|
4746
4751
|
# reserved word.
|
@@ -4762,7 +4767,7 @@ module Aws::DynamoDB
|
|
4762
4767
|
# cannot be used directly in an expression. (For the complete list of
|
4763
4768
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
4764
4769
|
# Developer Guide*). To work around this, you could specify the
|
4765
|
-
# following for `ExpressionAttributeNames
|
4770
|
+
# following for `ExpressionAttributeNames`:
|
4766
4771
|
#
|
4767
4772
|
# * `\{"#P":"Percentile"\}`
|
4768
4773
|
#
|
@@ -5826,7 +5831,7 @@ module Aws::DynamoDB
|
|
5826
5831
|
# @!attribute [rw] expression_attribute_names
|
5827
5832
|
# One or more substitution tokens for attribute names in an
|
5828
5833
|
# expression. The following are some use cases for using
|
5829
|
-
# `ExpressionAttributeNames
|
5834
|
+
# `ExpressionAttributeNames`:
|
5830
5835
|
#
|
5831
5836
|
# * To access an attribute whose name conflicts with a DynamoDB
|
5832
5837
|
# reserved word.
|
@@ -5848,7 +5853,7 @@ module Aws::DynamoDB
|
|
5848
5853
|
# cannot be used directly in an expression. (For the complete list of
|
5849
5854
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
5850
5855
|
# Developer Guide*). To work around this, you could specify the
|
5851
|
-
# following for `ExpressionAttributeNames
|
5856
|
+
# following for `ExpressionAttributeNames`:
|
5852
5857
|
#
|
5853
5858
|
# * `\{"#P":"Percentile"\}`
|
5854
5859
|
#
|
@@ -6310,7 +6315,7 @@ module Aws::DynamoDB
|
|
6310
6315
|
# @!attribute [rw] expression_attribute_names
|
6311
6316
|
# One or more substitution tokens for attribute names in an
|
6312
6317
|
# expression. The following are some use cases for using
|
6313
|
-
# `ExpressionAttributeNames
|
6318
|
+
# `ExpressionAttributeNames`:
|
6314
6319
|
#
|
6315
6320
|
# * To access an attribute whose name conflicts with a DynamoDB
|
6316
6321
|
# reserved word.
|
@@ -6332,7 +6337,7 @@ module Aws::DynamoDB
|
|
6332
6337
|
# cannot be used directly in an expression. (For the complete list of
|
6333
6338
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
6334
6339
|
# Developer Guide*). To work around this, you could specify the
|
6335
|
-
# following for `ExpressionAttributeNames
|
6340
|
+
# following for `ExpressionAttributeNames`:
|
6336
6341
|
#
|
6337
6342
|
# * `\{"#P":"Percentile"\}`
|
6338
6343
|
#
|
@@ -7605,7 +7610,7 @@ module Aws::DynamoDB
|
|
7605
7610
|
# @!attribute [rw] expression_attribute_names
|
7606
7611
|
# One or more substitution tokens for attribute names in an
|
7607
7612
|
# expression. The following are some use cases for using
|
7608
|
-
# `ExpressionAttributeNames
|
7613
|
+
# `ExpressionAttributeNames`:
|
7609
7614
|
#
|
7610
7615
|
# * To access an attribute whose name conflicts with a DynamoDB
|
7611
7616
|
# reserved word.
|
@@ -7627,7 +7632,7 @@ module Aws::DynamoDB
|
|
7627
7632
|
# cannot be used directly in an expression. (For the complete list of
|
7628
7633
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
7629
7634
|
# Developer Guide*). To work around this, you could specify the
|
7630
|
-
# following for `ExpressionAttributeNames
|
7635
|
+
# following for `ExpressionAttributeNames`:
|
7631
7636
|
#
|
7632
7637
|
# * `\{"#P":"Percentile"\}`
|
7633
7638
|
#
|
@@ -8353,6 +8358,11 @@ module Aws::DynamoDB
|
|
8353
8358
|
# Contains details of the table class.
|
8354
8359
|
# @return [Types::TableClassSummary]
|
8355
8360
|
#
|
8361
|
+
# @!attribute [rw] deletion_protection_enabled
|
8362
|
+
# Indicates whether deletion protection is enabled (true) or disabled
|
8363
|
+
# (false) on the table.
|
8364
|
+
# @return [Boolean]
|
8365
|
+
#
|
8356
8366
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TableDescription AWS API Documentation
|
8357
8367
|
#
|
8358
8368
|
class TableDescription < Struct.new(
|
@@ -8377,7 +8387,8 @@ module Aws::DynamoDB
|
|
8377
8387
|
:restore_summary,
|
8378
8388
|
:sse_description,
|
8379
8389
|
:archival_summary,
|
8380
|
-
:table_class_summary
|
8390
|
+
:table_class_summary,
|
8391
|
+
:deletion_protection_enabled)
|
8381
8392
|
SENSITIVE = []
|
8382
8393
|
include Aws::Structure
|
8383
8394
|
end
|
@@ -9407,7 +9418,7 @@ module Aws::DynamoDB
|
|
9407
9418
|
#
|
9408
9419
|
# You can have many actions in a single expression, such as the
|
9409
9420
|
# following: `SET a=:value1, b=:value2 DELETE :value3, :value4,
|
9410
|
-
#
|
9421
|
+
# \:value5`
|
9411
9422
|
#
|
9412
9423
|
# For more information on update expressions, see [Modifying Items and
|
9413
9424
|
# Attributes][1] in the *Amazon DynamoDB Developer Guide*.
|
@@ -9443,7 +9454,7 @@ module Aws::DynamoDB
|
|
9443
9454
|
# @!attribute [rw] expression_attribute_names
|
9444
9455
|
# One or more substitution tokens for attribute names in an
|
9445
9456
|
# expression. The following are some use cases for using
|
9446
|
-
# `ExpressionAttributeNames
|
9457
|
+
# `ExpressionAttributeNames`:
|
9447
9458
|
#
|
9448
9459
|
# * To access an attribute whose name conflicts with a DynamoDB
|
9449
9460
|
# reserved word.
|
@@ -9465,7 +9476,7 @@ module Aws::DynamoDB
|
|
9465
9476
|
# cannot be used directly in an expression. (For the complete list of
|
9466
9477
|
# reserved words, see [Reserved Words][1] in the *Amazon DynamoDB
|
9467
9478
|
# Developer Guide*.) To work around this, you could specify the
|
9468
|
-
# following for `ExpressionAttributeNames
|
9479
|
+
# following for `ExpressionAttributeNames`:
|
9469
9480
|
#
|
9470
9481
|
# * `\{"#P":"Percentile"\}`
|
9471
9482
|
#
|
@@ -9737,6 +9748,11 @@ module Aws::DynamoDB
|
|
9737
9748
|
# `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
|
9738
9749
|
# @return [String]
|
9739
9750
|
#
|
9751
|
+
# @!attribute [rw] deletion_protection_enabled
|
9752
|
+
# Indicates whether deletion protection is to be enabled (true) or
|
9753
|
+
# disabled (false) on the table.
|
9754
|
+
# @return [Boolean]
|
9755
|
+
#
|
9740
9756
|
# @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTableInput AWS API Documentation
|
9741
9757
|
#
|
9742
9758
|
class UpdateTableInput < Struct.new(
|
@@ -9748,7 +9764,8 @@ module Aws::DynamoDB
|
|
9748
9764
|
:stream_specification,
|
9749
9765
|
:sse_specification,
|
9750
9766
|
:replica_updates,
|
9751
|
-
:table_class
|
9767
|
+
:table_class,
|
9768
|
+
:deletion_protection_enabled)
|
9752
9769
|
SENSITIVE = []
|
9753
9770
|
include Aws::Structure
|
9754
9771
|
end
|
data/lib/aws-sdk-dynamodb.rb
CHANGED
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
|
+
version: 1.84.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: 2023-
|
11
|
+
date: 2023-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|