aws-sdk-dynamodb 1.74.0 → 1.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,6 +74,7 @@ module Aws::DynamoDB
74
74
  Capacity = Shapes::StructureShape.new(name: 'Capacity')
75
75
  ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
76
76
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
77
+ CloudWatchLogGroupArn = Shapes::StringShape.new(name: 'CloudWatchLogGroupArn')
77
78
  Code = Shapes::StringShape.new(name: 'Code')
78
79
  ComparisonOperator = Shapes::StringShape.new(name: 'ComparisonOperator')
79
80
  Condition = Shapes::StructureShape.new(name: 'Condition')
@@ -103,6 +104,10 @@ module Aws::DynamoDB
103
104
  CreateReplicationGroupMemberAction = Shapes::StructureShape.new(name: 'CreateReplicationGroupMemberAction')
104
105
  CreateTableInput = Shapes::StructureShape.new(name: 'CreateTableInput')
105
106
  CreateTableOutput = Shapes::StructureShape.new(name: 'CreateTableOutput')
107
+ CsvDelimiter = Shapes::StringShape.new(name: 'CsvDelimiter')
108
+ CsvHeader = Shapes::StringShape.new(name: 'CsvHeader')
109
+ CsvHeaderList = Shapes::ListShape.new(name: 'CsvHeaderList')
110
+ CsvOptions = Shapes::StructureShape.new(name: 'CsvOptions')
106
111
  Date = Shapes::TimestampShape.new(name: 'Date')
107
112
  Delete = Shapes::StructureShape.new(name: 'Delete')
108
113
  DeleteBackupInput = Shapes::StructureShape.new(name: 'DeleteBackupInput')
@@ -129,6 +134,8 @@ module Aws::DynamoDB
129
134
  DescribeGlobalTableOutput = Shapes::StructureShape.new(name: 'DescribeGlobalTableOutput')
130
135
  DescribeGlobalTableSettingsInput = Shapes::StructureShape.new(name: 'DescribeGlobalTableSettingsInput')
131
136
  DescribeGlobalTableSettingsOutput = Shapes::StructureShape.new(name: 'DescribeGlobalTableSettingsOutput')
137
+ DescribeImportInput = Shapes::StructureShape.new(name: 'DescribeImportInput')
138
+ DescribeImportOutput = Shapes::StructureShape.new(name: 'DescribeImportOutput')
132
139
  DescribeKinesisStreamingDestinationInput = Shapes::StructureShape.new(name: 'DescribeKinesisStreamingDestinationInput')
133
140
  DescribeKinesisStreamingDestinationOutput = Shapes::StructureShape.new(name: 'DescribeKinesisStreamingDestinationOutput')
134
141
  DescribeLimitsInput = Shapes::StructureShape.new(name: 'DescribeLimitsInput')
@@ -144,6 +151,7 @@ module Aws::DynamoDB
144
151
  DuplicateItemException = Shapes::StructureShape.new(name: 'DuplicateItemException')
145
152
  Endpoint = Shapes::StructureShape.new(name: 'Endpoint')
146
153
  Endpoints = Shapes::ListShape.new(name: 'Endpoints')
154
+ ErrorCount = Shapes::IntegerShape.new(name: 'ErrorCount')
147
155
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
148
156
  ExceptionDescription = Shapes::StringShape.new(name: 'ExceptionDescription')
149
157
  ExceptionName = Shapes::StringShape.new(name: 'ExceptionName')
@@ -199,9 +207,25 @@ module Aws::DynamoDB
199
207
  GlobalTableNotFoundException = Shapes::StructureShape.new(name: 'GlobalTableNotFoundException')
200
208
  GlobalTableStatus = Shapes::StringShape.new(name: 'GlobalTableStatus')
201
209
  IdempotentParameterMismatchException = Shapes::StructureShape.new(name: 'IdempotentParameterMismatchException')
