aws-sdk-dynamodb 1.105.0 → 1.107.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -83,6 +83,7 @@ module Aws::DynamoDB
83
83
  ConditionExpression = Shapes::StringShape.new(name: 'ConditionExpression')
84
84
  ConditionalCheckFailedException = Shapes::StructureShape.new(name: 'ConditionalCheckFailedException')
85
85
  ConditionalOperator = Shapes::StringShape.new(name: 'ConditionalOperator')
86
+ ConfirmRemoveSelfResourceAccess = Shapes::BooleanShape.new(name: 'ConfirmRemoveSelfResourceAccess')
86
87
  ConsistentRead = Shapes::BooleanShape.new(name: 'ConsistentRead')
87
88
  ConsumedCapacity = Shapes::StructureShape.new(name: 'ConsumedCapacity')
88
89
  ConsumedCapacityMultiple = Shapes::ListShape.new(name: 'ConsumedCapacityMultiple')
@@ -119,6 +120,8 @@ module Aws::DynamoDB
119
120
  DeleteReplicaAction = Shapes::StructureShape.new(name: 'DeleteReplicaAction')
120
121
  DeleteReplicationGroupMemberAction = Shapes::StructureShape.new(name: 'DeleteReplicationGroupMemberAction')
121
122
  DeleteRequest = Shapes::StructureShape.new(name: 'DeleteRequest')
123
+ DeleteResourcePolicyInput = Shapes::StructureShape.new(name: 'DeleteResourcePolicyInput')
124
+ DeleteResourcePolicyOutput = Shapes::StructureShape.new(name: 'DeleteResourcePolicyOutput')
122
125
  DeleteTableInput = Shapes::StructureShape.new(name: 'DeleteTableInput')
123
126
  DeleteTableOutput = Shapes::StructureShape.new(name: 'DeleteTableOutput')
124
127
  DeletionProtectionEnabled = Shapes::BooleanShape.new(name: 'DeletionProtectionEnabled')
@@ -194,6 +197,8 @@ module Aws::DynamoDB
194
197
  Get = Shapes::StructureShape.new(name: 'Get')
195
198
  GetItemInput = Shapes::StructureShape.new(name: 'GetItemInput')
196
199
  GetItemOutput = Shapes::StructureShape.new(name: 'GetItemOutput')
200
+ GetResourcePolicyInput = Shapes::StructureShape.new(name: 'GetResourcePolicyInput')
201
+ GetResourcePolicyOutput = Shapes::StructureShape.new(name: 'GetResourcePolicyOutput')
197
202
  GlobalSecondaryIndex = Shapes::StructureShape.new(name: 'GlobalSecondaryIndex')
198
203
  GlobalSecondaryIndexAutoScalingUpdate = Shapes::StructureShape.new(name: 'GlobalSecondaryIndexAutoScalingUpdate')
199
204
  GlobalSecondaryIndexAutoScalingUpdateList = Shapes::ListShape.new(name: 'GlobalSecondaryIndexAutoScalingUpdateList')
@@ -312,6 +317,8 @@ module Aws::DynamoDB
312
317
  PointInTimeRecoverySpecification = Shapes::StructureShape.new(name: 'PointInTimeRecoverySpecification')
313
318
  PointInTimeRecoveryStatus = Shapes::StringShape.new(name: 'PointInTimeRecoveryStatus')
314
319
  PointInTimeRecoveryUnavailableException = Shapes::StructureShape.new(name: 'PointInTimeRecoveryUnavailableException')
320
+ PolicyNotFoundException = Shapes::StructureShape.new(name: 'PolicyNotFoundException')
321
+ PolicyRevisionId = Shapes::StringShape.new(name: 'PolicyRevisionId')
315
322
  PositiveIntegerObject = Shapes::IntegerShape.new(name: 'PositiveIntegerObject')
316
323
  PositiveLongObject = Shapes::IntegerShape.new(name: 'PositiveLongObject')
317
324
  PreparedStatementParameters = Shapes::ListShape.new(name: 'PreparedStatementParameters')
@@ -328,6 +335,8 @@ module Aws::DynamoDB
328
335
  PutItemInputAttributeMap = Shapes::MapShape.new(name: 'PutItemInputAttributeMap')
329
336
  PutItemOutput = Shapes::StructureShape.new(name: 'PutItemOutput')
330
337
  PutRequest = Shapes::StructureShape.new(name: 'PutRequest')
338
+ PutResourcePolicyInput = Shapes::StructureShape.new(name: 'PutResourcePolicyInput')
339
+ PutResourcePolicyOutput = Shapes::StructureShape.new(name: 'PutResourcePolicyOutput')
331
340
  QueryInput = Shapes::StructureShape.new(name: 'QueryInput')
332
341
  QueryOutput = Shapes::StructureShape.new(name: 'QueryOutput')
333
342
  RegionName = Shapes::StringShape.new(name: 'RegionName')
@@ -368,6 +377,7 @@ module Aws::DynamoDB
368
377
  ResourceArnString = Shapes::StringShape.new(name: 'ResourceArnString')
