aws-sdk-athena 1.64.0 → 1.66.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.
@@ -15,6 +15,7 @@ module Aws::Athena
15
15
 
16
16
  AclConfiguration = Shapes::StructureShape.new(name: 'AclConfiguration')
17
17
  Age = Shapes::IntegerShape.new(name: 'Age')
18
+ AllocatedDpusInteger = Shapes::IntegerShape.new(name: 'AllocatedDpusInteger')
18
19
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
19
20
  ApplicationDPUSizes = Shapes::StructureShape.new(name: 'ApplicationDPUSizes')
20
21
  ApplicationDPUSizesList = Shapes::ListShape.new(name: 'ApplicationDPUSizesList')
@@ -39,6 +40,17 @@ module Aws::Athena
39
40
  CalculationStatus = Shapes::StructureShape.new(name: 'CalculationStatus')
40
41
  CalculationSummary = Shapes::StructureShape.new(name: 'CalculationSummary')
41
42
  CalculationsList = Shapes::ListShape.new(name: 'CalculationsList')
43
+ CancelCapacityReservationInput = Shapes::StructureShape.new(name: 'CancelCapacityReservationInput')
44
+ CancelCapacityReservationOutput = Shapes::StructureShape.new(name: 'CancelCapacityReservationOutput')
45
+ CapacityAllocation = Shapes::StructureShape.new(name: 'CapacityAllocation')
46
+ CapacityAllocationStatus = Shapes::StringShape.new(name: 'CapacityAllocationStatus')
47
+ CapacityAssignment = Shapes::StructureShape.new(name: 'CapacityAssignment')
48
+ CapacityAssignmentConfiguration = Shapes::StructureShape.new(name: 'CapacityAssignmentConfiguration')
49
+ CapacityAssignmentsList = Shapes::ListShape.new(name: 'CapacityAssignmentsList')
50
+ CapacityReservation = Shapes::StructureShape.new(name: 'CapacityReservation')
51
+ CapacityReservationName = Shapes::StringShape.new(name: 'CapacityReservationName')
52
+ CapacityReservationStatus = Shapes::StringShape.new(name: 'CapacityReservationStatus')
53
+ CapacityReservationsList = Shapes::ListShape.new(name: 'CapacityReservationsList')
42
54
  CatalogNameString = Shapes::StringShape.new(name: 'CatalogNameString')
43
55
  ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
44
56
  CodeBlock = Shapes::StringShape.new(name: 'CodeBlock')
@@ -49,6 +61,8 @@ module Aws::Athena
49
61
  ColumnNullable = Shapes::StringShape.new(name: 'ColumnNullable')
50
62
  CommentString = Shapes::StringShape.new(name: 'CommentString')
51
63
  CoordinatorDpuSize = Shapes::IntegerShape.new(name: 'CoordinatorDpuSize')
64
+ CreateCapacityReservationInput = Shapes::StructureShape.new(name: 'CreateCapacityReservationInput')
65
+ CreateCapacityReservationOutput = Shapes::StructureShape.new(name: 'CreateCapacityReservationOutput')
52
66
  CreateDataCatalogInput = Shapes::StructureShape.new(name: 'CreateDataCatalogInput')
53
67
  CreateDataCatalogOutput = Shapes::StructureShape.new(name: 'CreateDataCatalogOutput')
54
68
  CreateNamedQueryInput = Shapes::StructureShape.new(name: 'CreateNamedQueryInput')
@@ -109,6 +123,10 @@ module Aws::Athena
109
123
  GetCalculationExecutionResponse = Shapes::StructureShape.new(name: 'GetCalculationExecutionResponse')
110
124
  GetCalculationExecutionStatusRequest = Shapes::StructureShape.new(name: 'GetCalculationExecutionStatusRequest')
111
125
  GetCalculationExecutionStatusResponse = Shapes::StructureShape.new(name: 'GetCalculationExecutionStatusResponse')
126
+ GetCapacityAssignmentConfigurationInput = Shapes::StructureShape.new(name: 'GetCapacityAssignmentConfigurationInput')
127
+ GetCapacityAssignmentConfigurationOutput = Shapes::StructureShape.new(name: 'GetCapacityAssignmentConfigurationOutput')
128
+ GetCapacityReservationInput = Shapes::StructureShape.new(name: 'GetCapacityReservationInput')
129
+ GetCapacityReservationOutput = Shapes::StructureShape.new(name: 'GetCapacityReservationOutput')
112
130
  GetDataCatalogInput = Shapes::StructureShape.new(name: 'GetDataCatalogInput')
