@aws-sdk/client-athena 3.321.1 → 3.323.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.
Files changed (59) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/Athena.js +14 -0
  3. package/dist-cjs/commands/CancelCapacityReservationCommand.js +45 -0
  4. package/dist-cjs/commands/CreateCapacityReservationCommand.js +45 -0
  5. package/dist-cjs/commands/GetCapacityAssignmentConfigurationCommand.js +45 -0
  6. package/dist-cjs/commands/GetCapacityReservationCommand.js +45 -0
  7. package/dist-cjs/commands/ListCapacityReservationsCommand.js +45 -0
  8. package/dist-cjs/commands/PutCapacityAssignmentConfigurationCommand.js +45 -0
  9. package/dist-cjs/commands/UpdateCapacityReservationCommand.js +45 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/models/models_0.js +14 -1
  12. package/dist-cjs/pagination/ListCapacityReservationsPaginator.js +29 -0
  13. package/dist-cjs/pagination/index.js +1 -0
  14. package/dist-cjs/protocols/Aws_json1_1.js +342 -3
  15. package/dist-es/Athena.js +14 -0
  16. package/dist-es/commands/CancelCapacityReservationCommand.js +41 -0
  17. package/dist-es/commands/CreateCapacityReservationCommand.js +41 -0
  18. package/dist-es/commands/GetCapacityAssignmentConfigurationCommand.js +41 -0
  19. package/dist-es/commands/GetCapacityReservationCommand.js +41 -0
  20. package/dist-es/commands/ListCapacityReservationsCommand.js +41 -0
  21. package/dist-es/commands/PutCapacityAssignmentConfigurationCommand.js +41 -0
  22. package/dist-es/commands/UpdateCapacityReservationCommand.js +41 -0
  23. package/dist-es/commands/index.js +7 -0
  24. package/dist-es/models/models_0.js +13 -0
  25. package/dist-es/pagination/ListCapacityReservationsPaginator.js +25 -0
  26. package/dist-es/pagination/index.js +1 -0
  27. package/dist-es/protocols/Aws_json1_1.js +326 -1
  28. package/dist-types/Athena.d.ts +49 -0
  29. package/dist-types/AthenaClient.d.ts +9 -2
  30. package/dist-types/commands/CancelCapacityReservationCommand.d.ts +71 -0
  31. package/dist-types/commands/CreateCapacityReservationCommand.d.ts +78 -0
  32. package/dist-types/commands/GetCapacityAssignmentConfigurationCommand.d.ts +71 -0
  33. package/dist-types/commands/GetCapacityReservationCommand.d.ts +71 -0
  34. package/dist-types/commands/ListCapacityReservationsCommand.d.ts +72 -0
  35. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -2
  36. package/dist-types/commands/PutCapacityAssignmentConfigurationCommand.d.ts +78 -0
  37. package/dist-types/commands/TagResourceCommand.d.ts +3 -5
  38. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  39. package/dist-types/commands/UpdateCapacityReservationCommand.d.ts +72 -0
  40. package/dist-types/commands/index.d.ts +7 -0
  41. package/dist-types/models/models_0.d.ts +254 -8
  42. package/dist-types/pagination/ListCapacityReservationsPaginator.d.ts +7 -0
  43. package/dist-types/pagination/index.d.ts +1 -0
  44. package/dist-types/protocols/Aws_json1_1.d.ts +63 -0
  45. package/dist-types/ts3.4/Athena.d.ts +131 -0
  46. package/dist-types/ts3.4/AthenaClient.d.ts +42 -0
  47. package/dist-types/ts3.4/commands/CancelCapacityReservationCommand.d.ts +41 -0
  48. package/dist-types/ts3.4/commands/CreateCapacityReservationCommand.d.ts +41 -0
  49. package/dist-types/ts3.4/commands/GetCapacityAssignmentConfigurationCommand.d.ts +41 -0
  50. package/dist-types/ts3.4/commands/GetCapacityReservationCommand.d.ts +41 -0
  51. package/dist-types/ts3.4/commands/ListCapacityReservationsCommand.d.ts +41 -0
  52. package/dist-types/ts3.4/commands/PutCapacityAssignmentConfigurationCommand.d.ts +41 -0
  53. package/dist-types/ts3.4/commands/UpdateCapacityReservationCommand.d.ts +41 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +7 -0
  55. package/dist-types/ts3.4/models/models_0.d.ts +79 -0
  56. package/dist-types/ts3.4/pagination/ListCapacityReservationsPaginator.d.ts +11 -0
  57. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  58. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +84 -0
  59. package/package.json +1 -1