369
378
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
370
379
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
380
+ ResourcePolicy = Shapes::StringShape.new(name: 'ResourcePolicy')
371
381
  RestoreInProgress = Shapes::BooleanShape.new(name: 'RestoreInProgress')
372
382
  RestoreSummary = Shapes::StructureShape.new(name: 'RestoreSummary')
373
383
  RestoreTableFromBackupInput = Shapes::StructureShape.new(name: 'RestoreTableFromBackupInput')
@@ -594,10 +604,10 @@ module Aws::DynamoDB
594
604
  BatchGetItemOutput.add_member(:consumed_capacity, Shapes::ShapeRef.new(shape: ConsumedCapacityMultiple, location_name: "ConsumedCapacity"))
595
605
  BatchGetItemOutput.struct_class = Types::BatchGetItemOutput
596
606
 
597
- BatchGetRequestMap.key = Shapes::ShapeRef.new(shape: TableName)
607
+ BatchGetRequestMap.key = Shapes::ShapeRef.new(shape: TableArn)
598
608
  BatchGetRequestMap.value = Shapes::ShapeRef.new(shape: KeysAndAttributes)
599
609
 
600
- BatchGetResponseMap.key = Shapes::ShapeRef.new(shape: TableName)
610
+ BatchGetResponseMap.key = Shapes::ShapeRef.new(shape: TableArn)
601
611
  BatchGetResponseMap.value = Shapes::ShapeRef.new(shape: ItemList)
602
612
 
603
613
  BatchStatementError.add_member(:code, Shapes::ShapeRef.new(shape: BatchStatementErrorCodeEnum, location_name: "Code"))
@@ -626,7 +636,7 @@ module Aws::DynamoDB
626
636
  BatchWriteItemOutput.add_member(:consumed_capacity, Shapes::ShapeRef.new(shape: ConsumedCapacityMultiple, location_name: "ConsumedCapacity"))
627
637
  BatchWriteItemOutput.struct_class = Types::BatchWriteItemOutput
628
638
 
629
- BatchWriteItemRequestMap.key = Shapes::ShapeRef.new(shape: TableName)
639
+ BatchWriteItemRequestMap.key = Shapes::ShapeRef.new(shape: TableArn)
630
640
  BatchWriteItemRequestMap.value = Shapes::ShapeRef.new(shape: WriteRequests)
631
641
 
632
642
  BillingModeSummary.add_member(:billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "BillingMode"))
@@ -652,7 +662,7 @@ module Aws::DynamoDB
652
662
  Condition.struct_class = Types::Condition
653
663
 
654
664
  ConditionCheck.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
655
- ConditionCheck.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
665
+ ConditionCheck.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
656
666
  ConditionCheck.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, required: true, location_name: "ConditionExpression"))
657
667
  ConditionCheck.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
658
668
  ConditionCheck.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
@@ -663,7 +673,7 @@ module Aws::DynamoDB
663
673
  ConditionalCheckFailedException.add_member(:item, Shapes::ShapeRef.new(shape: AttributeMap, location_name: "Item"))
664
674
  ConditionalCheckFailedException.struct_class = Types::ConditionalCheckFailedException
665
675
 
666
- ConsumedCapacity.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
676
+ ConsumedCapacity.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, location_name: "TableName"))
667
677
  ConsumedCapacity.add_member(:capacity_units, Shapes::ShapeRef.new(shape: ConsumedCapacityUnits, location_name: "CapacityUnits"))
668
678
  ConsumedCapacity.add_member(:read_capacity_units, Shapes::ShapeRef.new(shape: ConsumedCapacityUnits, location_name: "ReadCapacityUnits"))
669
679
  ConsumedCapacity.add_member(:write_capacity_units, Shapes::ShapeRef.new(shape: ConsumedCapacityUnits, location_name: "WriteCapacityUnits"))
@@ -690,7 +700,7 @@ module Aws::DynamoDB
690
700
  ContributorInsightsSummary.add_member(:contributor_insights_status, Shapes::ShapeRef.new(shape: ContributorInsightsStatus, location_name: "ContributorInsightsStatus"))
691
701
  ContributorInsightsSummary.struct_class = Types::ContributorInsightsSummary
692
702
 
693
- CreateBackupInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
703
+ CreateBackupInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
694
704
  CreateBackupInput.add_member(:backup_name, Shapes::ShapeRef.new(shape: BackupName, required: true, location_name: "BackupName"))
695
705
  CreateBackupInput.struct_class = Types::CreateBackupInput
696
706
 
@@ -721,7 +731,7 @@ module Aws::DynamoDB
721
731
  CreateReplicationGroupMemberAction.struct_class = Types::CreateReplicationGroupMemberAction
722
732
 
723
733
  CreateTableInput.add_member(:attribute_definitions, Shapes::ShapeRef.new(shape: AttributeDefinitions, required: true, location_name: "AttributeDefinitions"))
724
- CreateTableInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
734
+ CreateTableInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
725
735
  CreateTableInput.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
726
736
  CreateTableInput.add_member(:local_secondary_indexes, Shapes::ShapeRef.new(shape: LocalSecondaryIndexList, location_name: "LocalSecondaryIndexes"))
727
737
  CreateTableInput.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexes"))
@@ -732,6 +742,7 @@ module Aws::DynamoDB
732
742
  CreateTableInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
733
743
  CreateTableInput.add_member(:table_class, Shapes::ShapeRef.new(shape: TableClass, location_name: "TableClass"))
734
744
  CreateTableInput.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: DeletionProtectionEnabled, location_name: "DeletionProtectionEnabled"))
745
+ CreateTableInput.add_member(:resource_policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "ResourcePolicy"))
735
746
  CreateTableInput.struct_class = Types::CreateTableInput
736
747
 
737
748
  CreateTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
@@ -744,7 +755,7 @@ module Aws::DynamoDB
744
755
  CsvOptions.struct_class = Types::CsvOptions
745
756
 
746
757
  Delete.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
747
- Delete.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
758
+ Delete.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
748
759
  Delete.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, location_name: "ConditionExpression"))
749
760
  Delete.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
750
761
  Delete.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
@@ -760,7 +771,7 @@ module Aws::DynamoDB
760
771
  DeleteGlobalSecondaryIndexAction.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "IndexName"))
761
772
  DeleteGlobalSecondaryIndexAction.struct_class = Types::DeleteGlobalSecondaryIndexAction
762
773
 
763
- DeleteItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
774
+ DeleteItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
764
775
  DeleteItemInput.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
765
776
  DeleteItemInput.add_member(:expected, Shapes::ShapeRef.new(shape: ExpectedAttributeMap, location_name: "Expected"))
766
777
  DeleteItemInput.add_member(:conditional_operator, Shapes::ShapeRef.new(shape: ConditionalOperator, location_name: "ConditionalOperator"))
@@ -787,7 +798,14 @@ module Aws::DynamoDB
787
798
  DeleteRequest.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
788
799
  DeleteRequest.struct_class = Types::DeleteRequest
789
800
 
790
- DeleteTableInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
801
+ DeleteResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, required: true, location_name: "ResourceArn"))
802
+ DeleteResourcePolicyInput.add_member(:expected_revision_id, Shapes::ShapeRef.new(shape: PolicyRevisionId, location_name: "ExpectedRevisionId"))
803
+ DeleteResourcePolicyInput.struct_class = Types::DeleteResourcePolicyInput
804
+
805
+ DeleteResourcePolicyOutput.add_member(:revision_id, Shapes::ShapeRef.new(shape: PolicyRevisionId, location_name: "RevisionId"))
806
+ DeleteResourcePolicyOutput.struct_class = Types::DeleteResourcePolicyOutput
807
+
808
+ DeleteTableInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
791
809
  DeleteTableInput.struct_class = Types::DeleteTableInput
792
810
 
793
811
  DeleteTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
@@ -799,13 +817,13 @@ module Aws::DynamoDB
799
817
  DescribeBackupOutput.add_member(:backup_description, Shapes::ShapeRef.new(shape: BackupDescription, location_name: "BackupDescription"))
800
818
  DescribeBackupOutput.struct_class = Types::DescribeBackupOutput
801
819
 
802
- DescribeContinuousBackupsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
820
+ DescribeContinuousBackupsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
803
821
  DescribeContinuousBackupsInput.struct_class = Types::DescribeContinuousBackupsInput
804
822
 
805
823
  DescribeContinuousBackupsOutput.add_member(:continuous_backups_description, Shapes::ShapeRef.new(shape: ContinuousBackupsDescription, location_name: "ContinuousBackupsDescription"))
806
824
  DescribeContinuousBackupsOutput.struct_class = Types::DescribeContinuousBackupsOutput
807
825
 
808
- DescribeContributorInsightsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
826
+ DescribeContributorInsightsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
809
827
  DescribeContributorInsightsInput.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "IndexName"))
810
828
  DescribeContributorInsightsInput.struct_class = Types::DescribeContributorInsightsInput
811
829
 
@@ -847,7 +865,7 @@ module Aws::DynamoDB
847
865
  DescribeImportOutput.add_member(:import_table_description, Shapes::ShapeRef.new(shape: ImportTableDescription, required: true, location_name: "ImportTableDescription"))
848
866
  DescribeImportOutput.struct_class = Types::DescribeImportOutput
849
867
 
850
- DescribeKinesisStreamingDestinationInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
868
+ DescribeKinesisStreamingDestinationInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
851
869
  DescribeKinesisStreamingDestinationInput.struct_class = Types::DescribeKinesisStreamingDestinationInput
852
870
 
853
871
  DescribeKinesisStreamingDestinationOutput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
@@ -862,19 +880,19 @@ module Aws::DynamoDB
862
880
  DescribeLimitsOutput.add_member(:table_max_write_capacity_units, Shapes::ShapeRef.new(shape: PositiveLongObject, location_name: "TableMaxWriteCapacityUnits"))
863
881
  DescribeLimitsOutput.struct_class = Types::DescribeLimitsOutput
864
882
 
865
- DescribeTableInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
883
+ DescribeTableInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
866
884
  DescribeTableInput.struct_class = Types::DescribeTableInput
867
885
 