113
131
  GetDataCatalogOutput = Shapes::StructureShape.new(name: 'GetDataCatalogOutput')
114
132
  GetDatabaseInput = Shapes::StructureShape.new(name: 'GetDatabaseInput')
@@ -145,6 +163,8 @@ module Aws::Athena
145
163
  ListApplicationDPUSizesOutput = Shapes::StructureShape.new(name: 'ListApplicationDPUSizesOutput')
146
164
  ListCalculationExecutionsRequest = Shapes::StructureShape.new(name: 'ListCalculationExecutionsRequest')
147
165
  ListCalculationExecutionsResponse = Shapes::StructureShape.new(name: 'ListCalculationExecutionsResponse')
166
+ ListCapacityReservationsInput = Shapes::StructureShape.new(name: 'ListCapacityReservationsInput')
167
+ ListCapacityReservationsOutput = Shapes::StructureShape.new(name: 'ListCapacityReservationsOutput')
148
168
  ListDataCatalogsInput = Shapes::StructureShape.new(name: 'ListDataCatalogsInput')
149
169
  ListDataCatalogsOutput = Shapes::StructureShape.new(name: 'ListDataCatalogsOutput')
150
170
  ListDatabasesInput = Shapes::StructureShape.new(name: 'ListDatabasesInput')
@@ -174,6 +194,7 @@ module Aws::Athena
174
194
  Long = Shapes::IntegerShape.new(name: 'Long')
175
195
  MaxApplicationDPUSizesCount = Shapes::IntegerShape.new(name: 'MaxApplicationDPUSizesCount')
176
196
  MaxCalculationsCount = Shapes::IntegerShape.new(name: 'MaxCalculationsCount')
197
+ MaxCapacityReservationsCount = Shapes::IntegerShape.new(name: 'MaxCapacityReservationsCount')
177
198
  MaxConcurrentDpus = Shapes::IntegerShape.new(name: 'MaxConcurrentDpus')
178
199
  MaxDataCatalogsCount = Shapes::IntegerShape.new(name: 'MaxDataCatalogsCount')
179
200
  MaxDatabasesCount = Shapes::IntegerShape.new(name: 'MaxDatabasesCount')
@@ -210,6 +231,8 @@ module Aws::Athena
210
231
  PreparedStatementNameList = Shapes::ListShape.new(name: 'PreparedStatementNameList')
211
232
  PreparedStatementSummary = Shapes::StructureShape.new(name: 'PreparedStatementSummary')
212
233
  PreparedStatementsList = Shapes::ListShape.new(name: 'PreparedStatementsList')
234
+ PutCapacityAssignmentConfigurationInput = Shapes::StructureShape.new(name: 'PutCapacityAssignmentConfigurationInput')
235
+ PutCapacityAssignmentConfigurationOutput = Shapes::StructureShape.new(name: 'PutCapacityAssignmentConfigurationOutput')
213
236
  QueryExecution = Shapes::StructureShape.new(name: 'QueryExecution')
214
237
  QueryExecutionContext = Shapes::StructureShape.new(name: 'QueryExecutionContext')
215
238
  QueryExecutionId = Shapes::StringShape.new(name: 'QueryExecutionId')
@@ -275,6 +298,7 @@ module Aws::Athena
275
298
  TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
276
299
  TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
277
300
  TagValue = Shapes::StringShape.new(name: 'TagValue')
301
+ TargetDpusInteger = Shapes::IntegerShape.new(name: 'TargetDpusInteger')
278
302
  TerminateSessionRequest = Shapes::StructureShape.new(name: 'TerminateSessionRequest')
279
303
  TerminateSessionResponse = Shapes::StructureShape.new(name: 'TerminateSessionResponse')
280
304
  ThrottleReason = Shapes::StringShape.new(name: 'ThrottleReason')
@@ -290,6 +314,8 @@ module Aws::Athena
290
314
  UnprocessedQueryExecutionIdList = Shapes::ListShape.new(name: 'UnprocessedQueryExecutionIdList')
291
315
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
292
316
  UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