@@ -0,0 +1,78 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AthenaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AthenaClient";
5
+ import { PutCapacityAssignmentConfigurationInput, PutCapacityAssignmentConfigurationOutput } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link PutCapacityAssignmentConfigurationCommand}.
10
+ */
11
+ export interface PutCapacityAssignmentConfigurationCommandInput extends PutCapacityAssignmentConfigurationInput {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link PutCapacityAssignmentConfigurationCommand}.
17
+ */
18
+ export interface PutCapacityAssignmentConfigurationCommandOutput extends PutCapacityAssignmentConfigurationOutput, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Puts a new capacity assignment configuration for a specified capacity reservation. If a capacity assignment configuration already exists for the capacity reservation, replaces the existing capacity assignment configuration.</p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { AthenaClient, PutCapacityAssignmentConfigurationCommand } from "@aws-sdk/client-athena"; // ES Modules import
27
+ * // const { AthenaClient, PutCapacityAssignmentConfigurationCommand } = require("@aws-sdk/client-athena"); // CommonJS import
28
+ * const client = new AthenaClient(config);
29
+ * const input = { // PutCapacityAssignmentConfigurationInput
30
+ * CapacityReservationName: "STRING_VALUE", // required
31
+ * CapacityAssignments: [ // CapacityAssignmentsList // required
32
+ * { // CapacityAssignment
33
+ * WorkGroupNames: [ // WorkGroupNamesList
34
+ * "STRING_VALUE",
35
+ * ],
36
+ * },
37
+ * ],
38
+ * };
39
+ * const command = new PutCapacityAssignmentConfigurationCommand(input);
40
+ * const response = await client.send(command);
41
+ * ```
42
+ *
43
+ * @param PutCapacityAssignmentConfigurationCommandInput - {@link PutCapacityAssignmentConfigurationCommandInput}
44
+ * @returns {@link PutCapacityAssignmentConfigurationCommandOutput}
45
+ * @see {@link PutCapacityAssignmentConfigurationCommandInput} for command's `input` shape.
46
+ * @see {@link PutCapacityAssignmentConfigurationCommandOutput} for command's `response` shape.
47
+ * @see {@link AthenaClientResolvedConfig | config} for AthenaClient's `config` shape.
48
+ *
49
+ * @throws {@link InternalServerException} (server fault)
50
+ * <p>Indicates a platform issue, which may be due to a transient condition or
51
+ * outage.</p>
52
+ *
53
+ * @throws {@link InvalidRequestException} (client fault)
54
+ * <p>Indicates that something is wrong with the input to the request. For example, a
55
+ * required parameter may be missing or out of range.</p>
56
+ *
57
+ *
58
+ */
59
+ export declare class PutCapacityAssignmentConfigurationCommand extends $Command<PutCapacityAssignmentConfigurationCommandInput, PutCapacityAssignmentConfigurationCommandOutput, AthenaClientResolvedConfig> {
60
+ readonly input: PutCapacityAssignmentConfigurationCommandInput;
61
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
62
+ /**
63
+ * @public
64
+ */
65
+ constructor(input: PutCapacityAssignmentConfigurationCommandInput);
66
+ /**
67
+ * @internal
68
+ */
69
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutCapacityAssignmentConfigurationCommandInput, PutCapacityAssignmentConfigurationCommandOutput>;
70
+ /**
71
+ * @internal
72
+ */
73
+ private serialize;
74
+ /**
75
+ * @internal
76
+ */
77
+ private deserialize;
78
+ }
@@ -20,11 +20,9 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
20
20
  /**
21
21
  * @public
22
22
  * <p>Adds one or more tags to an Athena resource. A tag is a label that you
23
- * assign to a resource. In Athena, a resource can be a workgroup or data
24
- * catalog. Each tag consists of a key and an optional value, both of which you define. For
25
- * example, you can use tags to categorize Athena workgroups or data catalogs
26
- * by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to
27
- * search and filter workgroups or data catalogs in your account. For best practices, see
23
+ * assign to a resource. Each tag consists of a key and an optional value, both of which you define. For
24
+ * example, you can use tags to categorize Athena workgroups, data catalogs, or capacity reservations by purpose, owner, or environment. Use a consistent set of tag keys to make it easier to
25
+ * search and filter the resources in your account. For best practices, see
28
26
  * <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode
29
27
  * characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags can use
30
28
  * letters and numbers representable in UTF-8, and the following characters: + - = . _ : /
@@ -19,7 +19,7 @@ export interface UntagResourceCommandOutput extends UntagResourceOutput, __Metad
19
19
  }
20
20
  /**
21
21
  * @public
22
- * <p>Removes one or more tags from a data catalog or workgroup resource.</p>
22
+ * <p>Removes one or more tags from an Athena resource.</p>
23
23
  * @example
24
24
  * Use a bare-bones client and the command you need to make an API call.
25
25
  * ```javascript