210
+ ImportArn = Shapes::StringShape.new(name: 'ImportArn')
211
+ ImportConflictException = Shapes::StructureShape.new(name: 'ImportConflictException')
212
+ ImportEndTime = Shapes::TimestampShape.new(name: 'ImportEndTime')
213
+ ImportNextToken = Shapes::StringShape.new(name: 'ImportNextToken')
214
+ ImportNotFoundException = Shapes::StructureShape.new(name: 'ImportNotFoundException')
215
+ ImportStartTime = Shapes::TimestampShape.new(name: 'ImportStartTime')
216
+ ImportStatus = Shapes::StringShape.new(name: 'ImportStatus')
217
+ ImportSummary = Shapes::StructureShape.new(name: 'ImportSummary')
218
+ ImportSummaryList = Shapes::ListShape.new(name: 'ImportSummaryList')
219
+ ImportTableDescription = Shapes::StructureShape.new(name: 'ImportTableDescription')
220
+ ImportTableInput = Shapes::StructureShape.new(name: 'ImportTableInput')
221
+ ImportTableOutput = Shapes::StructureShape.new(name: 'ImportTableOutput')
222
+ ImportedItemCount = Shapes::IntegerShape.new(name: 'ImportedItemCount')
202
223
  IndexName = Shapes::StringShape.new(name: 'IndexName')
203
224
  IndexNotFoundException = Shapes::StructureShape.new(name: 'IndexNotFoundException')
204
225
  IndexStatus = Shapes::StringShape.new(name: 'IndexStatus')
226
+ InputCompressionType = Shapes::StringShape.new(name: 'InputCompressionType')
227
+ InputFormat = Shapes::StringShape.new(name: 'InputFormat')
228
+ InputFormatOptions = Shapes::StructureShape.new(name: 'InputFormatOptions')
205
229
  Integer = Shapes::IntegerShape.new(name: 'Integer')
206
230
  IntegerObject = Shapes::IntegerShape.new(name: 'IntegerObject')
207
231
  InternalServerError = Shapes::StructureShape.new(name: 'InternalServerError')
@@ -246,6 +270,9 @@ module Aws::DynamoDB
246
270
  ListExportsOutput = Shapes::StructureShape.new(name: 'ListExportsOutput')
247
271
  ListGlobalTablesInput = Shapes::StructureShape.new(name: 'ListGlobalTablesInput')
248
272
  ListGlobalTablesOutput = Shapes::StructureShape.new(name: 'ListGlobalTablesOutput')
273
+ ListImportsInput = Shapes::StructureShape.new(name: 'ListImportsInput')
274
+ ListImportsMaxLimit = Shapes::IntegerShape.new(name: 'ListImportsMaxLimit')
275
+ ListImportsOutput = Shapes::StructureShape.new(name: 'ListImportsOutput')
249
276
  ListTablesInput = Shapes::StructureShape.new(name: 'ListTablesInput')
250
277
  ListTablesInputLimit = Shapes::IntegerShape.new(name: 'ListTablesInputLimit')
251
278
  ListTablesOutput = Shapes::StructureShape.new(name: 'ListTablesOutput')
@@ -279,6 +306,7 @@ module Aws::DynamoDB
279
306
  PositiveIntegerObject = Shapes::IntegerShape.new(name: 'PositiveIntegerObject')
280
307
  PositiveLongObject = Shapes::IntegerShape.new(name: 'PositiveLongObject')
281
308
  PreparedStatementParameters = Shapes::ListShape.new(name: 'PreparedStatementParameters')
309
+ ProcessedItemCount = Shapes::IntegerShape.new(name: 'ProcessedItemCount')
282
310
  Projection = Shapes::StructureShape.new(name: 'Projection')
283
311
  ProjectionExpression = Shapes::StringShape.new(name: 'ProjectionExpression')
284
312
  ProjectionType = Shapes::StringShape.new(name: 'ProjectionType')
@@ -343,6 +371,7 @@ module Aws::DynamoDB
343
371
  ReturnValuesOnConditionCheckFailure = Shapes::StringShape.new(name: 'ReturnValuesOnConditionCheckFailure')
344
372
  S3Bucket = Shapes::StringShape.new(name: 'S3Bucket')
345
373
  S3BucketOwner = Shapes::StringShape.new(name: 'S3BucketOwner')
374
+ S3BucketSource = Shapes::StructureShape.new(name: 'S3BucketSource')
346
375
  S3Prefix = Shapes::StringShape.new(name: 'S3Prefix')
347
376
  S3SseAlgorithm = Shapes::StringShape.new(name: 'S3SseAlgorithm')
348
377
  S3SseKmsKeyId = Shapes::StringShape.new(name: 'S3SseKmsKeyId')
@@ -373,6 +402,7 @@ module Aws::DynamoDB
373
402
  TableClass = Shapes::StringShape.new(name: 'TableClass')
374
403
  TableClassSummary = Shapes::StructureShape.new(name: 'TableClassSummary')