317
+ UpdateCapacityReservationInput = Shapes::StructureShape.new(name: 'UpdateCapacityReservationInput')
318
+ UpdateCapacityReservationOutput = Shapes::StructureShape.new(name: 'UpdateCapacityReservationOutput')
293
319
  UpdateDataCatalogInput = Shapes::StructureShape.new(name: 'UpdateDataCatalogInput')
294
320
  UpdateDataCatalogOutput = Shapes::StructureShape.new(name: 'UpdateDataCatalogOutput')
295
321
  UpdateNamedQueryInput = Shapes::StructureShape.new(name: 'UpdateNamedQueryInput')
@@ -307,6 +333,7 @@ module Aws::Athena
307
333
  WorkGroupConfigurationUpdates = Shapes::StructureShape.new(name: 'WorkGroupConfigurationUpdates')
308
334
  WorkGroupDescriptionString = Shapes::StringShape.new(name: 'WorkGroupDescriptionString')
309
335
  WorkGroupName = Shapes::StringShape.new(name: 'WorkGroupName')
336
+ WorkGroupNamesList = Shapes::ListShape.new(name: 'WorkGroupNamesList')
310
337
  WorkGroupState = Shapes::StringShape.new(name: 'WorkGroupState')
311
338
  WorkGroupSummary = Shapes::StructureShape.new(name: 'WorkGroupSummary')
312
339
  WorkGroupsList = Shapes::ListShape.new(name: 'WorkGroupsList')
@@ -376,6 +403,37 @@ module Aws::Athena
376
403
 
377
404
  CalculationsList.member = Shapes::ShapeRef.new(shape: CalculationSummary)
378
405
 
406
+ CancelCapacityReservationInput.add_member(:name, Shapes::ShapeRef.new(shape: CapacityReservationName, required: true, location_name: "Name"))
407
+ CancelCapacityReservationInput.struct_class = Types::CancelCapacityReservationInput
408
+
409
+ CancelCapacityReservationOutput.struct_class = Types::CancelCapacityReservationOutput
410
+
411
+ CapacityAllocation.add_member(:status, Shapes::ShapeRef.new(shape: CapacityAllocationStatus, required: true, location_name: "Status"))
412
+ CapacityAllocation.add_member(:status_message, Shapes::ShapeRef.new(shape: String, location_name: "StatusMessage"))
413
+ CapacityAllocation.add_member(:request_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "RequestTime"))
414
+ CapacityAllocation.add_member(:request_completion_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "RequestCompletionTime"))
415
+ CapacityAllocation.struct_class = Types::CapacityAllocation
416
+
417
+ CapacityAssignment.add_member(:work_group_names, Shapes::ShapeRef.new(shape: WorkGroupNamesList, location_name: "WorkGroupNames"))
418
+ CapacityAssignment.struct_class = Types::CapacityAssignment
419
+
420
+ CapacityAssignmentConfiguration.add_member(:capacity_reservation_name, Shapes::ShapeRef.new(shape: CapacityReservationName, location_name: "CapacityReservationName"))
421
+ CapacityAssignmentConfiguration.add_member(:capacity_assignments, Shapes::ShapeRef.new(shape: CapacityAssignmentsList, location_name: "CapacityAssignments"))
422
+ CapacityAssignmentConfiguration.struct_class = Types::CapacityAssignmentConfiguration
423
+
424
+ CapacityAssignmentsList.member = Shapes::ShapeRef.new(shape: CapacityAssignment)
425
+
426
+ CapacityReservation.add_member(:name, Shapes::ShapeRef.new(shape: CapacityReservationName, required: true, location_name: "Name"))
427
+ CapacityReservation.add_member(:status, Shapes::ShapeRef.new(shape: CapacityReservationStatus, required: true, location_name: "Status"))
428
+ CapacityReservation.add_member(:target_dpus, Shapes::ShapeRef.new(shape: TargetDpusInteger, required: true, location_name: "TargetDpus"))
429
+ CapacityReservation.add_member(:allocated_dpus, Shapes::ShapeRef.new(shape: AllocatedDpusInteger, required: true, location_name: "AllocatedDpus"))
430
+ CapacityReservation.add_member(:last_allocation, Shapes::ShapeRef.new(shape: CapacityAllocation, location_name: "LastAllocation"))
431
+ CapacityReservation.add_member(:last_successful_allocation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastSuccessfulAllocationTime"))
432
+ CapacityReservation.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreationTime"))
433
+ CapacityReservation.struct_class = Types::CapacityReservation
434
+
435
+ CapacityReservationsList.member = Shapes::ShapeRef.new(shape: CapacityReservation)
436
+
379
437
  Column.add_member(:name, Shapes::ShapeRef.new(shape: NameString, required: true, location_name: "Name"))
380
438
  Column.add_member(:type, Shapes::ShapeRef.new(shape: TypeString, location_name: "Type"))
381
439
  Column.add_member(:comment, Shapes::ShapeRef.new(shape: CommentString, location_name: "Comment"))
@@ -397,6 +455,13 @@ module Aws::Athena
397
455
 
398
456
  ColumnList.member = Shapes::ShapeRef.new(shape: Column)
399
457
 
458
+ CreateCapacityReservationInput.add_member(:target_dpus, Shapes::ShapeRef.new(shape: TargetDpusInteger, required: true, location_name: "TargetDpus"))
459
+ CreateCapacityReservationInput.add_member(:name, Shapes::ShapeRef.new(shape: CapacityReservationName, required: true, location_name: "Name"))
460
+ CreateCapacityReservationInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
461
+ CreateCapacityReservationInput.struct_class = Types::CreateCapacityReservationInput
462
+
463
+ CreateCapacityReservationOutput.struct_class = Types::CreateCapacityReservationOutput
464
+
400
465
  CreateDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
401
466
  CreateDataCatalogInput.add_member(:type, Shapes::ShapeRef.new(shape: DataCatalogType, required: true, location_name: "Type"))
402
467
  CreateDataCatalogInput.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
@@ -509,6 +574,7 @@ module Aws::Athena
509
574
  EngineConfiguration.add_member(:max_concurrent_dpus, Shapes::ShapeRef.new(shape: MaxConcurrentDpus, required: true, location_name: "MaxConcurrentDpus"))
510
575
  EngineConfiguration.add_member(:default_executor_dpu_size, Shapes::ShapeRef.new(shape: DefaultExecutorDpuSize, location_name: "DefaultExecutorDpuSize"))
511
576
  EngineConfiguration.add_member(:additional_configs, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "AdditionalConfigs"))
