@aws-sdk/client-redshift 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
@@ -1920,7 +1920,7 @@ const checkState$3 = async (client, input) => {
1920
1920
  }
1921
1921
  catch (exception) {
1922
1922
  reason = exception;
1923
- if (exception.name && exception.name == "ClusterNotFoundFault") {
1923
+ if (exception.name === "ClusterNotFoundFault") {
1924
1924
  return { state: utilWaiter.WaiterState.RETRY, reason };
1925
1925
  }
1926
1926
  }
@@ -1974,7 +1974,7 @@ const checkState$2 = async (client, input) => {
1974
1974
  }
1975
1975
  catch (exception) {
1976
1976
  reason = exception;
1977
- if (exception.name && exception.name == "ClusterNotFoundFault") {
1977
+ if (exception.name === "ClusterNotFoundFault") {
1978
1978
  return { state: utilWaiter.WaiterState.SUCCESS, reason };
1979
1979
  }
1980
1980
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeClustersCommand } from "../commands/DescribeClustersCommand";
2
+ import { DescribeClustersCommand, } from "../commands/DescribeClustersCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -40,7 +40,7 @@ const checkState = async (client, input) => {
40
40
  }
41
41
  catch (exception) {
42
42
  reason = exception;
43
- if (exception.name && exception.name == "ClusterNotFoundFault") {
43
+ if (exception.name === "ClusterNotFoundFault") {
44
44
  return { state: WaiterState.RETRY, reason };
45
45
  }
46
46
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeClustersCommand } from "../commands/DescribeClustersCommand";
2
+ import { DescribeClustersCommand, } from "../commands/DescribeClustersCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -38,7 +38,7 @@ const checkState = async (client, input) => {
38
38
  }
39
39
  catch (exception) {
40
40
  reason = exception;
41
- if (exception.name && exception.name == "ClusterNotFoundFault") {
41
+ if (exception.name === "ClusterNotFoundFault") {
42
42
  return { state: WaiterState.SUCCESS, reason };
43
43
  }
44
44
  }
@@ -1,5 +1,5 @@
1
1
  import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
2
- import { DescribeClustersCommand } from "../commands/DescribeClustersCommand";
2
+ import { DescribeClustersCommand, } from "../commands/DescribeClustersCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
@@ -141,6 +141,7 @@ import { type RevokeEndpointAccessCommandInput, type RevokeEndpointAccessCommand
141
141
  import { type RevokeSnapshotAccessCommandInput, type RevokeSnapshotAccessCommandOutput } from "./commands/RevokeSnapshotAccessCommand";
142
142
  import { type RotateEncryptionKeyCommandInput, type RotateEncryptionKeyCommandOutput } from "./commands/RotateEncryptionKeyCommand";
143
143
  import { type UpdatePartnerStatusCommandInput, type UpdatePartnerStatusCommandOutput } from "./commands/UpdatePartnerStatusCommand";
144
+ import type { ClusterNotFoundFault } from "./models/errors";
144
145
  import { RedshiftClient } from "./RedshiftClient";
145
146
  export interface Redshift {
146
147
  /**
@@ -1292,25 +1293,25 @@ export interface Redshift {
1292
1293
  * @param args - command input.
1293
1294
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1294
1295
  */
1295
- waitUntilClusterAvailable(args: DescribeClustersCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Redshift>, "client">): Promise<WaiterResult>;
1296
+ waitUntilClusterAvailable(args: DescribeClustersCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Redshift>, "client">): Promise<WaiterResult<DescribeClustersCommandOutput>>;
1296
1297
  /**
1297
1298
  * @see {@link DescribeClustersCommand}
1298
1299
  * @param args - command input.
1299
1300
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1300
1301
  */
1301
- waitUntilClusterDeleted(args: DescribeClustersCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Redshift>, "client">): Promise<WaiterResult>;
1302
+ waitUntilClusterDeleted(args: DescribeClustersCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Redshift>, "client">): Promise<WaiterResult<ClusterNotFoundFault>>;
1302
1303
  /**
1303
1304
  * @see {@link DescribeClustersCommand}
1304
1305
  * @param args - command input.
1305
1306
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1306
1307
  */
1307
- waitUntilClusterRestored(args: DescribeClustersCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Redshift>, "client">): Promise<WaiterResult>;
1308
+ waitUntilClusterRestored(args: DescribeClustersCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Redshift>, "client">): Promise<WaiterResult<DescribeClustersCommandOutput>>;
1308
1309
  /**
1309
1310
  * @see {@link DescribeClusterSnapshotsCommand}
1310
1311
  * @param args - command input.
1311
1312
  * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1312
1313
  */
1313
- waitUntilSnapshotAvailable(args: DescribeClusterSnapshotsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Redshift>, "client">): Promise<WaiterResult>;
1314
+ waitUntilSnapshotAvailable(args: DescribeClusterSnapshotsCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Redshift>, "client">): Promise<WaiterResult<DescribeClusterSnapshotsCommandOutput>>;
1314
1315
  }
1315
1316
  /**
1316
1317
  * <fullname>Amazon Redshift</fullname>
@@ -569,6 +569,7 @@ import {
569
569
  UpdatePartnerStatusCommandInput,
570
570
  UpdatePartnerStatusCommandOutput,
571
571
  } from "./commands/UpdatePartnerStatusCommand";
572
+ import { ClusterNotFoundFault } from "./models/errors";
572
573
  import { RedshiftClient } from "./RedshiftClient";
573
574
  export interface Redshift {
574
575
  acceptReservedNodeExchange(
@@ -2740,7 +2741,7 @@ export interface Redshift {
2740
2741
  WaiterConfiguration<Redshift>,
2741
2742
  Exclude<keyof WaiterConfiguration<Redshift>, "client">
2742
2743
  >
2743
- ): Promise<WaiterResult>;
2744
+ ): Promise<WaiterResult<DescribeClustersCommandOutput>>;
2744
2745
  waitUntilClusterDeleted(
2745
2746
  args: DescribeClustersCommandInput,
2746
2747
  waiterConfig:
@@ -2749,7 +2750,7 @@ export interface Redshift {
2749
2750
  WaiterConfiguration<Redshift>,
2750
2751
  Exclude<keyof WaiterConfiguration<Redshift>, "client">
2751
2752
  >
2752
- ): Promise<WaiterResult>;
2753
+ ): Promise<WaiterResult<ClusterNotFoundFault>>;
2753
2754
  waitUntilClusterRestored(
2754
2755
  args: DescribeClustersCommandInput,
2755
2756
  waiterConfig:
@@ -2758,7 +2759,7 @@ export interface Redshift {
2758
2759
  WaiterConfiguration<Redshift>,
2759
2760
  Exclude<keyof WaiterConfiguration<Redshift>, "client">
2760
2761
  >
2761
- ): Promise<WaiterResult>;
2762
+ ): Promise<WaiterResult<DescribeClustersCommandOutput>>;
2762
2763
  waitUntilSnapshotAvailable(
2763
2764
  args: DescribeClusterSnapshotsCommandInput,
2764
2765
  waiterConfig:
@@ -2767,6 +2768,6 @@ export interface Redshift {
2767
2768
  WaiterConfiguration<Redshift>,
2768
2769
  Exclude<keyof WaiterConfiguration<Redshift>, "client">
2769
2770
  >
2770
- ): Promise<WaiterResult>;
2771
+ ): Promise<WaiterResult<DescribeClusterSnapshotsCommandOutput>>;
2771
2772
  }
2772
2773
  export declare class Redshift extends RedshiftClient implements Redshift {}
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeClustersCommandInput } from "../commands/DescribeClustersCommand";
2
+ import {
3
+ DescribeClustersCommandInput,
4
+ DescribeClustersCommandOutput,
5
+ } from "../commands/DescribeClustersCommand";
6
+ import { RedshiftServiceException } from "../models/RedshiftServiceException";
3
7
  import { RedshiftClient } from "../RedshiftClient";
4
8
  export declare const waitForClusterAvailable: (
5
9
  params: WaiterConfiguration<RedshiftClient>,
6
10
  input: DescribeClustersCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeClustersCommandOutput | RedshiftServiceException>
13
+ >;
8
14
  export declare const waitUntilClusterAvailable: (
9
15
  params: WaiterConfiguration<RedshiftClient>,
10
16
  input: DescribeClustersCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeClustersCommandOutput>>;
@@ -1,11 +1,18 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeClustersCommandInput } from "../commands/DescribeClustersCommand";
2
+ import {
3
+ DescribeClustersCommandInput,
4
+ DescribeClustersCommandOutput,
5
+ } from "../commands/DescribeClustersCommand";
6
+ import { ClusterNotFoundFault } from "../models/errors";
7
+ import { RedshiftServiceException } from "../models/RedshiftServiceException";
3
8
  import { RedshiftClient } from "../RedshiftClient";
4
9
  export declare const waitForClusterDeleted: (
5
10
  params: WaiterConfiguration<RedshiftClient>,
6
11
  input: DescribeClustersCommandInput
7
- ) => Promise<WaiterResult>;
12
+ ) => Promise<
13
+ WaiterResult<DescribeClustersCommandOutput | RedshiftServiceException>
14
+ >;
8
15
  export declare const waitUntilClusterDeleted: (
9
16
  params: WaiterConfiguration<RedshiftClient>,
10
17
  input: DescribeClustersCommandInput
11
- ) => Promise<WaiterResult>;
18
+ ) => Promise<WaiterResult<ClusterNotFoundFault>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeClustersCommandInput } from "../commands/DescribeClustersCommand";
2
+ import {
3
+ DescribeClustersCommandInput,
4
+ DescribeClustersCommandOutput,
5
+ } from "../commands/DescribeClustersCommand";
6
+ import { RedshiftServiceException } from "../models/RedshiftServiceException";
3
7
  import { RedshiftClient } from "../RedshiftClient";
4
8
  export declare const waitForClusterRestored: (
5
9
  params: WaiterConfiguration<RedshiftClient>,
6
10
  input: DescribeClustersCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeClustersCommandOutput | RedshiftServiceException>
13
+ >;
8
14
  export declare const waitUntilClusterRestored: (
9
15
  params: WaiterConfiguration<RedshiftClient>,
10
16
  input: DescribeClustersCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeClustersCommandOutput>>;
@@ -1,11 +1,17 @@
1
1
  import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
2
- import { DescribeClusterSnapshotsCommandInput } from "../commands/DescribeClusterSnapshotsCommand";
2
+ import {
3
+ DescribeClusterSnapshotsCommandInput,
4
+ DescribeClusterSnapshotsCommandOutput,
5
+ } from "../commands/DescribeClusterSnapshotsCommand";
6
+ import { RedshiftServiceException } from "../models/RedshiftServiceException";
3
7
  import { RedshiftClient } from "../RedshiftClient";
4
8
  export declare const waitForSnapshotAvailable: (
5
9
  params: WaiterConfiguration<RedshiftClient>,
6
10
  input: DescribeClusterSnapshotsCommandInput
7
- ) => Promise<WaiterResult>;
11
+ ) => Promise<
12
+ WaiterResult<DescribeClusterSnapshotsCommandOutput | RedshiftServiceException>
13
+ >;
8
14
  export declare const waitUntilSnapshotAvailable: (
9
15
  params: WaiterConfiguration<RedshiftClient>,
10
16
  input: DescribeClusterSnapshotsCommandInput
11
- ) => Promise<WaiterResult>;
17
+ ) => Promise<WaiterResult<DescribeClusterSnapshotsCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeClustersCommandInput } from "../commands/DescribeClustersCommand";
2
+ import { type DescribeClustersCommandInput, type DescribeClustersCommandOutput } from "../commands/DescribeClustersCommand";
3
+ import type { RedshiftServiceException } from "../models/RedshiftServiceException";
3
4
  import type { RedshiftClient } from "../RedshiftClient";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilClusterAvailable instead. waitForClusterAvailable does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForClusterAvailable: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForClusterAvailable: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult<DescribeClustersCommandOutput | RedshiftServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeClustersCommand for polling.
13
14
  */
14
- export declare const waitUntilClusterAvailable: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilClusterAvailable: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult<DescribeClustersCommandOutput>>;
@@ -1,14 +1,16 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeClustersCommandInput } from "../commands/DescribeClustersCommand";
2
+ import { type DescribeClustersCommandInput, type DescribeClustersCommandOutput } from "../commands/DescribeClustersCommand";
3
+ import type { ClusterNotFoundFault } from "../models/errors";
4
+ import type { RedshiftServiceException } from "../models/RedshiftServiceException";
3
5
  import type { RedshiftClient } from "../RedshiftClient";
4
6
  /**
5
7
  *
6
8
  * @deprecated Use waitUntilClusterDeleted instead. waitForClusterDeleted does not throw error in non-success cases.
7
9
  */
8
- export declare const waitForClusterDeleted: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult>;
10
+ export declare const waitForClusterDeleted: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult<DescribeClustersCommandOutput | RedshiftServiceException>>;
9
11
  /**
10
12
  *
11
13
  * @param params - Waiter configuration options.
12
14
  * @param input - The input to DescribeClustersCommand for polling.
13
15
  */
14
- export declare const waitUntilClusterDeleted: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult>;
16
+ export declare const waitUntilClusterDeleted: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult<ClusterNotFoundFault>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeClustersCommandInput } from "../commands/DescribeClustersCommand";
2
+ import { type DescribeClustersCommandInput, type DescribeClustersCommandOutput } from "../commands/DescribeClustersCommand";
3
+ import type { RedshiftServiceException } from "../models/RedshiftServiceException";
3
4
  import type { RedshiftClient } from "../RedshiftClient";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilClusterRestored instead. waitForClusterRestored does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForClusterRestored: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForClusterRestored: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult<DescribeClustersCommandOutput | RedshiftServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeClustersCommand for polling.
13
14
  */
14
- export declare const waitUntilClusterRestored: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilClusterRestored: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClustersCommandInput) => Promise<WaiterResult<DescribeClustersCommandOutput>>;
@@ -1,14 +1,15 @@
1
1
  import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