868
886
  DescribeTableOutput.add_member(:table, Shapes::ShapeRef.new(shape: TableDescription, location_name: "Table"))
869
887
  DescribeTableOutput.struct_class = Types::DescribeTableOutput
870
888
 
871
- DescribeTableReplicaAutoScalingInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
889
+ DescribeTableReplicaAutoScalingInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
872
890
  DescribeTableReplicaAutoScalingInput.struct_class = Types::DescribeTableReplicaAutoScalingInput
873
891
 
874
892
  DescribeTableReplicaAutoScalingOutput.add_member(:table_auto_scaling_description, Shapes::ShapeRef.new(shape: TableAutoScalingDescription, location_name: "TableAutoScalingDescription"))
875
893
  DescribeTableReplicaAutoScalingOutput.struct_class = Types::DescribeTableReplicaAutoScalingOutput
876
894
 
877
- DescribeTimeToLiveInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
895
+ DescribeTimeToLiveInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
878
896
  DescribeTimeToLiveInput.struct_class = Types::DescribeTimeToLiveInput
879
897
 
880
898
  DescribeTimeToLiveOutput.add_member(:time_to_live_description, Shapes::ShapeRef.new(shape: TimeToLiveDescription, location_name: "TimeToLiveDescription"))
@@ -991,12 +1009,12 @@ module Aws::DynamoDB
991
1009
  FilterConditionMap.value = Shapes::ShapeRef.new(shape: Condition)
992
1010
 
993
1011
  Get.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
994
- Get.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1012
+ Get.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
995
1013
  Get.add_member(:projection_expression, Shapes::ShapeRef.new(shape: ProjectionExpression, location_name: "ProjectionExpression"))
996
1014
  Get.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
997
1015
  Get.struct_class = Types::Get
998
1016
 
999
- GetItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1017
+ GetItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1000
1018
  GetItemInput.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
1001
1019
  GetItemInput.add_member(:attributes_to_get, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributesToGet"))
1002
1020
  GetItemInput.add_member(:consistent_read, Shapes::ShapeRef.new(shape: ConsistentRead, location_name: "ConsistentRead"))
@@ -1009,6 +1027,13 @@ module Aws::DynamoDB
1009
1027
  GetItemOutput.add_member(:consumed_capacity, Shapes::ShapeRef.new(shape: ConsumedCapacity, location_name: "ConsumedCapacity"))
1010
1028
  GetItemOutput.struct_class = Types::GetItemOutput
1011
1029
 
1030
+ GetResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, required: true, location_name: "ResourceArn"))
1031
+ GetResourcePolicyInput.struct_class = Types::GetResourcePolicyInput
1032
+
1033
+ GetResourcePolicyOutput.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, location_name: "Policy"))
1034
+ GetResourcePolicyOutput.add_member(:revision_id, Shapes::ShapeRef.new(shape: PolicyRevisionId, location_name: "RevisionId"))
1035
+ GetResourcePolicyOutput.struct_class = Types::GetResourcePolicyOutput
1036
+
1012
1037
  GlobalSecondaryIndex.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, required: true, location_name: "IndexName"))
1013
1038
  GlobalSecondaryIndex.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
1014
1039
  GlobalSecondaryIndex.add_member(:projection, Shapes::ShapeRef.new(shape: Projection, required: true, location_name: "Projection"))
@@ -1159,7 +1184,7 @@ module Aws::DynamoDB
1159
1184
 
1160
1185
  ItemCollectionMetricsMultiple.member = Shapes::ShapeRef.new(shape: ItemCollectionMetrics)
1161
1186
 
1162
- ItemCollectionMetricsPerTable.key = Shapes::ShapeRef.new(shape: TableName)
1187
+ ItemCollectionMetricsPerTable.key = Shapes::ShapeRef.new(shape: TableArn)
1163
1188
  ItemCollectionMetricsPerTable.value = Shapes::ShapeRef.new(shape: ItemCollectionMetricsMultiple)
1164
1189
 
1165
1190
  ItemCollectionSizeEstimateRange.member = Shapes::ShapeRef.new(shape: ItemCollectionSizeEstimateBound)
@@ -1203,7 +1228,7 @@ module Aws::DynamoDB
1203
1228
 
1204
1229
  KinesisDataStreamDestinations.member = Shapes::ShapeRef.new(shape: KinesisDataStreamDestination)
1205
1230
 
1206
- KinesisStreamingDestinationInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1231
+ KinesisStreamingDestinationInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1207
1232
  KinesisStreamingDestinationInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "StreamArn"))
1208
1233
  KinesisStreamingDestinationInput.add_member(:enable_kinesis_streaming_configuration, Shapes::ShapeRef.new(shape: EnableKinesisStreamingConfiguration, location_name: "EnableKinesisStreamingConfiguration"))
1209
1234
  KinesisStreamingDestinationInput.struct_class = Types::KinesisStreamingDestinationInput
@@ -1219,7 +1244,7 @@ module Aws::DynamoDB
1219
1244
 
1220
1245
  ListAttributeValue.member = Shapes::ShapeRef.new(shape: AttributeValue)