375
404
  TableCreationDateTime = Shapes::TimestampShape.new(name: 'TableCreationDateTime')
405
+ TableCreationParameters = Shapes::StructureShape.new(name: 'TableCreationParameters')
376
406
  TableDescription = Shapes::StructureShape.new(name: 'TableDescription')
377
407
  TableId = Shapes::StringShape.new(name: 'TableId')
378
408
  TableInUseException = Shapes::StructureShape.new(name: 'TableInUseException')
@@ -691,6 +721,12 @@ module Aws::DynamoDB
691
721
  CreateTableOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
692
722
  CreateTableOutput.struct_class = Types::CreateTableOutput
693
723
 
724
+ CsvHeaderList.member = Shapes::ShapeRef.new(shape: CsvHeader)
725
+
726
+ CsvOptions.add_member(:delimiter, Shapes::ShapeRef.new(shape: CsvDelimiter, location_name: "Delimiter"))
727
+ CsvOptions.add_member(:header_list, Shapes::ShapeRef.new(shape: CsvHeaderList, location_name: "HeaderList"))
728
+ CsvOptions.struct_class = Types::CsvOptions
729
+
694
730
  Delete.add_member(:key, Shapes::ShapeRef.new(shape: Key, required: true, location_name: "Key"))
695
731
  Delete.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
696
732
  Delete.add_member(:condition_expression, Shapes::ShapeRef.new(shape: ConditionExpression, location_name: "ConditionExpression"))
@@ -788,6 +824,12 @@ module Aws::DynamoDB
788
824
  DescribeGlobalTableSettingsOutput.add_member(:replica_settings, Shapes::ShapeRef.new(shape: ReplicaSettingsDescriptionList, location_name: "ReplicaSettings"))
789
825
  DescribeGlobalTableSettingsOutput.struct_class = Types::DescribeGlobalTableSettingsOutput
790
826
 
827
+ DescribeImportInput.add_member(:import_arn, Shapes::ShapeRef.new(shape: ImportArn, required: true, location_name: "ImportArn"))
828
+ DescribeImportInput.struct_class = Types::DescribeImportInput
829
+
830
+ DescribeImportOutput.add_member(:import_table_description, Shapes::ShapeRef.new(shape: ImportTableDescription, required: true, location_name: "ImportTableDescription"))
831
+ DescribeImportOutput.struct_class = Types::DescribeImportOutput
832
+
791
833
  DescribeKinesisStreamingDestinationInput.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
792
834
  DescribeKinesisStreamingDestinationInput.struct_class = Types::DescribeKinesisStreamingDestinationInput
793
835
 
@@ -1012,9 +1054,62 @@ module Aws::DynamoDB
1012
1054
  IdempotentParameterMismatchException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
1013
1055
  IdempotentParameterMismatchException.struct_class = Types::IdempotentParameterMismatchException
1014
1056
 