2
- import { type DescribeClusterSnapshotsCommandInput } from "../commands/DescribeClusterSnapshotsCommand";
2
+ import { type DescribeClusterSnapshotsCommandInput, type DescribeClusterSnapshotsCommandOutput } from "../commands/DescribeClusterSnapshotsCommand";
3
+ import type { RedshiftServiceException } from "../models/RedshiftServiceException";
3
4
  import type { RedshiftClient } from "../RedshiftClient";
4
5
  /**
5
6
  *
6
7
  * @deprecated Use waitUntilSnapshotAvailable instead. waitForSnapshotAvailable does not throw error in non-success cases.
7
8
  */
8
- export declare const waitForSnapshotAvailable: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClusterSnapshotsCommandInput) => Promise<WaiterResult>;
9
+ export declare const waitForSnapshotAvailable: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClusterSnapshotsCommandInput) => Promise<WaiterResult<DescribeClusterSnapshotsCommandOutput | RedshiftServiceException>>;
9
10
  /**
10
11
  *
11
12
  * @param params - Waiter configuration options.
12
13
  * @param input - The input to DescribeClusterSnapshotsCommand for polling.
13
14
  */
14
- export declare const waitUntilSnapshotAvailable: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClusterSnapshotsCommandInput) => Promise<WaiterResult>;
15
+ export declare const waitUntilSnapshotAvailable: (params: WaiterConfiguration<RedshiftClient>, input: DescribeClusterSnapshotsCommandInput) => Promise<WaiterResult<DescribeClusterSnapshotsCommandOutput>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-redshift",
3
3
  "description": "AWS SDK for JavaScript Redshift 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-redshift",