@@ -0,0 +1,72 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AthenaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AthenaClient";
5
+ import { UpdateCapacityReservationInput, UpdateCapacityReservationOutput } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ *
9
+ * The input for {@link UpdateCapacityReservationCommand}.
10
+ */
11
+ export interface UpdateCapacityReservationCommandInput extends UpdateCapacityReservationInput {
12
+ }
13
+ /**
14
+ * @public
15
+ *
16
+ * The output of {@link UpdateCapacityReservationCommand}.
17
+ */
18
+ export interface UpdateCapacityReservationCommandOutput extends UpdateCapacityReservationOutput, __MetadataBearer {
19
+ }
20
+ /**
21
+ * @public
22
+ * <p>Updates the number of requested data processing units for the capacity reservation with the specified name.</p>
23
+ * @example
24
+ * Use a bare-bones client and the command you need to make an API call.
25
+ * ```javascript
26
+ * import { AthenaClient, UpdateCapacityReservationCommand } from "@aws-sdk/client-athena"; // ES Modules import
27
+ * // const { AthenaClient, UpdateCapacityReservationCommand } = require("@aws-sdk/client-athena"); // CommonJS import
28
+ * const client = new AthenaClient(config);
29
+ * const input = { // UpdateCapacityReservationInput
30
+ * TargetDpus: Number("int"), // required
31
+ * Name: "STRING_VALUE", // required
32
+ * };
33
+ * const command = new UpdateCapacityReservationCommand(input);
34
+ * const response = await client.send(command);
35
+ * ```
36
+ *
37
+ * @param UpdateCapacityReservationCommandInput - {@link UpdateCapacityReservationCommandInput}
38
+ * @returns {@link UpdateCapacityReservationCommandOutput}
39
+ * @see {@link UpdateCapacityReservationCommandInput} for command's `input` shape.
40
+ * @see {@link UpdateCapacityReservationCommandOutput} for command's `response` shape.
41
+ * @see {@link AthenaClientResolvedConfig | config} for AthenaClient's `config` shape.
42
+ *
43
+ * @throws {@link InternalServerException} (server fault)
44
+ * <p>Indicates a platform issue, which may be due to a transient condition or
45
+ * outage.</p>
46
+ *
47
+ * @throws {@link InvalidRequestException} (client fault)
48
+ * <p>Indicates that something is wrong with the input to the request. For example, a
49
+ * required parameter may be missing or out of range.</p>
50
+ *
51
+ *
52
+ */
53
+ export declare class UpdateCapacityReservationCommand extends $Command<UpdateCapacityReservationCommandInput, UpdateCapacityReservationCommandOutput, AthenaClientResolvedConfig> {
54
+ readonly input: UpdateCapacityReservationCommandInput;
55
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
56
+ /**
57
+ * @public
58
+ */
59
+ constructor(input: UpdateCapacityReservationCommandInput);
60
+ /**
61
+ * @internal
62
+ */
63
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AthenaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateCapacityReservationCommandInput, UpdateCapacityReservationCommandOutput>;
64
+ /**
65
+ * @internal
66
+ */
67
+ private serialize;
68
+ /**
69
+ * @internal
70
+ */
71
+ private deserialize;
72
+ }
@@ -1,6 +1,8 @@
1
1
  export * from "./BatchGetNamedQueryCommand";