1057
+ ImportConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
1058
+ ImportConflictException.struct_class = Types::ImportConflictException
1059
+
1060
+ ImportNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
1061
+ ImportNotFoundException.struct_class = Types::ImportNotFoundException
1062
+
1063
+ ImportSummary.add_member(:import_arn, Shapes::ShapeRef.new(shape: ImportArn, location_name: "ImportArn"))
1064
+ ImportSummary.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
1065
+ ImportSummary.add_member(:table_arn, Shapes::ShapeRef.new(shape: TableArn, location_name: "TableArn"))
1066
+ ImportSummary.add_member(:s3_bucket_source, Shapes::ShapeRef.new(shape: S3BucketSource, location_name: "S3BucketSource"))
1067
+ ImportSummary.add_member(:cloud_watch_log_group_arn, Shapes::ShapeRef.new(shape: CloudWatchLogGroupArn, location_name: "CloudWatchLogGroupArn"))
1068
+ ImportSummary.add_member(:input_format, Shapes::ShapeRef.new(shape: InputFormat, location_name: "InputFormat"))
1069
+ ImportSummary.add_member(:start_time, Shapes::ShapeRef.new(shape: ImportStartTime, location_name: "StartTime"))
1070
+ ImportSummary.add_member(:end_time, Shapes::ShapeRef.new(shape: ImportEndTime, location_name: "EndTime"))
1071
+ ImportSummary.struct_class = Types::ImportSummary
1072
+
1073
+ ImportSummaryList.member = Shapes::ShapeRef.new(shape: ImportSummary)
1074
+
1075
+ ImportTableDescription.add_member(:import_arn, Shapes::ShapeRef.new(shape: ImportArn, location_name: "ImportArn"))
1076
+ ImportTableDescription.add_member(:import_status, Shapes::ShapeRef.new(shape: ImportStatus, location_name: "ImportStatus"))
1077
+ ImportTableDescription.add_member(:table_arn, Shapes::ShapeRef.new(shape: TableArn, location_name: "TableArn"))
1078
+ ImportTableDescription.add_member(:table_id, Shapes::ShapeRef.new(shape: TableId, location_name: "TableId"))
1079
+ ImportTableDescription.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken"))
1080
+ ImportTableDescription.add_member(:s3_bucket_source, Shapes::ShapeRef.new(shape: S3BucketSource, location_name: "S3BucketSource"))
1081
+ ImportTableDescription.add_member(:error_count, Shapes::ShapeRef.new(shape: ErrorCount, location_name: "ErrorCount"))
1082
+ ImportTableDescription.add_member(:cloud_watch_log_group_arn, Shapes::ShapeRef.new(shape: CloudWatchLogGroupArn, location_name: "CloudWatchLogGroupArn"))
1083
+ ImportTableDescription.add_member(:input_format, Shapes::ShapeRef.new(shape: InputFormat, location_name: "InputFormat"))
1084
+ ImportTableDescription.add_member(:input_format_options, Shapes::ShapeRef.new(shape: InputFormatOptions, location_name: "InputFormatOptions"))
1085
+ ImportTableDescription.add_member(:input_compression_type, Shapes::ShapeRef.new(shape: InputCompressionType, location_name: "InputCompressionType"))
1086
+ ImportTableDescription.add_member(:table_creation_parameters, Shapes::ShapeRef.new(shape: TableCreationParameters, location_name: "TableCreationParameters"))
1087
+ ImportTableDescription.add_member(:start_time, Shapes::ShapeRef.new(shape: ImportStartTime, location_name: "StartTime"))
1088
+ 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"))
1090
+ ImportTableDescription.add_member(:processed_item_count, Shapes::ShapeRef.new(shape: ProcessedItemCount, location_name: "ProcessedItemCount"))
1091
+ ImportTableDescription.add_member(:imported_item_count, Shapes::ShapeRef.new(shape: ImportedItemCount, location_name: "ImportedItemCount"))
1092
+ ImportTableDescription.add_member(:failure_code, Shapes::ShapeRef.new(shape: FailureCode, location_name: "FailureCode"))
1093
+ ImportTableDescription.add_member(:failure_message, Shapes::ShapeRef.new(shape: FailureMessage, location_name: "FailureMessage"))
1094
+ ImportTableDescription.struct_class = Types::ImportTableDescription
1095
+
1096
+ ImportTableInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
1097
+ ImportTableInput.add_member(:s3_bucket_source, Shapes::ShapeRef.new(shape: S3BucketSource, required: true, location_name: "S3BucketSource"))
1098
+ ImportTableInput.add_member(:input_format, Shapes::ShapeRef.new(shape: InputFormat, required: true, location_name: "InputFormat"))
1099
+ ImportTableInput.add_member(:input_format_options, Shapes::ShapeRef.new(shape: InputFormatOptions, location_name: "InputFormatOptions"))
1100
+ ImportTableInput.add_member(:input_compression_type, Shapes::ShapeRef.new(shape: InputCompressionType, location_name: "InputCompressionType"))
1101
+ ImportTableInput.add_member(:table_creation_parameters, Shapes::ShapeRef.new(shape: TableCreationParameters, required: true, location_name: "TableCreationParameters"))
1102
+ ImportTableInput.struct_class = Types::ImportTableInput
1103
+
1104
+ ImportTableOutput.add_member(:import_table_description, Shapes::ShapeRef.new(shape: ImportTableDescription, required: true, location_name: "ImportTableDescription"))
1105
+ ImportTableOutput.struct_class = Types::ImportTableOutput
1106
+
1015
1107
  IndexNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
1016
1108
  IndexNotFoundException.struct_class = Types::IndexNotFoundException
1017
1109
 
1110
+ InputFormatOptions.add_member(:csv, Shapes::ShapeRef.new(shape: CsvOptions, location_name: "Csv"))
1111
+ InputFormatOptions.struct_class = Types::InputFormatOptions
1112
+
1018
1113
  InternalServerError.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
1019
1114
  InternalServerError.struct_class = Types::InternalServerError