1221
1246
 
1222
- ListBackupsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
1247
+ ListBackupsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, location_name: "TableName"))
1223
1248
  ListBackupsInput.add_member(:limit, Shapes::ShapeRef.new(shape: BackupsInputLimit, location_name: "Limit"))
1224
1249
  ListBackupsInput.add_member(:time_range_lower_bound, Shapes::ShapeRef.new(shape: TimeRangeLowerBound, location_name: "TimeRangeLowerBound"))
1225
1250
  ListBackupsInput.add_member(:time_range_upper_bound, Shapes::ShapeRef.new(shape: TimeRangeUpperBound, location_name: "TimeRangeUpperBound"))
@@ -1231,7 +1256,7 @@ module Aws::DynamoDB
1231
1256
  ListBackupsOutput.add_member(:last_evaluated_backup_arn, Shapes::ShapeRef.new(shape: BackupArn, location_name: "LastEvaluatedBackupArn"))
1232
1257
  ListBackupsOutput.struct_class = Types::ListBackupsOutput
1233
1258
 
1234
- ListContributorInsightsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
1259
+ ListContributorInsightsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, location_name: "TableName"))
1235
1260
  ListContributorInsightsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenString, location_name: "NextToken"))
1236
1261
  ListContributorInsightsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: ListContributorInsightsLimit, location_name: "MaxResults"))
1237
1262
  ListContributorInsightsInput.struct_class = Types::ListContributorInsightsInput
@@ -1336,6 +1361,9 @@ module Aws::DynamoDB
1336
1361
  PointInTimeRecoveryUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
1337
1362
  PointInTimeRecoveryUnavailableException.struct_class = Types::PointInTimeRecoveryUnavailableException
1338
1363
 
1364
+ PolicyNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
1365
+ PolicyNotFoundException.struct_class = Types::PolicyNotFoundException
1366
+
1339
1367
  PreparedStatementParameters.member = Shapes::ShapeRef.new(shape: AttributeValue)
1340
1368
 
1341
1369
  Projection.add_member(:projection_type, Shapes::ShapeRef.new(shape: ProjectionType, location_name: "ProjectionType"))
@@ -1360,14 +1388,14 @@ module Aws::DynamoDB
1360
1388
  ProvisionedThroughputOverride.struct_class = Types::ProvisionedThroughputOverride
1361
1389
 
1362
1390
  Put.add_member(:item, Shapes::ShapeRef.new(shape: PutItemInputAttributeMap, required: true, location_name: "Item"))
1363
- Put.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1391
+ Put.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1364
1392
  Put.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, location_name: "ConditionExpression"))
1365
1393
  Put.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
1366
1394
  Put.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
1367
1395
  Put.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
1368
1396
  Put.struct_class = Types::Put
1369
1397
 
1370
- PutItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1398
+ PutItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1371
1399
  PutItemInput.add_member(:item, Shapes::ShapeRef.new(shape: PutItemInputAttributeMap, required: true, location_name: "Item"))
1372
1400
  PutItemInput.add_member(:expected, Shapes::ShapeRef.new(shape: ExpectedAttributeMap, location_name: "Expected"))
1373
1401
  PutItemInput.add_member(:return_values, Shapes::ShapeRef.new(shape: ReturnValue, location_name: "ReturnValues"))
@@ -1391,7 +1419,16 @@ module Aws::DynamoDB
1391
1419
  PutRequest.add_member(:item, Shapes::ShapeRef.new(shape: PutItemInputAttributeMap, required: true, location_name: "Item"))
1392
1420
  PutRequest.struct_class = Types::PutRequest
1393
1421
 
1394
- QueryInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1422
+ PutResourcePolicyInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArnString, required: true, location_name: "ResourceArn"))
1423
+ PutResourcePolicyInput.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicy, required: true, location_name: "Policy"))
1424
+ PutResourcePolicyInput.add_member(:expected_revision_id, Shapes::ShapeRef.new(shape: PolicyRevisionId, location_name: "ExpectedRevisionId"))
1425
+ PutResourcePolicyInput.add_member(:confirm_remove_self_resource_access, Shapes::ShapeRef.new(shape: ConfirmRemoveSelfResourceAccess, location_name: "ConfirmRemoveSelfResourceAccess"))
1426
+ PutResourcePolicyInput.struct_class = Types::PutResourcePolicyInput
1427
+
1428
+ PutResourcePolicyOutput.add_member(:revision_id, Shapes::ShapeRef.new(shape: PolicyRevisionId, location_name: "RevisionId"))
1429
+ PutResourcePolicyOutput.struct_class = Types::PutResourcePolicyOutput
1430
+
1431
+ QueryInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1395
1432
  QueryInput.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "IndexName"))
1396
1433
  QueryInput.add_member(:select, Shapes::ShapeRef.new(shape: Select, location_name: "Select"))