2
2
  export * from "./BatchGetPreparedStatementCommand";
3
3
  export * from "./BatchGetQueryExecutionCommand";
4
+ export * from "./CancelCapacityReservationCommand";
5
+ export * from "./CreateCapacityReservationCommand";
4
6
  export * from "./CreateDataCatalogCommand";
5
7
  export * from "./CreateNamedQueryCommand";
6
8
  export * from "./CreateNotebookCommand";
@@ -16,6 +18,8 @@ export * from "./ExportNotebookCommand";
16
18
  export * from "./GetCalculationExecutionCodeCommand";
17
19
  export * from "./GetCalculationExecutionCommand";
18
20
  export * from "./GetCalculationExecutionStatusCommand";
21
+ export * from "./GetCapacityAssignmentConfigurationCommand";
22
+ export * from "./GetCapacityReservationCommand";
19
23
  export * from "./GetDataCatalogCommand";
20
24
  export * from "./GetDatabaseCommand";
21
25
  export * from "./GetNamedQueryCommand";
@@ -31,6 +35,7 @@ export * from "./GetWorkGroupCommand";
31
35
  export * from "./ImportNotebookCommand";
32
36
  export * from "./ListApplicationDPUSizesCommand";
33
37
  export * from "./ListCalculationExecutionsCommand";
38
+ export * from "./ListCapacityReservationsCommand";
34
39
  export * from "./ListDataCatalogsCommand";
35
40
  export * from "./ListDatabasesCommand";
36
41
  export * from "./ListEngineVersionsCommand";
@@ -44,6 +49,7 @@ export * from "./ListSessionsCommand";
44
49
  export * from "./ListTableMetadataCommand";
45
50
  export * from "./ListTagsForResourceCommand";
46
51
  export * from "./ListWorkGroupsCommand";
52
+ export * from "./PutCapacityAssignmentConfigurationCommand";
47
53
  export * from "./StartCalculationExecutionCommand";
48
54
  export * from "./StartQueryExecutionCommand";
49
55
  export * from "./StartSessionCommand";
@@ -52,6 +58,7 @@ export * from "./StopQueryExecutionCommand";
52
58
  export * from "./TagResourceCommand";
53
59
  export * from "./TerminateSessionCommand";
54
60
  export * from "./UntagResourceCommand";
61
+ export * from "./UpdateCapacityReservationCommand";
55
62
  export * from "./UpdateDataCatalogCommand";
56
63
  export * from "./UpdateNamedQueryCommand";
57
64
  export * from "./UpdateNotebookCommand";
@@ -650,11 +650,25 @@ export interface BatchGetQueryExecutionOutput {
650
650
  }
651
651
  /**
652
652
  * @public
653
- * <p>A label that you assign to a resource. In Athena, a resource can be a
654
- * workgroup or data catalog. Each tag consists of a key and an optional value, both of
653
+ */
654
+ export interface CancelCapacityReservationInput {
655
+ /**
656
+ * <p>The name of the capacity reservation to cancel.</p>
657
+ */
658
+ Name: string | undefined;
659
+ }
660
+ /**
661
+ * @public
662
+ */
663
+ export interface CancelCapacityReservationOutput {
664
+ }
665
+ /**
666
+ * @public
667
+ * <p>A label that you assign to a resource. Athena resources include
668
+ * workgroups, data catalogs, and capacity reservations. Each tag consists of a key and an optional value, both of
655
669
  * which you define. For example, you can use tags to categorize Athena
656
- * workgroups or data catalogs by purpose, owner, or environment. Use a consistent set of
657
- * tag keys to make it easier to search and filter workgroups or data catalogs in your
670
+ * resources by purpose, owner, or environment. Use a consistent set of
671
+ * tag keys to make it easier to search and filter the resources in your
658
672
  * account. For best practices, see <a href="https://docs.aws.amazon.com/whitepapers/latest/tagging-best-practices/tagging-best-practices.html">Tagging Best Practices</a>. Tag keys can be from 1 to 128 UTF-8 Unicode
659
673
  * characters, and tag values can be from 0 to 256 UTF-8 Unicode characters. Tags can use
660
674
  * letters and numbers representable in UTF-8, and the following characters: + - = . _ : /
@@ -675,6 +689,28 @@ export interface Tag {
675
689
  */
