@aws-sdk/client-dsql 3.1037.0 → 3.1038.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
@@ -296,7 +296,7 @@ const checkState = async (client, input) => {
296
296
  }
297
297
  catch (exception) {
298
298
  reason = exception;
299
- if (exception.name && exception.name == "ResourceNotFoundException") {
299
+ if (exception.name === "ResourceNotFoundException") {
300
300
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
301
301
  }
302
302
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { GetClusterCommand } from "../commands/GetClusterCommand";
2
+ import { GetClusterCommand, } from "../commands/GetClusterCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { GetClusterCommand } from "../commands/GetClusterCommand";
2
+ import { GetClusterCommand, } from "../commands/GetClusterCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -8,7 +8,7 @@ const checkState = async (client, input) => {
8
8
  }
9
9
  catch (exception) {
10
10
  reason = exception;
11
- if (exception.name && exception.name == "ResourceNotFoundException") {
11
+ if (exception.name === "ResourceNotFoundException") {
12
12
  return { state: WaiterState.SUCCESS, reason };
13
13
  }
14
14
  }
@@ -13,6 +13,7 @@ import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./c
13
13
  import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
14
14
  import { type UpdateClusterCommandInput, type UpdateClusterCommandOutput } from "./commands/UpdateClusterCommand";
15
15
  import { DSQLClient } from "./DSQLClient";
16
+ import type { ResourceNotFoundException } from "./models/errors";
16
17
  export interface DSQL {
17
18
  /**
18
19
  * @see {@link CreateClusterCommand}
@@ -100,13 +101,13 @@ export interface DSQL {
100
101
  * @param args - command input.
101
102
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
102
103
  */
103
- waitUntilClusterActive(args: GetClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DSQL>, "client">): Promise<WaiterResult>;
104
+ waitUntilClusterActive(args: GetClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DSQL>, "client">): Promise<WaiterResult<GetClusterCommandOutput>>;
104
105
  /**
105
106
  * @see {@link GetClusterCommand}
106
107
  * @param args - command input.
107
108
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
108
109
  */
109
- waitUntilClusterNotExists(args: GetClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DSQL>, "client">): Promise<WaiterResult>;
110
+ waitUntilClusterNotExists(args: GetClusterCommandInput, waiterConfig: number | Omit<WaiterConfiguration<DSQL>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
110
111
  }
111
112
  /**
112
113
  * <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>
@@ -54,6 +54,7 @@ import {
54
54
  UpdateClusterCommandOutput,
55
55
  } from "./commands/UpdateClusterCommand";
56
56
  import { DSQLClient } from "./DSQLClient";
57
+ import { ResourceNotFoundException } from "./models/errors";
57
58
  export interface DSQL {
58
59
  createCluster(): Promise<CreateClusterCommandOutput>;
59
60
  createCluster(
@@ -228,7 +229,7 @@ export interface DSQL {
228
229
  WaiterConfiguration<DSQL>,
229
230
  Exclude<keyof WaiterConfiguration<DSQL>, "client">
230
231
  >
231
- ): Promise<WaiterResult>;
232
+ ): Promise<WaiterResult<GetClusterCommandOutput>>;
232
233
  waitUntilClusterNotExists(
233
234
  args: GetClusterCommandInput,
234
235
  waiterConfig:
@@ -237,6 +238,6 @@ export interface DSQL {
237
238
  WaiterConfiguration<DSQL>,
238
239
  Exclude<keyof WaiterConfiguration<DSQL>, "client">
239
240
  >
240
- ): Promise<WaiterResult>;
241
+ ): Promise<WaiterResult<ResourceNotFoundException>>;
241
242
  }
242
243
  export declare class DSQL extends DSQLClient implements DSQL {}
@@ -1,11 +1,15 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetClusterCommandInput } from "../commands/GetClusterCommand";
2
+ import {
3
+ GetClusterCommandInput,
4
+ GetClusterCommandOutput,
5
+ } from "../commands/GetClusterCommand";
3
6
  import { DSQLClient } from "../DSQLClient";
7
+ import { DSQLServiceException } from "../models/DSQLServiceException";
4
8
  export declare const waitForClusterActive: (
5
9
  params: WaiterConfiguration<DSQLClient>,
6
10
  input: GetClusterCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<WaiterResult<GetClusterCommandOutput | DSQLServiceException>>;
8
12
  export declare const waitUntilClusterActive: (
9
13
  params: WaiterConfiguration<DSQLClient>,
10
14
  input: GetClusterCommandInput
11
- ) => Promise<WaiterResult>;
15
+ ) => Promise<WaiterResult<GetClusterCommandOutput>>;
@@ -1,11 +1,16 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { GetClusterCommandInput } from "../commands/GetClusterCommand";
2
+ import {
3
+ GetClusterCommandInput,
4
+ GetClusterCommandOutput,
5
+ } from "../commands/GetClusterCommand";
3
6
  import { DSQLClient } from "../DSQLClient";
7
+ import { DSQLServiceException } from "../models/DSQLServiceException";
8
+ import { ResourceNotFoundException } from "../models/errors";
4
9
  export declare const waitForClusterNotExists: (
5
10
  params: WaiterConfiguration<DSQLClient>,
6
11
  input: GetClusterCommandInput
7
- ) => Promise<WaiterResult>;
12
+ ) => Promise<WaiterResult<GetClusterCommandOutput | DSQLServiceException>>;
8
13
  export declare const waitUntilClusterNotExists: (
9
14
  params: WaiterConfiguration<DSQLClient>,
10
15
  input: GetClusterCommandInput
11
- ) => Promise<WaiterResult>;
16
+ ) => Promise<WaiterResult<ResourceNotFoundException>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetClusterCommandInput } from "../commands/GetClusterCommand";
2
+ import { type GetClusterCommandInput, type GetClusterCommandOutput } from "../commands/GetClusterCommand";
3
3
  import type { DSQLClient } from "../DSQLClient";
4
+ import type { DSQLServiceException } from "../models/DSQLServiceException";
4
5
  /**
5
6
  * Wait until a Cluster is ACTIVE
6
7
  * @deprecated Use waitUntilClusterActive instead. waitForClusterActive does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForClusterActive: (params: WaiterConfiguration<DSQLClient>, input: GetClusterCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForClusterActive: (params: WaiterConfiguration<DSQLClient>, input: GetClusterCommandInput) => Promise<WaiterResult<GetClusterCommandOutput | DSQLServiceException>>;
9
10
  /**
10
11
  * Wait until a Cluster is ACTIVE
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to GetClusterCommand for polling.
13
14
  */
14
- export declare const waitUntilClusterActive: (params: WaiterConfiguration<DSQLClient>, input: GetClusterCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilClusterActive: (params: WaiterConfiguration<DSQLClient>, input: GetClusterCommandInput) => Promise<WaiterResult<GetClusterCommandOutput>>;
@@ -1,14 +1,16 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type GetClusterCommandInput } from "../commands/GetClusterCommand";
2
+ import { type GetClusterCommandInput, type GetClusterCommandOutput } from "../commands/GetClusterCommand";
3
3
  import type { DSQLClient } from "../DSQLClient";
4
+ import type { DSQLServiceException } from "../models/DSQLServiceException";
5
+ import type { ResourceNotFoundException } from "../models/errors";
4
6
  /**
5
7
  * Wait until a Cluster is gone
6
8
  * @deprecated Use waitUntilClusterNotExists instead. waitForClusterNotExists does not throw error in non-success cases.
7
9
  */
8
- export declare const waitForClusterNotExists: (params: WaiterConfiguration<DSQLClient>, input: GetClusterCommandInput) => Promise<WaiterResult>;
10
+ export declare const waitForClusterNotExists: (params: WaiterConfiguration<DSQLClient>, input: GetClusterCommandInput) => Promise<WaiterResult<GetClusterCommandOutput | DSQLServiceException>>;
9
11
  /**
10
12
  * Wait until a Cluster is gone
11
13
  * @param params - Waiter configuration options.
12
14
  * @param input - The input to GetClusterCommand for polling.
13
15
  */
14
- export declare const waitUntilClusterNotExists: (params: WaiterConfiguration<DSQLClient>, input: GetClusterCommandInput) => Promise<WaiterResult>;
16
+ export declare const waitUntilClusterNotExists: (params: WaiterConfiguration<DSQLClient>, input: GetClusterCommandInput) => Promise<WaiterResult<ResourceNotFoundException>>;
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.1037.0",
4
+ "version": "3.1038.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,17 +21,17 @@
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.974.5",
25
- "@aws-sdk/credential-provider-node": "^3.972.36",
24
+ "@aws-sdk/core": "^3.974.6",
25
+ "@aws-sdk/credential-provider-node": "^3.972.37",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.10",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.35",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.36",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.13",
31
31
  "@aws-sdk/types": "^3.973.8",
32
32
  "@aws-sdk/util-endpoints": "^3.996.8",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.21",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.22",
35
35
  "@smithy/config-resolver": "^4.4.17",
36
36
  "@smithy/core": "^3.23.17",
37
37
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -39,7 +39,7 @@
39
39
  "@smithy/invalid-dependency": "^4.2.14",
40
40
  "@smithy/middleware-content-length": "^4.2.14",
41
41
  "@smithy/middleware-endpoint": "^4.4.32",
42
- "@smithy/middleware-retry": "^4.5.5",
42
+ "@smithy/middleware-retry": "^4.5.6",
43
43
  "@smithy/middleware-serde": "^4.2.20",
44
44
  "@smithy/middleware-stack": "^4.2.14",
45
45
  "@smithy/node-config-provider": "^4.3.14",
@@ -55,9 +55,9 @@
55
55
  "@smithy/util-defaults-mode-node": "^4.2.54",
56
56
  "@smithy/util-endpoints": "^3.4.2",
57
57
  "@smithy/util-middleware": "^4.2.14",
58
- "@smithy/util-retry": "^4.3.4",
58
+ "@smithy/util-retry": "^4.3.5",
59
59
  "@smithy/util-utf8": "^4.2.2",
60
- "@smithy/util-waiter": "^4.2.16",
60
+ "@smithy/util-waiter": "^4.3.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {