aws-sdk-dynamodb 1.82.0 → 1.83.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
  SHA256:
3
- metadata.gz: dfc9197d05e4115ac3b250ab9a2790c327199b36d20cb0dcd652c78c6a20f7bf
4
- data.tar.gz: dcba8dc0a49f1249f752e1c5ef88744f0ef8b127c9c788c14a6e9fbf4a18f45f
3
+ metadata.gz: 22abbb7ad15a904ddb4c7af7493a6bf05549ce6dbafc2cb82953339c04d7b1be
4
+ data.tar.gz: 41da2de1fa7793a4ee6b8bc557fc611d38a1755586ad58170f3f8f9aeb894b65
5
5
  SHA512:
6
- metadata.gz: b8d368fb5b441aca4fd4600d68605aa8b59a8eaba7f90eb999f01b96ab204a80cb9eae90562502091250a250a73caae85b4a33bfa0e29ee5880b1c3fe2684289
7
- data.tar.gz: 56d8bc440a87f10c933a5dc75800f7c02687d6e513091652e11f7c5f64a82fa4c36aaed6ffeb14778ec42ccf7ace002c0eacbeb96a73047d1f8040b79fad9ea0
6
+ metadata.gz: 8d2a38d598e18b32573125ebd0e7766efd763bd9f0640947b27816c72302317275312017f525110db4c05ac3066090bf63b982ceebe80c7313bcdfe6253aac8a
7
+ data.tar.gz: 3a4dea68b5bc38fe3a670d9f5ba287a343eb63457efc592f1ff71b222c4fb22ae384efcb6036c46ac7c50c0d2c599a886176489d59048bf9d08c7af027af4c9b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.83.0 (2023-03-08)
5
+ ------------------
6
+
7
+ * 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.
8
+
4
9
  1.82.0 (2023-03-03)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.82.0
1
+ 1.83.0
@@ -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
  #
@@ -2170,6 +2176,7 @@ module Aws::DynamoDB
2170
2176
  # resp.table_description.archival_summary.archival_backup_arn #=> String
2171
2177
  # resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
2172
2178
  # resp.table_description.table_class_summary.last_update_date_time #=> Time
2179
+ # resp.table_description.deletion_protection_enabled #=> Boolean
2173
2180
  #
2174
2181
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/DeleteTable AWS API Documentation
2175
2182
  #
@@ -2955,6 +2962,7 @@ module Aws::DynamoDB
2955
2962
  # resp.table.archival_summary.archival_backup_arn #=> String
2956
2963
  # resp.table.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
2957
2964
  # resp.table.table_class_summary.last_update_date_time #=> Time
2965
+ # resp.table.deletion_protection_enabled #=> Boolean
2958
2966
  #
2959
2967
  #
2960
2968
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -5257,6 +5265,7 @@ module Aws::DynamoDB
5257
5265
  # resp.table_description.archival_summary.archival_backup_arn #=> String
5258
5266
  # resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
5259
5267
  # resp.table_description.table_class_summary.last_update_date_time #=> Time
5268
+ # resp.table_description.deletion_protection_enabled #=> Boolean
5260
5269
  #
5261
5270
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableFromBackup AWS API Documentation
5262
5271
  #
@@ -5484,6 +5493,7 @@ module Aws::DynamoDB
5484
5493
  # resp.table_description.archival_summary.archival_backup_arn #=> String
5485
5494
  # resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
5486
5495
  # resp.table_description.table_class_summary.last_update_date_time #=> Time
5496
+ # resp.table_description.deletion_protection_enabled #=> Boolean
5487
5497
  #
5488
5498
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/RestoreTableToPointInTime AWS API Documentation
5489
5499
  #
@@ -7241,6 +7251,10 @@ module Aws::DynamoDB
7241
7251
  # The table class of the table to be updated. Valid values are
7242
7252
  # `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
7243
7253
  #
7254
+ # @option params [Boolean] :deletion_protection_enabled
7255
+ # Indicates whether deletion protection is to be enabled (true) or
7256
+ # disabled (false) on the table.
7257
+ #
7244
7258
  # @return [Types::UpdateTableOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7245
7259
  #
7246
7260
  # * {Types::UpdateTableOutput#table_description #table_description} => Types::TableDescription
@@ -7390,6 +7404,7 @@ module Aws::DynamoDB
7390
7404
  # },
7391
7405
  # ],
7392
7406
  # table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
7407
+ # deletion_protection_enabled: false,
7393
7408
  # })
7394
7409
  #
7395
7410
  # @example Response structure
@@ -7474,6 +7489,7 @@ module Aws::DynamoDB
7474
7489
  # resp.table_description.archival_summary.archival_backup_arn #=> String
7475
7490
  # resp.table_description.table_class_summary.table_class #=> String, one of "STANDARD", "STANDARD_INFREQUENT_ACCESS"
7476
7491
  # resp.table_description.table_class_summary.last_update_date_time #=> Time
7492
+ # resp.table_description.deletion_protection_enabled #=> Boolean
7477
7493
  #
7478
7494
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTable AWS API Documentation
7479
7495
  #
@@ -7738,7 +7754,7 @@ module Aws::DynamoDB
7738
7754
  params: params,
7739
7755
  config: config)
7740
7756
  context[:gem_name] = 'aws-sdk-dynamodb'