676
690
  Value?: string;
677
691
  }
692
+ /**
693
+ * @public
694
+ */
695
+ export interface CreateCapacityReservationInput {
696
+ /**
697
+ * <p>The number of requested data processing units.</p>
698
+ */
699
+ TargetDpus: number | undefined;
700
+ /**
701
+ * <p>The name of the capacity reservation to create.</p>
702
+ */
703
+ Name: string | undefined;
704
+ /**
705
+ * <p>The tags for the capacity reservation.</p>
706
+ */
707
+ Tags?: Tag[];
708
+ }
709
+ /**
710
+ * @public
711
+ */
712
+ export interface CreateCapacityReservationOutput {
713
+ }
678
714
  /**
679
715
  * @public
680
716
  * @enum
@@ -1407,6 +1443,151 @@ export interface GetCalculationExecutionStatusResponse {
1407
1443
  */
1408
1444
  Statistics?: CalculationStatistics;
1409
1445
  }
1446
+ /**
1447
+ * @public
1448
+ */
1449
+ export interface GetCapacityAssignmentConfigurationInput {
1450
+ /**
1451
+ * <p>The name of the capacity reservation to retrieve the capacity assignment configuration for.</p>
1452
+ */
1453
+ CapacityReservationName: string | undefined;
1454
+ }
1455
+ /**
1456
+ * @public
1457
+ * <p>A mapping between one or more workgroups and a capacity reservation.</p>
1458
+ */
1459
+ export interface CapacityAssignment {
1460
+ /**
1461
+ * <p>The list of workgroup names for the capacity assignment.</p>
1462
+ */
1463
+ WorkGroupNames?: string[];
1464
+ }
1465
+ /**
1466
+ * @public
1467
+ * <p>Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.</p>
1468
+ */
1469
+ export interface CapacityAssignmentConfiguration {
1470
+ /**
1471
+ * <p>The name of the reservation that the capacity assignment configuration is for.</p>
1472
+ */
1473
+ CapacityReservationName?: string;
1474
+ /**
1475
+ * <p>The list of assignments that make up the capacity assignment configuration.</p>
1476
+ */
1477
+ CapacityAssignments?: CapacityAssignment[];
1478
+ }
1479
+ /**
1480
+ * @public
1481
+ */
1482
+ export interface GetCapacityAssignmentConfigurationOutput {
1483
+ /**
1484
+ * <p>The requested capacity assignment configuration for the specified capacity reservation.</p>
1485
+ */
1486
+ CapacityAssignmentConfiguration: CapacityAssignmentConfiguration | undefined;
1487
+ }
1488
+ /**
1489
+ * @public
1490
+ */
1491
+ export interface GetCapacityReservationInput {
1492
+ /**
1493
+ * <p>The name of the capacity reservation.</p>
1494
+ */
1495
+ Name: string | undefined;
1496
+ }
1497
+ /**
1498
+ * @public
1499
+ * @enum
1500
+ */
1501
+ export declare const CapacityAllocationStatus: {
1502
+ readonly FAILED: "FAILED";
1503
+ readonly PENDING: "PENDING";
1504
+ readonly SUCCEEDED: "SUCCEEDED";
1505
+ };
1506
+ /**
1507
+ * @public
1508
+ */
1509
+ export type CapacityAllocationStatus = (typeof CapacityAllocationStatus)[keyof typeof CapacityAllocationStatus];
1510
+ /**
1511
+ * @public
1512
+ * <p>Contains the submission time of a single allocation request for a capacity reservation and the most recent status of the attempted allocation.</p>
1513
+ */
1514
+ export interface CapacityAllocation {
1515
+ /**
1516
+ * <p>The status of the capacity allocation.</p>
1517
+ */
1518
+ Status: CapacityAllocationStatus | string | undefined;
1519
+ /**
1520
+ * <p>The status message of the capacity allocation.</p>
1521
+ */
1522
+ StatusMessage?: string;
1523
+ /**
1524
+ * <p>The time when the capacity allocation was requested.</p>
1525
+ */
1526
+ RequestTime: Date | undefined;
1527
+ /**
1528
+ * <p>The time when the capacity allocation request was completed.</p>
1529
+ */
1530
+ RequestCompletionTime?: Date;
1531
+ }
1532
+ /**
1533
+ * @public
1534
+ * @enum
1535
+ */
1536
+ export declare const CapacityReservationStatus: {
1537
+ readonly ACTIVE: "ACTIVE";
1538
+ readonly CANCELLED: "CANCELLED";
1539
+ readonly CANCELLING: "CANCELLING";
1540
+ readonly FAILED: "FAILED";
1541
+ readonly PENDING: "PENDING";
1542
+ readonly UPDATE_PENDING: "UPDATE_PENDING";
1543
+ };
1544
+ /**
1545
+ * @public
1546
+ */
1547
+ export type CapacityReservationStatus = (typeof CapacityReservationStatus)[keyof typeof CapacityReservationStatus];
1548
+ /**
1549
+ * @public
1550
+ * <p>A reservation for a specified number of data processing units (DPUs). When a reservation is initially created, it has no DPUs. Athena allocates DPUs until the allocated amount equals the requested amount.</p>
1551
+ */
1552
+ export interface CapacityReservation {
1553
+ /**
1554
+ * <p>The name of the capacity reservation.</p>
1555
+ */
1556
+ Name: string | undefined;
1557
+ /**
1558
+ * <p>The status of the capacity reservation.</p>
1559
+ */
1560
+ Status: CapacityReservationStatus | string | undefined;
1561
+ /**
1562
+ * <p>The number of data processing units requested.</p>
1563
+ */
1564
+ TargetDpus: number | undefined;
1565
+ /**
1566
+ * <p>The number of data processing units currently allocated.</p>
1567
+ */
1568
+ AllocatedDpus: number | undefined;
1569
+ /**
1570
+ * <p>Contains the submission time of a single allocation request for a capacity reservation and the most recent status of the attempted allocation.</p>
1571
+ */
1572
+ LastAllocation?: CapacityAllocation;
1573
+ /**
1574
+ * <p>The time of the most recent capacity allocation that succeeded.</p>
1575
+ */
1576
+ LastSuccessfulAllocationTime?: Date;
1577
+ /**
1578
+ * <p>The time in UTC epoch millis when the capacity reservation was created.</p>
1579
+ */
1580
+ CreationTime: Date | undefined;
1581
+ }
1582
+ /**
1583
+ * @public
1584
+ */
1585
+ export interface GetCapacityReservationOutput {
1586
+ /**
1587
+ * <p>The requested capacity reservation structure.</p>
1588
+ */
1589
+ CapacityReservation: CapacityReservation | undefined;
1590
+ }
1410
1591
  /**
1411
1592
  * @public
1412
1593
  */