1397
1434
  QueryInput.add_member(:attributes_to_get, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributesToGet"))
@@ -1593,7 +1630,7 @@ module Aws::DynamoDB
1593
1630
  SSESpecification.add_member(:kms_master_key_id, Shapes::ShapeRef.new(shape: KMSMasterKeyId, location_name: "KMSMasterKeyId"))
1594
1631
  SSESpecification.struct_class = Types::SSESpecification
1595
1632
 
1596
- ScanInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1633
+ ScanInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1597
1634
  ScanInput.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "IndexName"))
1598
1635
  ScanInput.add_member(:attributes_to_get, Shapes::ShapeRef.new(shape: AttributeNameList, location_name: "AttributesToGet"))
1599
1636
  ScanInput.add_member(:limit, Shapes::ShapeRef.new(shape: PositiveIntegerObject, location_name: "Limit"))
@@ -1766,21 +1803,21 @@ module Aws::DynamoDB
1766
1803
 
1767
1804
  Update.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
1768
1805
  Update.add_member(:update_expression, Shapes::ShapeRef.new(shape: UpdateExpression, required: true, location_name: "UpdateExpression"))
1769
- Update.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1806
+ Update.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1770
1807
  Update.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, location_name: "ConditionExpression"))
1771
1808
  Update.add_member(:expression_attribute_names, Shapes::ShapeRef.new(shape: ExpressionAttributeNameMap, location_name: "ExpressionAttributeNames"))
1772
1809
  Update.add_member(:expression_attribute_values, Shapes::ShapeRef.new(shape: ExpressionAttributeValueMap, location_name: "ExpressionAttributeValues"))
1773
1810
  Update.add_member(:return_values_on_condition_check_failure, Shapes::ShapeRef.new(shape: ReturnValuesOnConditionCheckFailure, location_name: "ReturnValuesOnConditionCheckFailure"))
1774
1811
  Update.struct_class = Types::Update
1775
1812
 
1776
- UpdateContinuousBackupsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1813
+ UpdateContinuousBackupsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1777
1814
  UpdateContinuousBackupsInput.add_member(:point_in_time_recovery_specification, Shapes::ShapeRef.new(shape: PointInTimeRecoverySpecification, required: true, location_name: "PointInTimeRecoverySpecification"))
1778
1815
  UpdateContinuousBackupsInput.struct_class = Types::UpdateContinuousBackupsInput
1779
1816
 
1780
1817
  UpdateContinuousBackupsOutput.add_member(:continuous_backups_description, Shapes::ShapeRef.new(shape: ContinuousBackupsDescription, location_name: "ContinuousBackupsDescription"))
1781
1818
  UpdateContinuousBackupsOutput.struct_class = Types::UpdateContinuousBackupsOutput
1782
1819
 
1783
- UpdateContributorInsightsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1820
+ UpdateContributorInsightsInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1784
1821
  UpdateContributorInsightsInput.add_member(:index_name, Shapes::ShapeRef.new(shape: IndexName, location_name: "IndexName"))
1785
1822
  UpdateContributorInsightsInput.add_member(:contributor_insights_action, Shapes::ShapeRef.new(shape: ContributorInsightsAction, required: true, location_name: "ContributorInsightsAction"))
1786
1823
  UpdateContributorInsightsInput.struct_class = Types::UpdateContributorInsightsInput
@@ -1813,7 +1850,7 @@ module Aws::DynamoDB
1813
1850
  UpdateGlobalTableSettingsOutput.add_member(:replica_settings, Shapes::ShapeRef.new(shape: ReplicaSettingsDescriptionList, location_name: "ReplicaSettings"))
1814
1851
  UpdateGlobalTableSettingsOutput.struct_class = Types::UpdateGlobalTableSettingsOutput
1815
1852
 
1816
- UpdateItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1853
+ UpdateItemInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1817
1854
  UpdateItemInput.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
1818
1855
  UpdateItemInput.add_member(:attribute_updates, Shapes::ShapeRef.new(shape: AttributeUpdates, location_name: "AttributeUpdates"))
1819
1856
  UpdateItemInput.add_member(:expected, Shapes::ShapeRef.new(shape: ExpectedAttributeMap, location_name: "Expected"))
@@ -1836,7 +1873,7 @@ module Aws::DynamoDB
1836
1873
  UpdateKinesisStreamingConfiguration.add_member(:approximate_creation_date_time_precision, Shapes::ShapeRef.new(shape: ApproximateCreationDateTimePrecision, location_name: "ApproximateCreationDateTimePrecision"))
1837
1874
  UpdateKinesisStreamingConfiguration.struct_class = Types::UpdateKinesisStreamingConfiguration
1838
1875
 
1839
- UpdateKinesisStreamingDestinationInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1876
+ UpdateKinesisStreamingDestinationInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1840
1877
  UpdateKinesisStreamingDestinationInput.add_member(:stream_arn, Shapes::ShapeRef.new(shape: StreamArn, required: true, location_name: "StreamArn"))
1841
1878
  UpdateKinesisStreamingDestinationInput.add_member(:update_kinesis_streaming_configuration, Shapes::ShapeRef.new(shape: UpdateKinesisStreamingConfiguration, location_name: "UpdateKinesisStreamingConfiguration"))
1842
1879
  UpdateKinesisStreamingDestinationInput.struct_class = Types::UpdateKinesisStreamingDestinationInput
@@ -1855,7 +1892,7 @@ module Aws::DynamoDB
1855
1892
  UpdateReplicationGroupMemberAction.struct_class = Types::UpdateReplicationGroupMemberAction
1856
1893
 
1857
1894
  UpdateTableInput.add_member(:attribute_definitions, Shapes::ShapeRef.new(shape: AttributeDefinitions, location_name: "AttributeDefinitions"))
1858
- UpdateTableInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1895
+ UpdateTableInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1859
1896
  UpdateTableInput.add_member(:billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "BillingMode"))
1860
1897
  UpdateTableInput.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
1861
1898
  UpdateTableInput.add_member(:global_secondary_index_updates, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexUpdateList, location_name: "GlobalSecondaryIndexUpdates"))
@@ -1870,7 +1907,7 @@ module Aws::DynamoDB
1870
1907
  UpdateTableOutput.struct_class = Types::UpdateTableOutput
1871
1908
 
1872
1909
  UpdateTableReplicaAutoScalingInput.add_member(:global_secondary_index_updates, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexAutoScalingUpdateList, location_name: "GlobalSecondaryIndexUpdates"))
1873
- UpdateTableReplicaAutoScalingInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1910
+ UpdateTableReplicaAutoScalingInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1874
1911
  UpdateTableReplicaAutoScalingInput.add_member(:provisioned_write_capacity_auto_scaling_update, Shapes::ShapeRef.new(shape: AutoScalingSettingsUpdate, location_name: "ProvisionedWriteCapacityAutoScalingUpdate"))
1875
1912
  UpdateTableReplicaAutoScalingInput.add_member(:replica_updates, Shapes::ShapeRef.new(shape: ReplicaAutoScalingUpdateList, location_name: "ReplicaUpdates"))
1876
1913
  UpdateTableReplicaAutoScalingInput.struct_class = Types::UpdateTableReplicaAutoScalingInput
@@ -1878,7 +1915,7 @@ module Aws::DynamoDB
1878
1915
  UpdateTableReplicaAutoScalingOutput.add_member(:table_auto_scaling_description, Shapes::ShapeRef.new(shape: TableAutoScalingDescription, location_name: "TableAutoScalingDescription"))
1879
1916
  UpdateTableReplicaAutoScalingOutput.struct_class = Types::UpdateTableReplicaAutoScalingOutput
1880
1917
 
1881
- UpdateTimeToLiveInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1918
+ UpdateTimeToLiveInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableArn, required: true, location_name: "TableName"))
1882
1919
  UpdateTimeToLiveInput.add_member(:time_to_live_specification, Shapes::ShapeRef.new(shape: TimeToLiveSpecification, required: true, location_name: "TimeToLiveSpecification"))
1883
1920
  UpdateTimeToLiveInput.struct_class = Types::UpdateTimeToLiveInput
1884
1921
 
@@ -2029,6 +2066,21 @@ module Aws::DynamoDB
2029
2066
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2030
2067
  end)
2031
2068
 
2069
+ api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2070
+ o.name = "DeleteResourcePolicy"
2071
+ o.http_method = "POST"
2072
+ o.http_request_uri = "/"
2073
+ o.endpoint_discovery = {
2074
+ }
2075
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyInput)
2076
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePolicyOutput)
2077
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2078
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2079
+ o.errors << Shapes::ShapeRef.new(shape: PolicyNotFoundException)
2080
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
2081
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2082
+ end)
2083
+
2032
2084
  api.add_operation(:delete_table, Seahorse::Model::Operation.new.tap do |o|
2033
2085
  o.name = "DeleteTable"
2034
2086
  o.http_method = "POST"
@@ -2274,6 +2326,19 @@ module Aws::DynamoDB
2274
2326
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2275
2327
  end)
2276
2328
 
2329
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2330
+ o.name = "GetResourcePolicy"
2331
+ o.http_method = "POST"
2332
+ o.http_request_uri = "/"
2333
+ o.endpoint_discovery = {
2334
+ }
2335
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyInput)
2336
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyOutput)
2337
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2338
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2339
+ o.errors << Shapes::ShapeRef.new(shape: PolicyNotFoundException)
2340
+ end)
2341
+
2277
2342
  api.add_operation(:import_table, Seahorse::Model::Operation.new.tap do |o|
2278
2343
  o.name = "ImportTable"
2279
2344
  o.http_method = "POST"
@@ -2400,6 +2465,21 @@ module Aws::DynamoDB
2400
2465
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2401
2466
  end)
2402
2467
 