@@ -23,17 +23,17 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.974.5",
27
- "@aws-sdk/credential-provider-node": "^3.972.36",
26
+ "@aws-sdk/core": "^3.974.6",
27
+ "@aws-sdk/credential-provider-node": "^3.972.37",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.10",
29
29
  "@aws-sdk/middleware-logger": "^3.972.10",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.11",
31
- "@aws-sdk/middleware-user-agent": "^3.972.35",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.36",
32
32
  "@aws-sdk/region-config-resolver": "^3.972.13",
33
33
  "@aws-sdk/types": "^3.973.8",
34
34
  "@aws-sdk/util-endpoints": "^3.996.8",
35
35
  "@aws-sdk/util-user-agent-browser": "^3.972.10",
36
- "@aws-sdk/util-user-agent-node": "^3.973.21",
36
+ "@aws-sdk/util-user-agent-node": "^3.973.22",
37
37
  "@smithy/config-resolver": "^4.4.17",
38
38
  "@smithy/core": "^3.23.17",
39
39
  "@smithy/fetch-http-handler": "^5.3.17",
@@ -41,7 +41,7 @@
41
41
  "@smithy/invalid-dependency": "^4.2.14",
42
42
  "@smithy/middleware-content-length": "^4.2.14",
43
43
  "@smithy/middleware-endpoint": "^4.4.32",
44
- "@smithy/middleware-retry": "^4.5.5",
44
+ "@smithy/middleware-retry": "^4.5.6",
45
45
  "@smithy/middleware-serde": "^4.2.20",
46
46
  "@smithy/middleware-stack": "^4.2.14",
47
47
  "@smithy/node-config-provider": "^4.3.14",
@@ -57,9 +57,9 @@
57
57
  "@smithy/util-defaults-mode-node": "^4.2.54",
58
58
  "@smithy/util-endpoints": "^3.4.2",
59
59
  "@smithy/util-middleware": "^4.2.14",
60
- "@smithy/util-retry": "^4.3.4",
60
+ "@smithy/util-retry": "^4.3.5",
61
61
  "@smithy/util-utf8": "^4.2.2",
62
- "@smithy/util-waiter": "^4.2.16",
62
+ "@smithy/util-waiter": "^4.3.0",
63
63
  "tslib": "^2.6.2"
64
64
  },
65
65
  "devDependencies": {