1020
1115
 
@@ -1129,6 +1224,15 @@ module Aws::DynamoDB
1129
1224
  ListGlobalTablesOutput.add_member(:last_evaluated_global_table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "LastEvaluatedGlobalTableName"))
1130
1225
  ListGlobalTablesOutput.struct_class = Types::ListGlobalTablesOutput
1131
1226
 
1227
+ ListImportsInput.add_member(:table_arn, Shapes::ShapeRef.new(shape: TableArn, location_name: "TableArn"))
1228
+ ListImportsInput.add_member(:page_size, Shapes::ShapeRef.new(shape: ListImportsMaxLimit, location_name: "PageSize"))
1229
+ ListImportsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: ImportNextToken, location_name: "NextToken"))
1230
+ ListImportsInput.struct_class = Types::ListImportsInput
1231
+
1232
+ ListImportsOutput.add_member(:import_summary_list, Shapes::ShapeRef.new(shape: ImportSummaryList, location_name: "ImportSummaryList"))
1233
+ ListImportsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: ImportNextToken, location_name: "NextToken"))
1234
+ ListImportsOutput.struct_class = Types::ListImportsOutput
1235
+
1132
1236
  ListTablesInput.add_member(:exclusive_start_table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "ExclusiveStartTableName"))
1133
1237
  ListTablesInput.add_member(:limit, Shapes::ShapeRef.new(shape: ListTablesInputLimit, location_name: "Limit"))
1134
1238
  ListTablesInput.struct_class = Types::ListTablesInput
@@ -1437,6 +1541,11 @@ module Aws::DynamoDB
1437
1541
  RestoreTableToPointInTimeOutput.add_member(:table_description, Shapes::ShapeRef.new(shape: TableDescription, location_name: "TableDescription"))
1438
1542
  RestoreTableToPointInTimeOutput.struct_class = Types::RestoreTableToPointInTimeOutput
1439
1543
 
1544
+ S3BucketSource.add_member(:s3_bucket_owner, Shapes::ShapeRef.new(shape: S3BucketOwner, location_name: "S3BucketOwner"))
1545
+ S3BucketSource.add_member(:s3_bucket, Shapes::ShapeRef.new(shape: S3Bucket, required: true, location_name: "S3Bucket"))
1546
+ S3BucketSource.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: S3Prefix, location_name: "S3KeyPrefix"))
1547
+ S3BucketSource.struct_class = Types::S3BucketSource
1548
+
1440
1549
  SSEDescription.add_member(:status, Shapes::ShapeRef.new(shape: SSEStatus, location_name: "Status"))
1441
1550
  SSEDescription.add_member(:sse_type, Shapes::ShapeRef.new(shape: SSEType, location_name: "SSEType"))
1442
1551
  SSEDescription.add_member(:kms_master_key_arn, Shapes::ShapeRef.new(shape: KMSMasterKeyArn, location_name: "KMSMasterKeyArn"))
@@ -1512,6 +1621,15 @@ module Aws::DynamoDB
1512
1621
  TableClassSummary.add_member(:last_update_date_time, Shapes::ShapeRef.new(shape: Date, location_name: "LastUpdateDateTime"))
1513
1622
  TableClassSummary.struct_class = Types::TableClassSummary
1514
1623
 
1624
+ TableCreationParameters.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, required: true, location_name: "TableName"))
1625
+ TableCreationParameters.add_member(:attribute_definitions, Shapes::ShapeRef.new(shape: AttributeDefinitions, required: true, location_name: "AttributeDefinitions"))
1626
+ TableCreationParameters.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, required: true, location_name: "KeySchema"))
1627
+ TableCreationParameters.add_member(:billing_mode, Shapes::ShapeRef.new(shape: BillingMode, location_name: "BillingMode"))
1628
+ TableCreationParameters.add_member(:provisioned_throughput, Shapes::ShapeRef.new(shape: ProvisionedThroughput, location_name: "ProvisionedThroughput"))
1629
+ TableCreationParameters.add_member(:sse_specification, Shapes::ShapeRef.new(shape: SSESpecification, location_name: "SSESpecification"))
1630
+ TableCreationParameters.add_member(:global_secondary_indexes, Shapes::ShapeRef.new(shape: GlobalSecondaryIndexList, location_name: "GlobalSecondaryIndexes"))
1631
+ TableCreationParameters.struct_class = Types::TableCreationParameters
1632
+
1515
1633
  TableDescription.add_member(:attribute_definitions, Shapes::ShapeRef.new(shape: AttributeDefinitions, location_name: "AttributeDefinitions"))