2468
+ api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
2469
+ o.name = "PutResourcePolicy"
2470
+ o.http_method = "POST"
2471
+ o.http_request_uri = "/"
2472
+ o.endpoint_discovery = {
2473
+ }
2474
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyInput)
2475
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyOutput)
2476
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2477
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2478
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2479
+ o.errors << Shapes::ShapeRef.new(shape: PolicyNotFoundException)
2480
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
2481
+ end)
2482
+
2403
2483
  api.add_operation(:query, Seahorse::Model::Operation.new.tap do |o|
2404
2484
  o.name = "Query"
2405
2485
  o.http_method = "POST"
@@ -124,6 +124,20 @@ module Aws::DynamoDB
124
124
  end
125
125
  end
126
126
 
127
+ class DeleteResourcePolicy
128
+ def self.build(context)
129
+ unless context.config.regional_endpoint
130
+ endpoint = context.config.endpoint.to_s
131
+ end
132
+ Aws::DynamoDB::EndpointParameters.new(
133
+ region: context.config.region,
134
+ use_dual_stack: context.config.use_dualstack_endpoint,
135
+ use_fips: context.config.use_fips_endpoint,
136
+ endpoint: endpoint,
137
+ )
138
+ end
139
+ end
140
+
127
141
  class DeleteTable
128
142
  def self.build(context)
129
143
  unless context.config.regional_endpoint
@@ -404,6 +418,20 @@ module Aws::DynamoDB
404
418
  end
405
419
  end
406
420
 
421
+ class GetResourcePolicy
422
+ def self.build(context)
423
+ unless context.config.regional_endpoint
424
+ endpoint = context.config.endpoint.to_s
425
+ end
426
+ Aws::DynamoDB::EndpointParameters.new(
427
+ region: context.config.region,
428
+ use_dual_stack: context.config.use_dualstack_endpoint,
429
+ use_fips: context.config.use_fips_endpoint,
430
+ endpoint: endpoint,
431
+ )
432
+ end
433
+ end
434
+
407
435
  class ImportTable
408
436
  def self.build(context)
409
437
  unless context.config.regional_endpoint
@@ -530,6 +558,20 @@ module Aws::DynamoDB
530
558
  end
531
559
  end
532
560
 
561
+ class PutResourcePolicy
562
+ def self.build(context)
563
+ unless context.config.regional_endpoint
564
+ endpoint = context.config.endpoint.to_s
565
+ end
566
+ Aws::DynamoDB::EndpointParameters.new(
567
+ region: context.config.region,
568
+ use_dual_stack: context.config.use_dualstack_endpoint,
569
+ use_fips: context.config.use_fips_endpoint,
570
+ endpoint: endpoint,
571
+ )
572
+ end
573
+ end
574
+
533
575
  class Query
534
576
  def self.build(context)
535
577
  unless context.config.regional_endpoint
@@ -46,6 +46,7 @@ module Aws::DynamoDB
46
46
  # * {ItemCollectionSizeLimitExceededException}
47
47
  # * {LimitExceededException}
48
48
  # * {PointInTimeRecoveryUnavailableException}
49
+ # * {PolicyNotFoundException}
49
50
  # * {ProvisionedThroughputExceededException}
50
51
  # * {ReplicaAlreadyExistsException}
51
52
  # * {ReplicaNotFoundException}
@@ -355,6 +356,21 @@ module Aws::DynamoDB
355
356
  end
356
357
  end
357
358
 
359
+ class PolicyNotFoundException < ServiceError
360
+
361
+ # @param [Seahorse::Client::RequestContext] context
362
+ # @param [String] message
363
+ # @param [Aws::DynamoDB::Types::PolicyNotFoundException] data
364
+ def initialize(context, message, data = Aws::EmptyStructure.new)
365
+ super(context, message, data)
366
+ end
367
+
368
+ # @return [String]
369
+ def message
370
+ @message || @data[:message]
371
+ end
372
+ end
373
+
358
374
  class ProvisionedThroughputExceededException < ServiceError
359
375
 
360
376
  # @param [Seahorse::Client::RequestContext] context
@@ -74,6 +74,8 @@ module Aws::DynamoDB
74
74
  Aws::DynamoDB::Endpoints::DeleteBackup.build(context)
75
75
  when :delete_item
76
76
  Aws::DynamoDB::Endpoints::DeleteItem.build(context)
77
+ when :delete_resource_policy
78
+ Aws::DynamoDB::Endpoints::DeleteResourcePolicy.build(context)
77
79
  when :delete_table
78
80
  Aws::DynamoDB::Endpoints::DeleteTable.build(context)
79
81
  when :describe_backup
@@ -114,6 +116,8 @@ module Aws::DynamoDB
114
116
  Aws::DynamoDB::Endpoints::ExportTableToPointInTime.build(context)
115
117
  when :get_item
116
118
  Aws::DynamoDB::Endpoints::GetItem.build(context)
119
+ when :get_resource_policy
120
+ Aws::DynamoDB::Endpoints::GetResourcePolicy.build(context)
117
121
  when :import_table
118
122
  Aws::DynamoDB::Endpoints::ImportTable.build(context)
119
123
  when :list_backups
@@ -132,6 +136,8 @@ module Aws::DynamoDB
132
136
  Aws::DynamoDB::Endpoints::ListTagsOfResource.build(context)
133
137
  when :put_item
134
138
  Aws::DynamoDB::Endpoints::PutItem.build(context)
139
+ when :put_resource_policy
140
+ Aws::DynamoDB::Endpoints::PutResourcePolicy.build(context)
135
141
  when :query
136
142
  Aws::DynamoDB::Endpoints::Query.build(context)
137
143
  when :restore_table_from_backup