577
+ EngineConfiguration.add_member(:spark_properties, Shapes::ShapeRef.new(shape: ParametersMap, location_name: "SparkProperties"))
512
578
  EngineConfiguration.struct_class = Types::EngineConfiguration
513
579
 
514
580
  EngineVersion.add_member(:selected_engine_version, Shapes::ShapeRef.new(shape: NameString, location_name: "SelectedEngineVersion"))
@@ -564,6 +630,18 @@ module Aws::Athena
564
630
  GetCalculationExecutionStatusResponse.add_member(:statistics, Shapes::ShapeRef.new(shape: CalculationStatistics, location_name: "Statistics"))
565
631
  GetCalculationExecutionStatusResponse.struct_class = Types::GetCalculationExecutionStatusResponse
566
632
 
633
+ GetCapacityAssignmentConfigurationInput.add_member(:capacity_reservation_name, Shapes::ShapeRef.new(shape: CapacityReservationName, required: true, location_name: "CapacityReservationName"))
634
+ GetCapacityAssignmentConfigurationInput.struct_class = Types::GetCapacityAssignmentConfigurationInput
635
+
636
+ GetCapacityAssignmentConfigurationOutput.add_member(:capacity_assignment_configuration, Shapes::ShapeRef.new(shape: CapacityAssignmentConfiguration, required: true, location_name: "CapacityAssignmentConfiguration"))
637
+ GetCapacityAssignmentConfigurationOutput.struct_class = Types::GetCapacityAssignmentConfigurationOutput
638
+
639
+ GetCapacityReservationInput.add_member(:name, Shapes::ShapeRef.new(shape: CapacityReservationName, required: true, location_name: "Name"))
640
+ GetCapacityReservationInput.struct_class = Types::GetCapacityReservationInput
641
+
642
+ GetCapacityReservationOutput.add_member(:capacity_reservation, Shapes::ShapeRef.new(shape: CapacityReservation, required: true, location_name: "CapacityReservation"))
643
+ GetCapacityReservationOutput.struct_class = Types::GetCapacityReservationOutput
644
+
567
645
  GetDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
568
646
  GetDataCatalogInput.struct_class = Types::GetDataCatalogInput