@@ -1882,7 +2063,7 @@ export interface EngineConfiguration {
1882
2063
  /**
1883
2064
  * <p>The number of DPUs to use for the coordinator. A coordinator is a special executor
1884
2065
  * that orchestrates processing work and manages other executors in a notebook
1885
- * session.</p>
2066
+ * session. The default is 1.</p>
1886
2067
  */
1887
2068
  CoordinatorDpuSize?: number;
1888
2069
  /**
@@ -1891,7 +2072,7 @@ export interface EngineConfiguration {
1891
2072
  MaxConcurrentDpus: number | undefined;
1892
2073
  /**
1893
2074
  * <p>The default number of DPUs to use for executors. An executor is the smallest unit of
1894
- * compute that a notebook session can request from Athena.</p>
2075
+ * compute that a notebook session can request from Athena. The default is 1.</p>
1895
2076
  */
1896
2077
  DefaultExecutorDpuSize?: number;
1897
2078
  /**
@@ -2379,6 +2560,35 @@ export interface ListCalculationExecutionsResponse {
2379
2560
  */
2380
2561
  Calculations?: CalculationSummary[];
2381
2562
  }
2563
+ /**
2564
+ * @public
2565
+ */
2566
+ export interface ListCapacityReservationsInput {
2567
+ /**
2568
+ * <p>A token generated by the Athena service that specifies where to continue
2569
+ * pagination if a previous request was truncated.</p>
2570
+ */
2571
+ NextToken?: string;
2572
+ /**
2573
+ * <p>Specifies the maximum number of results to return.</p>
2574
+ */
2575
+ MaxResults?: number;
2576
+ }
2577
+ /**
2578
+ * @public
2579
+ */
2580
+ export interface ListCapacityReservationsOutput {
2581
+ /**
2582
+ * <p>A token generated by the Athena service that specifies where to continue
2583
+ * pagination if a previous request was truncated. To obtain the next set of pages, pass in
2584
+ * the NextToken from the response object of the previous page call.</p>
2585
+ */
2586
+ NextToken?: string;
2587
+ /**
2588
+ * <p>The capacity reservations for the current account.</p>
2589
+ */
2590
+ CapacityReservations: CapacityReservation[] | undefined;
2591
+ }
2382
2592
  /**
2383
2593
  * @public
2384
2594
  */