7741
- context[:gem_version] = '1.82.0'
7757
+ context[:gem_version] = '1.83.0'
7742
7758
  Seahorse::Client::Request.new(handlers, context)
7743
7759
  end
7744
7760
 
@@ -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
- Double = Shapes::FloatShape.new(name: 'Double')
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: Double, required: true, location_name: "TargetValue"))
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: Double, required: true, location_name: "TargetValue"))
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: Long, location_name: "IndexSizeBytes"))
1005
- GlobalSecondaryIndexDescription.add_member(:item_count, Shapes::ShapeRef.new(shape: Long, location_name: "ItemCount"))
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: Long, location_name: "ProcessedSizeBytes"))
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: Long, location_name: "IndexSizeBytes"))
1261
- LocalSecondaryIndexDescription.add_member(:item_count, Shapes::ShapeRef.new(shape: Long, location_name: "ItemCount"))
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: Long, location_name: "TableSizeBytes"))
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: Long, location_name: "TableSizeBytes"))
1640
- TableDescription.add_member(:item_count, Shapes::ShapeRef.new(shape: Long, location_name: "ItemCount"))
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"))
@@ -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]
@@ -1842,6 +1849,7 @@ module Aws::DynamoDB
1842
1849
  # },
1843
1850
  # ],
1844
1851
  # table_class: "STANDARD", # accepts STANDARD, STANDARD_INFREQUENT_ACCESS
1852
+ # deletion_protection_enabled: false,
1845
1853
  # })
1846
1854
  # @param [Hash] options ({})
1847
1855
  # @option options [Array<Types::AttributeDefinition>] :attribute_definitions
@@ -1917,6 +1925,9 @@ module Aws::DynamoDB
1917
1925
  # @option options [String] :table_class
1918
1926
  # The table class of the table to be updated. Valid values are
1919
1927
  # `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
1928
+ # @option options [Boolean] :deletion_protection_enabled
1929
+ # Indicates whether deletion protection is to be enabled (true) or
1930
+ # disabled (false) on the table.
1920
1931
  # @return [Table]
1921
1932
  def update(options = {})
1922
1933
  options = options.merge(table_name: @name)
@@ -2013,6 +2013,11 @@ module Aws::DynamoDB
2013
2013
  # `STANDARD_INFREQUENT_ACCESS`.
2014
2014
  # @return [String]
2015
2015
  #
2016
+ # @!attribute [rw] deletion_protection_enabled
2017
+ # Indicates whether deletion protection is to be enabled (true) or
2018
+ # disabled (false) on the table.
2019
+ # @return [Boolean]
2020
+ #
2016
2021
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/CreateTableInput AWS API Documentation
2017
2022
  #
2018
2023
  class CreateTableInput < Struct.new(
@@ -2026,7 +2031,8 @@ module Aws::DynamoDB
2026
2031
  :stream_specification,
2027
2032
  :sse_specification,
2028
2033
  :tags,
2029
- :table_class)
2034
+ :table_class,
2035
+ :deletion_protection_enabled)
2030
2036
  SENSITIVE = []
2031
2037
  include Aws::Structure
2032
2038
  end
@@ -8353,6 +8359,11 @@ module Aws::DynamoDB
8353
8359
  # Contains details of the table class.
8354
8360
  # @return [Types::TableClassSummary]
8355
8361
  #
8362
+ # @!attribute [rw] deletion_protection_enabled
8363
+ # Indicates whether deletion protection is enabled (true) or disabled
8364
+ # (false) on the table.
8365
+ # @return [Boolean]
8366
+ #
8356
8367
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/TableDescription AWS API Documentation
8357
8368
  #
8358
8369
  class TableDescription < Struct.new(
@@ -8377,7 +8388,8 @@ module Aws::DynamoDB
8377
8388
  :restore_summary,
8378
8389
  :sse_description,
8379
8390
  :archival_summary,
8380
- :table_class_summary)
8391
+ :table_class_summary,
8392
+ :deletion_protection_enabled)
8381
8393
  SENSITIVE = []
8382
8394
  include Aws::Structure
8383
8395
  end
@@ -9737,6 +9749,11 @@ module Aws::DynamoDB
9737
9749
  # `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
9738
9750
  # @return [String]
9739
9751
  #
9752
+ # @!attribute [rw] deletion_protection_enabled
9753
+ # Indicates whether deletion protection is to be enabled (true) or
9754
+ # disabled (false) on the table.
9755
+ # @return [Boolean]
9756
+ #
9740
9757
  # @see http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/UpdateTableInput AWS API Documentation
9741
9758
  #
9742
9759
  class UpdateTableInput < Struct.new(
@@ -9748,7 +9765,8 @@ module Aws::DynamoDB
9748
9765
  :stream_specification,
9749
9766
  :sse_specification,
9750
9767
  :replica_updates,
9751
- :table_class)
9768
+ :table_class,
9769
+ :deletion_protection_enabled)
9752
9770
  SENSITIVE = []
9753
9771
  include Aws::Structure
9754
9772
  end
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-dynamodb/customizations'
54
54
  # @!group service
55
55
  module Aws::DynamoDB
56
56
 
57
- GEM_VERSION = '1.82.0'
57
+ GEM_VERSION = '1.83.0'
58
58
 
59
59
  end
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.82.0
4
+ version: 1.83.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-03-03 00:00:00.000000000 Z
11
+ date: 2023-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core