569
647
 
@@ -688,6 +766,14 @@ module Aws::Athena
688
766
  ListCalculationExecutionsResponse.add_member(:calculations, Shapes::ShapeRef.new(shape: CalculationsList, location_name: "Calculations"))
689
767
  ListCalculationExecutionsResponse.struct_class = Types::ListCalculationExecutionsResponse
690
768
 
769
+ ListCapacityReservationsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
770
+ ListCapacityReservationsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxCapacityReservationsCount, location_name: "MaxResults"))
771
+ ListCapacityReservationsInput.struct_class = Types::ListCapacityReservationsInput
772
+
773
+ ListCapacityReservationsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
774
+ ListCapacityReservationsOutput.add_member(:capacity_reservations, Shapes::ShapeRef.new(shape: CapacityReservationsList, required: true, location_name: "CapacityReservations"))
775
+ ListCapacityReservationsOutput.struct_class = Types::ListCapacityReservationsOutput
776
+
691
777
  ListDataCatalogsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
692
778
  ListDataCatalogsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxDataCatalogsCount, location_name: "MaxResults"))
693
779
  ListDataCatalogsInput.struct_class = Types::ListDataCatalogsInput
@@ -859,6 +945,12 @@ module Aws::Athena
859
945
 
860
946
  PreparedStatementsList.member = Shapes::ShapeRef.new(shape: PreparedStatementSummary)
861
947
 
948
+ PutCapacityAssignmentConfigurationInput.add_member(:capacity_reservation_name, Shapes::ShapeRef.new(shape: CapacityReservationName, required: true, location_name: "CapacityReservationName"))
949
+ PutCapacityAssignmentConfigurationInput.add_member(:capacity_assignments, Shapes::ShapeRef.new(shape: CapacityAssignmentsList, required: true, location_name: "CapacityAssignments"))
950
+ PutCapacityAssignmentConfigurationInput.struct_class = Types::PutCapacityAssignmentConfigurationInput
951
+
952
+ PutCapacityAssignmentConfigurationOutput.struct_class = Types::PutCapacityAssignmentConfigurationOutput
953
+
862
954
  QueryExecution.add_member(:query_execution_id, Shapes::ShapeRef.new(shape: QueryExecutionId, location_name: "QueryExecutionId"))
863
955
  QueryExecution.add_member(:query, Shapes::ShapeRef.new(shape: QueryString, location_name: "Query"))
864
956
  QueryExecution.add_member(:statement_type, Shapes::ShapeRef.new(shape: StatementType, location_name: "StatementType"))
@@ -1120,6 +1212,12 @@ module Aws::Athena
1120
1212
 
1121
1213
  UntagResourceOutput.struct_class = Types::UntagResourceOutput
1122
1214
 
1215
+ UpdateCapacityReservationInput.add_member(:target_dpus, Shapes::ShapeRef.new(shape: TargetDpusInteger, required: true, location_name: "TargetDpus"))
1216
+ UpdateCapacityReservationInput.add_member(:name, Shapes::ShapeRef.new(shape: CapacityReservationName, required: true, location_name: "Name"))
1217
+ UpdateCapacityReservationInput.struct_class = Types::UpdateCapacityReservationInput
1218
+
1219
+ UpdateCapacityReservationOutput.struct_class = Types::UpdateCapacityReservationOutput
1220
+
1123
1221
  UpdateDataCatalogInput.add_member(:name, Shapes::ShapeRef.new(shape: CatalogNameString, required: true, location_name: "Name"))
1124
1222
  UpdateDataCatalogInput.add_member(:type, Shapes::ShapeRef.new(shape: DataCatalogType, required: true, location_name: "Type"))
1125
1223
  UpdateDataCatalogInput.add_member(:description, Shapes::ShapeRef.new(shape: DescriptionString, location_name: "Description"))
@@ -1201,6 +1299,8 @@ module Aws::Athena
1201
1299
  WorkGroupConfigurationUpdates.add_member(:enable_minimum_encryption_configuration, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "EnableMinimumEncryptionConfiguration"))
1202
1300
  WorkGroupConfigurationUpdates.struct_class = Types::WorkGroupConfigurationUpdates
1203
1301
 
1302
+ WorkGroupNamesList.member = Shapes::ShapeRef.new(shape: WorkGroupName)
1303
+
1204
1304
  WorkGroupSummary.add_member(:name, Shapes::ShapeRef.new(shape: WorkGroupName, location_name: "Name"))