@@ -3052,6 +3262,24 @@ export interface ListWorkGroupsOutput {
3052
3262
  */
3053
3263
  NextToken?: string;
3054
3264
  }
3265
+ /**
3266
+ * @public
3267
+ */
3268
+ export interface PutCapacityAssignmentConfigurationInput {
3269
+ /**
3270
+ * <p>The name of the capacity reservation to put a capacity assignment configuration for.</p>
3271
+ */
3272
+ CapacityReservationName: string | undefined;
3273
+ /**
3274
+ * <p>The list of assignments for the capacity assignment configuration.</p>
3275
+ */
3276
+ CapacityAssignments: CapacityAssignment[] | undefined;
3277
+ }
3278
+ /**
3279
+ * @public
3280
+ */
3281
+ export interface PutCapacityAssignmentConfigurationOutput {
3282
+ }
3055
3283
  /**
3056
3284
  * @public
3057
3285
  * <p>Contains configuration information for the calculation.</p>
@@ -3322,12 +3550,12 @@ export interface StopQueryExecutionOutput {
3322
3550
  */
3323
3551
  export interface TagResourceInput {
3324
3552
  /**
3325
- * <p>Specifies the ARN of the Athena resource (workgroup or data catalog) to
3553
+ * <p>Specifies the ARN of the Athena resource to
3326
3554
  * which tags are to be added.</p>
3327
3555
  */
3328
3556
  ResourceARN: string | undefined;
3329
3557
  /**
3330
- * <p>A collection of one or more tags, separated by commas, to be added to an Athena workgroup or data catalog resource.</p>
3558
+ * <p>A collection of one or more tags, separated by commas, to be added to an Athena resource.</p>
3331
3559
  */
3332
3560
  Tags: Tag[] | undefined;
3333
3561
  }
@@ -3392,6 +3620,24 @@ export interface UntagResourceInput {
3392
3620
  */
3393
3621
  export interface UntagResourceOutput {
3394
3622
  }
3623
+ /**
3624
+ * @public
3625
+ */
3626
+ export interface UpdateCapacityReservationInput {
3627
+ /**
3628
+ * <p>The new number of requested data processing units.</p>
3629
+ */
3630
+ TargetDpus: number | undefined;
3631
+ /**
3632
+ * <p>The name of the capacity reservation.</p>
3633
+ */
3634
+ Name: string | undefined;
3635
+ }
3636
+ /**
3637
+ * @public
3638
+ */
3639
+ export interface UpdateCapacityReservationOutput {
3640
+ }
3395
3641
  /**
3396
3642
  * @public
3397
3643
  */
@@ -0,0 +1,7 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListCapacityReservationsCommandInput, ListCapacityReservationsCommandOutput } from "../commands/ListCapacityReservationsCommand";
3
+ import { AthenaPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare function paginateListCapacityReservations(config: AthenaPaginationConfiguration, input: ListCapacityReservationsCommandInput, ...additionalArguments: any): Paginator<ListCapacityReservationsCommandOutput>;
@@ -2,6 +2,7 @@ export * from "./GetQueryResultsPaginator";
2
2
  export * from "./Interfaces";
3
3
  export * from "./ListApplicationDPUSizesPaginator";
4
4
  export * from "./ListCalculationExecutionsPaginator";
5
+ export * from "./ListCapacityReservationsPaginator";
5
6
  export * from "./ListDataCatalogsPaginator";
6
7
  export * from "./ListDatabasesPaginator";
7
8
  export * from "./ListEngineVersionsPaginator";