@aws-sdk/client-neptune 3.1037.0 → 3.1039.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
@@ -1191,7 +1191,7 @@ const checkState = async (client, input) => {
1191
1191
  }
1192
1192
  catch (exception) {
1193
1193
  reason = exception;
1194
- if (exception.name && exception.name == "DBInstanceNotFoundFault") {
1194
+ if (exception.name === "DBInstanceNotFoundFault") {
1195
1195
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
1196
1196
  }
1197
1197
  }
@@ -85,7 +85,7 @@ const checkState = async (client, input) => {
85
85
  }
86
86
  catch (exception) {
87
87
  reason = exception;
88
- if (exception.name && exception.name == "DBInstanceNotFoundFault") {
88
+ if (exception.name === "DBInstanceNotFoundFault") {
89
89
  return { state: WaiterState.SUCCESS, reason };
90
90
  }
91
91
  }
@@ -70,6 +70,7 @@ import { type RestoreDBClusterToPointInTimeCommandInput, type RestoreDBClusterTo
70
70
  import { type StartDBClusterCommandInput, type StartDBClusterCommandOutput } from "./commands/StartDBClusterCommand";
71
71
  import { type StopDBClusterCommandInput, type StopDBClusterCommandOutput } from "./commands/StopDBClusterCommand";
72
72
  import { type SwitchoverGlobalClusterCommandInput, type SwitchoverGlobalClusterCommandOutput } from "./commands/SwitchoverGlobalClusterCommand";
73
+ import type { DBInstanceNotFoundFault } from "./models/errors";
73
74
  import { NeptuneClient } from "./NeptuneClient";
74
75
  export interface Neptune {
75
76
  /**
@@ -623,13 +624,13 @@ export interface Neptune {
623
624
  * @param args - command input.
624
625
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
625
626
  */
626
- waitUntilDBInstanceAvailable(args: DescribeDBInstancesCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Neptune>, "client">): Promise<WaiterResult>;
627
+ waitUntilDBInstanceAvailable(args: DescribeDBInstancesCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Neptune>, "client">): Promise<WaiterResult<DescribeDBInstancesCommandOutput>>;
627
628
  /**
628
629
  * @see {@link DescribeDBInstancesCommand}
629
630
  * @param args - command input.
630
631
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
631
632
  */
632
- waitUntilDBInstanceDeleted(args: DescribeDBInstancesCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Neptune>, "client">): Promise<WaiterResult>;
633
+ waitUntilDBInstanceDeleted(args: DescribeDBInstancesCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Neptune>, "client">): Promise<WaiterResult<DescribeDBInstancesCommandOutput | DBInstanceNotFoundFault>>;
633
634
  }
634
635
  /**
635
636
  * <fullname>Amazon Neptune</fullname>
@@ -285,6 +285,7 @@ import {
285
285
  SwitchoverGlobalClusterCommandInput,
286
286
  SwitchoverGlobalClusterCommandOutput,
287
287
  } from "./commands/SwitchoverGlobalClusterCommand";
288
+ import { DBInstanceNotFoundFault } from "./models/errors";
288
289
  import { NeptuneClient } from "./NeptuneClient";
289
290
  export interface Neptune {
290
291
  addRoleToDBCluster(
@@ -1373,7 +1374,7 @@ export interface Neptune {
1373
1374
  WaiterConfiguration<Neptune>,
1374
1375
  Exclude<keyof WaiterConfiguration<Neptune>, "client">
1375
1376
  >
1376
- ): Promise<WaiterResult>;
1377
+ ): Promise<WaiterResult<DescribeDBInstancesCommandOutput>>;
1377
1378
  waitUntilDBInstanceDeleted(
1378
1379
  args: DescribeDBInstancesCommandInput,
1379
1380
  waiterConfig:
@@ -1382,6 +1383,8 @@ export interface Neptune {
1382
1383
  WaiterConfiguration<Neptune>,
1383
1384
  Exclude<keyof WaiterConfiguration<Neptune>, "client">
1384
1385
  >
1385
- ): Promise<WaiterResult>;
1386
+ ): Promise<
1387
+ WaiterResult<DescribeDBInstancesCommandOutput | DBInstanceNotFoundFault>
1388
+ >;
1386
1389
  }
1387
1390
  export declare class Neptune extends NeptuneClient implements Neptune {}
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeDBInstancesCommandInput } from "../commands/DescribeDBInstancesCommand";
2
+ import {
3
+ DescribeDBInstancesCommandInput,
4
+ DescribeDBInstancesCommandOutput,
5
+ } from "../commands/DescribeDBInstancesCommand";
6
+ import { NeptuneServiceException } from "../models/NeptuneServiceException";
3
7
  import { NeptuneClient } from "../NeptuneClient";
4
8
  export declare const waitForDBInstanceAvailable: (
5
9
  params: WaiterConfiguration<NeptuneClient>,
6
10
  input: DescribeDBInstancesCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeDBInstancesCommandOutput | NeptuneServiceException>
13
+ >;
8
14
  export declare const waitUntilDBInstanceAvailable: (
9
15
  params: WaiterConfiguration<NeptuneClient>,
10
16
  input: DescribeDBInstancesCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeDBInstancesCommandOutput>>;
@@ -1,11 +1,20 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeDBInstancesCommandInput } from "../commands/DescribeDBInstancesCommand";
2
+ import {
3
+ DescribeDBInstancesCommandInput,
4
+ DescribeDBInstancesCommandOutput,
5
+ } from "../commands/DescribeDBInstancesCommand";
6
+ import { DBInstanceNotFoundFault } from "../models/errors";
7
+ import { NeptuneServiceException } from "../models/NeptuneServiceException";
3
8
  import { NeptuneClient } from "../NeptuneClient";
4
9
  export declare const waitForDBInstanceDeleted: (
5
10
  params: WaiterConfiguration<NeptuneClient>,
6
11
  input: DescribeDBInstancesCommandInput
7
- ) => Promise<WaiterResult>;
12
+ ) => Promise<
13
+ WaiterResult<DescribeDBInstancesCommandOutput | NeptuneServiceException>
14
+ >;
8
15
  export declare const waitUntilDBInstanceDeleted: (
9
16
  params: WaiterConfiguration<NeptuneClient>,
10
17
  input: DescribeDBInstancesCommandInput
11
- ) => Promise<WaiterResult>;
18
+ ) => Promise<
19
+ WaiterResult<DescribeDBInstancesCommandOutput | DBInstanceNotFoundFault>
20
+ >;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeDBInstancesCommandInput } from "../commands/DescribeDBInstancesCommand";
2
+ import { type DescribeDBInstancesCommandInput, type DescribeDBInstancesCommandOutput } from "../commands/DescribeDBInstancesCommand";
3
+ import type { NeptuneServiceException } from "../models/NeptuneServiceException";
3
4
  import type { NeptuneClient } from "../NeptuneClient";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilDBInstanceAvailable instead. waitForDBInstanceAvailable does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForDBInstanceAvailable: (params: WaiterConfiguration<NeptuneClient>, input: DescribeDBInstancesCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForDBInstanceAvailable: (params: WaiterConfiguration<NeptuneClient>, input: DescribeDBInstancesCommandInput) => Promise<WaiterResult<DescribeDBInstancesCommandOutput | NeptuneServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeDBInstancesCommand for polling.
13
14
  */
14
- export declare const waitUntilDBInstanceAvailable: (params: WaiterConfiguration<NeptuneClient>, input: DescribeDBInstancesCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilDBInstanceAvailable: (params: WaiterConfiguration<NeptuneClient>, input: DescribeDBInstancesCommandInput) => Promise<WaiterResult<DescribeDBInstancesCommandOutput>>;
@@ -1,14 +1,16 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeDBInstancesCommandInput } from "../commands/DescribeDBInstancesCommand";
2
+ import { type DescribeDBInstancesCommandInput, type DescribeDBInstancesCommandOutput } from "../commands/DescribeDBInstancesCommand";
3
+ import type { DBInstanceNotFoundFault } from "../models/errors";
4
+ import type { NeptuneServiceException } from "../models/NeptuneServiceException";
3
5
  import type { NeptuneClient } from "../NeptuneClient";
4
6
  /**
5
7
  *
6
8
  * @deprecated Use waitUntilDBInstanceDeleted instead. waitForDBInstanceDeleted does not throw error in non-success cases.
7
9
  */
8
- export declare const waitForDBInstanceDeleted: (params: WaiterConfiguration<NeptuneClient>, input: DescribeDBInstancesCommandInput) => Promise<WaiterResult>;
10
+ export declare const waitForDBInstanceDeleted: (params: WaiterConfiguration<NeptuneClient>, input: DescribeDBInstancesCommandInput) => Promise<WaiterResult<DescribeDBInstancesCommandOutput | NeptuneServiceException>>;
9
11
  /**
10
12
  *
11
13
  * @param params - Waiter configuration options.
12
14
  * @param input - The input to DescribeDBInstancesCommand for polling.
13
15
  */
14
- export declare const waitUntilDBInstanceDeleted: (params: WaiterConfiguration<NeptuneClient>, input: DescribeDBInstancesCommandInput) => Promise<WaiterResult>;
16
+ export declare const waitUntilDBInstanceDeleted: (params: WaiterConfiguration<NeptuneClient>, input: DescribeDBInstancesCommandInput) => Promise<WaiterResult<DescribeDBInstancesCommandOutput | DBInstanceNotFoundFault>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-neptune",
3
3
  "description": "AWS SDK for JavaScript Neptune Client for Node.js, Browser and React Native",
4
- "version": "3.1037.0",
4
+ "version": "3.1039.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-neptune",
@@ -21,18 +21,18 @@
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.7",
25
+ "@aws-sdk/credential-provider-node": "^3.972.38",
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
29
  "@aws-sdk/middleware-sdk-rds": "^3.972.22",
30
- "@aws-sdk/middleware-user-agent": "^3.972.35",
30
+ "@aws-sdk/middleware-user-agent": "^3.972.37",
31
31
  "@aws-sdk/region-config-resolver": "^3.972.13",
32
32
  "@aws-sdk/types": "^3.973.8",
33
33
  "@aws-sdk/util-endpoints": "^3.996.8",
34
34
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
35
- "@aws-sdk/util-user-agent-node": "^3.973.21",
35
+ "@aws-sdk/util-user-agent-node": "^3.973.23",
36
36
  "@smithy/config-resolver": "^4.4.17",
37
37
  "@smithy/core": "^3.23.17",
38
38
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -40,7 +40,7 @@
40
40
  "@smithy/invalid-dependency": "^4.2.14",
41
41
  "@smithy/middleware-content-length": "^4.2.14",
42
42
  "@smithy/middleware-endpoint": "^4.4.32",
43
- "@smithy/middleware-retry": "^4.5.5",
43
+ "@smithy/middleware-retry": "^4.5.7",
44
44
  "@smithy/middleware-serde": "^4.2.20",
45
45
  "@smithy/middleware-stack": "^4.2.14",
46
46
  "@smithy/node-config-provider": "^4.3.14",
@@ -56,9 +56,9 @@
56
56
  "@smithy/util-defaults-mode-node": "^4.2.54",
57
57
  "@smithy/util-endpoints": "^3.4.2",
58
58
  "@smithy/util-middleware": "^4.2.14",
59
- "@smithy/util-retry": "^4.3.4",
59
+ "@smithy/util-retry": "^4.3.6",
60
60
  "@smithy/util-utf8": "^4.2.2",
61
- "@smithy/util-waiter": "^4.2.16",
61
+ "@smithy/util-waiter": "^4.3.0",
62
62
  "tslib": "^2.6.2"
63
63
  },
64
64
  "devDependencies": {