1205
1305
  WorkGroupSummary.add_member(:state, Shapes::ShapeRef.new(shape: WorkGroupState, location_name: "State"))
1206
1306
  WorkGroupSummary.add_member(:description, Shapes::ShapeRef.new(shape: WorkGroupDescriptionString, location_name: "Description"))
@@ -1260,6 +1360,26 @@ module Aws::Athena
1260
1360
  o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1261
1361
  end)
1262
1362
 
1363
+ api.add_operation(:cancel_capacity_reservation, Seahorse::Model::Operation.new.tap do |o|
1364
+ o.name = "CancelCapacityReservation"
1365
+ o.http_method = "POST"
1366
+ o.http_request_uri = "/"
1367
+ o.input = Shapes::ShapeRef.new(shape: CancelCapacityReservationInput)
1368
+ o.output = Shapes::ShapeRef.new(shape: CancelCapacityReservationOutput)
1369
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1370
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1371
+ end)
1372
+
1373
+ api.add_operation(:create_capacity_reservation, Seahorse::Model::Operation.new.tap do |o|
1374
+ o.name = "CreateCapacityReservation"
1375
+ o.http_method = "POST"
1376
+ o.http_request_uri = "/"
1377
+ o.input = Shapes::ShapeRef.new(shape: CreateCapacityReservationInput)
1378
+ o.output = Shapes::ShapeRef.new(shape: CreateCapacityReservationOutput)
1379
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1380
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1381
+ end)
1382
+
1263
1383
  api.add_operation(:create_data_catalog, Seahorse::Model::Operation.new.tap do |o|
1264
1384
  o.name = "CreateDataCatalog"
1265
1385
  o.http_method = "POST"
@@ -1418,6 +1538,26 @@ module Aws::Athena
1418
1538
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1419
1539
  end)
1420
1540
 
1541
+ api.add_operation(:get_capacity_assignment_configuration, Seahorse::Model::Operation.new.tap do |o|
1542
+ o.name = "GetCapacityAssignmentConfiguration"
1543
+ o.http_method = "POST"
1544
+ o.http_request_uri = "/"
1545
+ o.input = Shapes::ShapeRef.new(shape: GetCapacityAssignmentConfigurationInput)
1546
+ o.output = Shapes::ShapeRef.new(shape: GetCapacityAssignmentConfigurationOutput)
1547
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1548
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1549
+ end)
1550
+
1551
+ api.add_operation(:get_capacity_reservation, Seahorse::Model::Operation.new.tap do |o|
1552
+ o.name = "GetCapacityReservation"
1553
+ o.http_method = "POST"
1554
+ o.http_request_uri = "/"
1555
+ o.input = Shapes::ShapeRef.new(shape: GetCapacityReservationInput)
1556
+ o.output = Shapes::ShapeRef.new(shape: GetCapacityReservationOutput)
1557
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1558
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1559
+ end)
1560
+
1421
1561
  api.add_operation(:get_data_catalog, Seahorse::Model::Operation.new.tap do |o|
1422
1562
  o.name = "GetDataCatalog"
1423
1563
  o.http_method = "POST"
@@ -1596,6 +1736,22 @@ module Aws::Athena
1596
1736
  )
1597
1737
  end)
1598
1738
 
1739
+ api.add_operation(:list_capacity_reservations, Seahorse::Model::Operation.new.tap do |o|
1740
+ o.name = "ListCapacityReservations"
1741
+ o.http_method = "POST"
1742
+ o.http_request_uri = "/"
1743
+ o.input = Shapes::ShapeRef.new(shape: ListCapacityReservationsInput)
1744
+ o.output = Shapes::ShapeRef.new(shape: ListCapacityReservationsOutput)
1745
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1746
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1747
+ o[:pager] = Aws::Pager.new(
1748
+ limit_key: "max_results",
1749
+ tokens: {
1750
+ "next_token" => "next_token"
1751
+ }
1752
+ )
1753
+ end)
1754
+
1599
1755
  api.add_operation(:list_data_catalogs, Seahorse::Model::Operation.new.tap do |o|
1600
1756
  o.name = "ListDataCatalogs"
1601
1757
  o.http_method = "POST"
@@ -1799,6 +1955,16 @@ module Aws::Athena
1799
1955
  )
