@aws-sdk/client-dsql 3.974.0 → 3.978.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.
package/dist-cjs/index.js CHANGED
@@ -692,24 +692,6 @@ class UpdateClusterCommand extends smithyClient.Command
692
692
  .build() {
693
693
  }
694
694
 
695
- const commands = {
696
- CreateClusterCommand,
697
- DeleteClusterCommand,
698
- DeleteClusterPolicyCommand,
699
- GetClusterCommand,
700
- GetClusterPolicyCommand,
701
- GetVpcEndpointServiceNameCommand,
702
- ListClustersCommand,
703
- ListTagsForResourceCommand,
704
- PutClusterPolicyCommand,
705
- TagResourceCommand,
706
- UntagResourceCommand,
707
- UpdateClusterCommand,
708
- };
709
- class DSQL extends DSQLClient {
710
- }
711
- smithyClient.createAggregatedClient(commands, DSQL);
712
-
713
695
  const paginateListClusters = core.createPaginator(DSQLClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
714
696
 
715
697
  const checkState$1 = async (client, input) => {
@@ -766,6 +748,31 @@ const waitUntilClusterNotExists = async (params, input) => {
766
748
  return utilWaiter.checkExceptions(result);
767
749
  };
768
750
 
751
+ const commands = {
752
+ CreateClusterCommand,
753
+ DeleteClusterCommand,
754
+ DeleteClusterPolicyCommand,
755
+ GetClusterCommand,
756
+ GetClusterPolicyCommand,
757
+ GetVpcEndpointServiceNameCommand,
758
+ ListClustersCommand,
759
+ ListTagsForResourceCommand,
760
+ PutClusterPolicyCommand,
761
+ TagResourceCommand,
762
+ UntagResourceCommand,
763
+ UpdateClusterCommand,
764
+ };
765
+ const paginators = {
766
+ paginateListClusters,
767
+ };
768
+ const waiters = {
769
+ waitUntilClusterActive,
770
+ waitUntilClusterNotExists,
771
+ };
772
+ class DSQL extends DSQLClient {
773
+ }
774
+ smithyClient.createAggregatedClient(commands, DSQL, { paginators, waiters });
775
+
769
776
  const ClusterStatus = {
770
777
  ACTIVE: "ACTIVE",
771
778
  CREATING: "CREATING",
package/dist-es/DSQL.js CHANGED
@@ -12,6 +12,9 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
12
12
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
13
13
  import { UpdateClusterCommand, } from "./commands/UpdateClusterCommand";
14
14
  import { DSQLClient } from "./DSQLClient";
15
+ import { paginateListClusters } from "./pagination/ListClustersPaginator";
16
+ import { waitUntilClusterActive } from "./waiters/waitForClusterActive";
17
+ import { waitUntilClusterNotExists } from "./waiters/waitForClusterNotExists";
15
18
  const commands = {
16
19
  CreateClusterCommand,
17
20
  DeleteClusterCommand,
@@ -26,6 +29,13 @@ const commands = {
26
29
  UntagResourceCommand,
27
30
  UpdateClusterCommand,
28
31
  };
32
+ const paginators = {
33
+ paginateListClusters,
34
+ };
35
+ const waiters = {
36
+ waitUntilClusterActive,
37
+ waitUntilClusterNotExists,
38
+ };
29
39
  export class DSQL extends DSQLClient {
30
40
  }
31
- createAggregatedClient(commands, DSQL);
41
+ createAggregatedClient(commands, DSQL, { paginators, waiters });
@@ -1,4 +1,5 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
2
3
  import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
3
4
  import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
4
5
  import { DeleteClusterPolicyCommandInput, DeleteClusterPolicyCommandOutput } from "./commands/DeleteClusterPolicyCommand";
@@ -87,6 +88,25 @@ export interface DSQL {
87
88
  updateCluster(args: UpdateClusterCommandInput, options?: __HttpHandlerOptions): Promise<UpdateClusterCommandOutput>;
88
89
  updateCluster(args: UpdateClusterCommandInput, cb: (err: any, data?: UpdateClusterCommandOutput) => void): void;
89
90
  updateCluster(args: UpdateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateClusterCommandOutput) => void): void;
91
+ /**
92
+ * @see {@link ListClustersCommand}
93
+ * @param args - command input.
94
+ * @param paginationConfig - optional pagination config.
95
+ * @returns AsyncIterable of {@link ListClustersCommandOutput}.
96
+ */
97
+ paginateListClusters(args?: ListClustersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListClustersCommandOutput>;
98
+ /**
99
+ * @see {@link GetClusterCommand}
100
+ * @param args - command input.
101
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
102
+ */
103
+ waitUntilClusterActive(args: GetClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DSQL>, "client">): Promise<WaiterResult>;
104
+ /**
105
+ * @see {@link GetClusterCommand}
106
+ * @param args - command input.
107
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
108
+ */
109
+ waitUntilClusterNotExists(args: GetClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DSQL>, "client">): Promise<WaiterResult>;
90
110
  }
91
111
  /**
92
112
  * <p>This is an interface reference for Amazon Aurora DSQL. It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Aurora DSQL.</p> <p>Amazon Aurora DSQL is a serverless, distributed SQL database suitable for workloads of any size. is available in both single-Region and multi-Region configurations, so your clusters and databases are always available even if an Availability Zone or an Amazon Web Services Region are unavailable. lets you focus on using your data to acquire new insights for your business and customers.</p>
@@ -1,4 +1,10 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ WaiterConfiguration,
6
+ } from "@smithy/types";
7
+ import { WaiterResult } from "@smithy/util-waiter";
2
8
  import {
3
9
  CreateClusterCommandInput,
4
10
  CreateClusterCommandOutput,
@@ -207,5 +213,30 @@ export interface DSQL {
207
213
  options: __HttpHandlerOptions,
208
214
  cb: (err: any, data?: UpdateClusterCommandOutput) => void
209
215
  ): void;
216
+ paginateListClusters(
217
+ args?: ListClustersCommandInput,
218
+ paginationConfig?: Pick<
219
+ PaginationConfiguration,
220
+ Exclude<keyof PaginationConfiguration, "client">
221
+ >
222
+ ): Paginator<ListClustersCommandOutput>;
223
+ waitUntilClusterActive(
224
+ args: GetClusterCommandInput,
225
+ waiterConfig:
226
+ | number
227
+ | Pick<
228
+ WaiterConfiguration<DSQL>,
229
+ Exclude<keyof WaiterConfiguration<DSQL>, "client">
230
+ >
231
+ ): Promise<WaiterResult>;
232
+ waitUntilClusterNotExists(
233
+ args: GetClusterCommandInput,
234
+ waiterConfig:
235
+ | number
236
+ | Pick<
237
+ WaiterConfiguration<DSQL>,
238
+ Exclude<keyof WaiterConfiguration<DSQL>, "client">
239
+ >
240
+ ): Promise<WaiterResult>;
210
241
  }
211
242
  export declare class DSQL extends DSQLClient implements DSQL {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dsql",
3
3
  "description": "AWS SDK for JavaScript Dsql Client for Node.js, Browser and React Native",
4
- "version": "3.974.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-dsql",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.0",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.1",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.0",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.10",
42
- "@smithy/middleware-retry": "^4.4.26",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.11",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.25",
55
- "@smithy/util-defaults-mode-node": "^4.2.28",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",