1516
1634
  TableDescription.add_member(:table_name, Shapes::ShapeRef.new(shape: TableName, location_name: "TableName"))
1517
1635
  TableDescription.add_member(:key_schema, Shapes::ShapeRef.new(shape: KeySchema, location_name: "KeySchema"))
@@ -1950,6 +2068,15 @@ module Aws::DynamoDB
1950
2068
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
1951
2069
  end)
1952
2070
 
2071
+ api.add_operation(:describe_import, Seahorse::Model::Operation.new.tap do |o|
2072
+ o.name = "DescribeImport"
2073
+ o.http_method = "POST"
2074
+ o.http_request_uri = "/"
2075
+ o.input = Shapes::ShapeRef.new(shape: DescribeImportInput)
2076
+ o.output = Shapes::ShapeRef.new(shape: DescribeImportOutput)
2077
+ o.errors << Shapes::ShapeRef.new(shape: ImportNotFoundException)
2078
+ end)
2079
+
1953
2080
  api.add_operation(:describe_kinesis_streaming_destination, Seahorse::Model::Operation.new.tap do |o|
1954
2081
  o.name = "DescribeKinesisStreamingDestination"
1955
2082
  o.http_method = "POST"
@@ -2094,6 +2221,17 @@ module Aws::DynamoDB
2094
2221
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2095
2222
  end)
2096
2223
 
2224
+ api.add_operation(:import_table, Seahorse::Model::Operation.new.tap do |o|
2225
+ o.name = "ImportTable"
2226
+ o.http_method = "POST"
2227
+ o.http_request_uri = "/"
2228
+ o.input = Shapes::ShapeRef.new(shape: ImportTableInput)
2229
+ o.output = Shapes::ShapeRef.new(shape: ImportTableOutput)
2230
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
2231
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2232
+ o.errors << Shapes::ShapeRef.new(shape: ImportConflictException)
2233
+ end)
2234
+
2097
2235
  api.add_operation(:list_backups, Seahorse::Model::Operation.new.tap do |o|
2098
2236
  o.name = "ListBackups"
2099
2237
  o.http_method = "POST"
@@ -2148,6 +2286,21 @@ module Aws::DynamoDB
2148
2286
  o.errors << Shapes::ShapeRef.new(shape: InternalServerError)
2149
2287
  end)
2150
2288
 
2289
+ api.add_operation(:list_imports, Seahorse::Model::Operation.new.tap do |o|
2290
+ o.name = "ListImports"
2291
+ o.http_method = "POST"
2292
+ o.http_request_uri = "/"
2293
+ o.input = Shapes::ShapeRef.new(shape: ListImportsInput)
2294
+ o.output = Shapes::ShapeRef.new(shape: ListImportsOutput)
2295
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
2296
+ o[:pager] = Aws::Pager.new(
2297
+ limit_key: "page_size",
2298
+ tokens: {
2299
+ "next_token" => "next_token"
2300
+ }
2301
+ )
2302
+ end)
2303
+
2151
2304
  api.add_operation(:list_tables, Seahorse::Model::Operation.new.tap do |o|
2152
2305
  o.name = "ListTables"
2153
2306
  o.http_method = "POST"
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::DynamoDB
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
56
+ self[:use_dual_stack] = options[:use_dual_stack]
57
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
+ if self[:use_dual_stack].nil?
59
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
60
+ end
61
+ self[:use_fips] = options[:use_fips]
62
+ self[:use_fips] = false if self[:use_fips].nil?
63
+ if self[:use_fips].nil?
64
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
65
+ end
66
+ self[:endpoint] = options[:endpoint]
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::DynamoDB
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint)
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ return Aws::Endpoints::Endpoint.new(url: "https://dynamodb-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
39
+ end
40
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
41
+ end
42
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
43
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
44
+ return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
45
+ end
46
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
47
+ end
48
+ if Aws::Endpoints::Matchers.string_equals?(region, "local")
49
+ return Aws::Endpoints::Endpoint.new(url: "http://localhost:8000", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-east-1", "signingName"=>"dynamodb"}]})
50
+ end
51
+ return Aws::Endpoints::Endpoint.new(url: "https://dynamodb.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
52
+ end
53
+ raise ArgumentError, 'No endpoint could be resolved'
54
+
55
+ end
56
+ end
57
+ end