1800
1956
  end)
1801
1957
 
1958
+ api.add_operation(:put_capacity_assignment_configuration, Seahorse::Model::Operation.new.tap do |o|
1959
+ o.name = "PutCapacityAssignmentConfiguration"
1960
+ o.http_method = "POST"
1961
+ o.http_request_uri = "/"
1962
+ o.input = Shapes::ShapeRef.new(shape: PutCapacityAssignmentConfigurationInput)
1963
+ o.output = Shapes::ShapeRef.new(shape: PutCapacityAssignmentConfigurationOutput)
1964
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1965
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
1966
+ end)
1967
+
1802
1968
  api.add_operation(:start_calculation_execution, Seahorse::Model::Operation.new.tap do |o|
1803
1969
  o.name = "StartCalculationExecution"
1804
1970
  o.http_method = "POST"
@@ -1888,6 +2054,16 @@ module Aws::Athena
1888
2054
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1889
2055
  end)
1890
2056
 
2057
+ api.add_operation(:update_capacity_reservation, Seahorse::Model::Operation.new.tap do |o|
2058
+ o.name = "UpdateCapacityReservation"
2059
+ o.http_method = "POST"
2060
+ o.http_request_uri = "/"
2061
+ o.input = Shapes::ShapeRef.new(shape: UpdateCapacityReservationInput)
2062
+ o.output = Shapes::ShapeRef.new(shape: UpdateCapacityReservationOutput)
2063
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
2064
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2065
+ end)
2066
+
1891
2067
  api.add_operation(:update_data_catalog, Seahorse::Model::Operation.new.tap do |o|
1892
2068
  o.name = "UpdateDataCatalog"
1893
2069
  o.http_method = "POST"
@@ -53,6 +53,34 @@ module Aws::Athena
53
53
  end
54
54
  end
55
55
 
56
+ class CancelCapacityReservation
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::Athena::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class CreateCapacityReservation
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::Athena::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
56
84
  class CreateDataCatalog
57
85
  def self.build(context)
58
86
  unless context.config.regional_endpoint
@@ -263,6 +291,34 @@ module Aws::Athena
263
291
  end
264
292
  end
265
293
 
294
+ class GetCapacityAssignmentConfiguration
295
+ def self.build(context)
296
+ unless context.config.regional_endpoint
297
+ endpoint = context.config.endpoint.to_s
298
+ end
299
+ Aws::Athena::EndpointParameters.new(
300
+ region: context.config.region,
301
+ use_dual_stack: context.config.use_dualstack_endpoint,
302
+ use_fips: context.config.use_fips_endpoint,
303
+ endpoint: endpoint,
304
+ )
305
+ end
306
+ end
307
+
308
+ class GetCapacityReservation
309
+ def self.build(context)
310
+ unless context.config.regional_endpoint
311
+ endpoint = context.config.endpoint.to_s
312
+ end
313
+ Aws::Athena::EndpointParameters.new(
314
+ region: context.config.region,
315
+ use_dual_stack: context.config.use_dualstack_endpoint,
316
+ use_fips: context.config.use_fips_endpoint,
317
+ endpoint: endpoint,
318
+ )
319
+ end
320
+ end
321
+
266
322
  class GetDataCatalog
267
323
  def self.build(context)
268
324
  unless context.config.regional_endpoint
@@ -473,6 +529,20 @@ module Aws::Athena
473
529
  end
474
530
  end
475
531
 
532
+ class ListCapacityReservations
533
+ def self.build(context)
534
+ unless context.config.regional_endpoint
535
+ endpoint = context.config.endpoint.to_s
536
+ end
537
+ Aws::Athena::EndpointParameters.new(
538
+ region: context.config.region,
539
+ use_dual_stack: context.config.use_dualstack_endpoint,
540
+ use_fips: context.config.use_fips_endpoint,
541
+ endpoint: endpoint,
542
+ )
543
+ end
544
+ end
545
+
476
546
  class ListDataCatalogs
477
547
  def self.build(context)
478
548
  unless context.config.regional_endpoint
@@ -655,6 +725,20 @@ module Aws::Athena
655
725
  end
656
726
  end
657
727
 
728
+ class PutCapacityAssignmentConfiguration
729
+ def self.build(context)
730
+ unless context.config.regional_endpoint
731
+ endpoint = context.config.endpoint.to_s
732
+ end
733
+ Aws::Athena::EndpointParameters.new(
734
+ region: context.config.region,
735
+ use_dual_stack: context.config.use_dualstack_endpoint,
736
+ use_fips: context.config.use_fips_endpoint,
737
+ endpoint: endpoint,
738
+ )
739
+ end
740
+ end
741
+
658
742
  class StartCalculationExecution
659
743
  def self.build(context)
660
744
  unless context.config.regional_endpoint
@@ -767,6 +851,20 @@ module Aws::Athena
767
851
  end
768
852
  end
769
853
 
854
+ class UpdateCapacityReservation
855
+ def self.build(context)
856
+ unless context.config.regional_endpoint
857
+ endpoint = context.config.endpoint.to_s
858
+ end
859
+ Aws::Athena::EndpointParameters.new(
860
+ region: context.config.region,
861
+ use_dual_stack: context.config.use_dualstack_endpoint,
862
+ use_fips: context.config.use_fips_endpoint,
863
+ endpoint: endpoint,
864
+ )
865
+ end
866
+ end
867
+
770
868
  class UpdateDataCatalog
771
869
  def self.build(context)
772
870
  unless context.config.regional_endpoint
@@ -62,6 +62,10 @@ module Aws::Athena
62
62
  Aws::Athena::Endpoints::BatchGetPreparedStatement.build(context)
63
63
  when :batch_get_query_execution
64
64
  Aws::Athena::Endpoints::BatchGetQueryExecution.build(context)
65
+ when :cancel_capacity_reservation
66
+ Aws::Athena::Endpoints::CancelCapacityReservation.build(context)
67
+ when :create_capacity_reservation
68
+ Aws::Athena::Endpoints::CreateCapacityReservation.build(context)
65
69
  when :create_data_catalog
66
70
  Aws::Athena::Endpoints::CreateDataCatalog.build(context)
67
71
  when :create_named_query
@@ -92,6 +96,10 @@ module Aws::Athena
92
96
  Aws::Athena::Endpoints::GetCalculationExecutionCode.build(context)
93
97
  when :get_calculation_execution_status
94
98
  Aws::Athena::Endpoints::GetCalculationExecutionStatus.build(context)
99
+ when :get_capacity_assignment_configuration
100
+ Aws::Athena::Endpoints::GetCapacityAssignmentConfiguration.build(context)
101
+ when :get_capacity_reservation
102
+ Aws::Athena::Endpoints::GetCapacityReservation.build(context)
95
103
  when :get_data_catalog
96
104
  Aws::Athena::Endpoints::GetDataCatalog.build(context)
97
105
  when :get_database
@@ -122,6 +130,8 @@ module Aws::Athena
122
130
  Aws::Athena::Endpoints::ListApplicationDPUSizes.build(context)
123
131
  when :list_calculation_executions
124
132
  Aws::Athena::Endpoints::ListCalculationExecutions.build(context)
133
+ when :list_capacity_reservations
134
+ Aws::Athena::Endpoints::ListCapacityReservations.build(context)
125
135
  when :list_data_catalogs
126
136
  Aws::Athena::Endpoints::ListDataCatalogs.build(context)
127
137
  when :list_databases
@@ -148,6 +158,8 @@ module Aws::Athena
148
158
  Aws::Athena::Endpoints::ListTagsForResource.build(context)
149
159
  when :list_work_groups
150
160
  Aws::Athena::Endpoints::ListWorkGroups.build(context)
161
+ when :put_capacity_assignment_configuration
162
+ Aws::Athena::Endpoints::PutCapacityAssignmentConfiguration.build(context)
151
163
  when :start_calculation_execution
152
164
  Aws::Athena::Endpoints::StartCalculationExecution.build(context)
153
165
  when :start_query_execution
@@ -164,6 +176,8 @@ module Aws::Athena
164
176
  Aws::Athena::Endpoints::TerminateSession.build(context)
165
177
  when :untag_resource
166
178
  Aws::Athena::Endpoints::UntagResource.build(context)
179
+ when :update_capacity_reservation
180
+ Aws::Athena::Endpoints::UpdateCapacityReservation.build(context)
167
181
  when :update_data_catalog
168
182
  Aws::Athena::Endpoints::UpdateDataCatalog.build(context)
169
183
  when :update_named_query