@aws-sdk/client-kinesis 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 +1 -1
- package/dist-es/waiters/waitForStreamExists.js +1 -1
- package/dist-es/waiters/waitForStreamNotExists.js +2 -2
- package/dist-types/Kinesis.d.ts +3 -2
- package/dist-types/ts3.4/Kinesis.d.ts +3 -2
- package/dist-types/ts3.4/waiters/waitForStreamExists.d.ts +9 -3
- package/dist-types/ts3.4/waiters/waitForStreamNotExists.d.ts +10 -3
- package/dist-types/waiters/waitForStreamExists.d.ts +4 -3
- package/dist-types/waiters/waitForStreamNotExists.d.ts +5 -3
- package/package.json +8 -8
package/dist-cjs/index.js
CHANGED
|
@@ -802,7 +802,7 @@ const checkState = async (client, input) => {
|
|
|
802
802
|
}
|
|
803
803
|
catch (exception) {
|
|
804
804
|
reason = exception;
|
|
805
|
-
if (exception.name
|
|
805
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
806
806
|
return { state: utilWaiter.WaiterState.SUCCESS, reason };
|
|
807
807
|
}
|
|
808
808
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
|
|
2
|
-
import { DescribeStreamCommand } from "../commands/DescribeStreamCommand";
|
|
2
|
+
import { DescribeStreamCommand, } from "../commands/DescribeStreamCommand";
|
|
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 { DescribeStreamCommand } from "../commands/DescribeStreamCommand";
|
|
2
|
+
import { DescribeStreamCommand, } from "../commands/DescribeStreamCommand";
|
|
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
|
|
11
|
+
if (exception.name === "ResourceNotFoundException") {
|
|
12
12
|
return { state: WaiterState.SUCCESS, reason };
|
|
13
13
|
}
|
|
14
14
|
}
|
package/dist-types/Kinesis.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ import { type UpdateShardCountCommandInput, type UpdateShardCountCommandOutput }
|
|
|
40
40
|
import { type UpdateStreamModeCommandInput, type UpdateStreamModeCommandOutput } from "./commands/UpdateStreamModeCommand";
|
|
41
41
|
import { type UpdateStreamWarmThroughputCommandInput, type UpdateStreamWarmThroughputCommandOutput } from "./commands/UpdateStreamWarmThroughputCommand";
|
|
42
42
|
import { KinesisClient } from "./KinesisClient";
|
|
43
|
+
import type { ResourceNotFoundException } from "./models/errors";
|
|
43
44
|
export interface Kinesis {
|
|
44
45
|
/**
|
|
45
46
|
* @see {@link AddTagsToStreamCommand}
|
|
@@ -304,13 +305,13 @@ export interface Kinesis {
|
|
|
304
305
|
* @param args - command input.
|
|
305
306
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
306
307
|
*/
|
|
307
|
-
waitUntilStreamExists(args: DescribeStreamCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Kinesis>, "client">): Promise<WaiterResult
|
|
308
|
+
waitUntilStreamExists(args: DescribeStreamCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Kinesis>, "client">): Promise<WaiterResult<DescribeStreamCommandOutput>>;
|
|
308
309
|
/**
|
|
309
310
|
* @see {@link DescribeStreamCommand}
|
|
310
311
|
* @param args - command input.
|
|
311
312
|
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
312
313
|
*/
|
|
313
|
-
waitUntilStreamNotExists(args: DescribeStreamCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Kinesis>, "client">): Promise<WaiterResult
|
|
314
|
+
waitUntilStreamNotExists(args: DescribeStreamCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Kinesis>, "client">): Promise<WaiterResult<ResourceNotFoundException>>;
|
|
314
315
|
}
|
|
315
316
|
/**
|
|
316
317
|
* <fullname>Amazon Kinesis Data Streams Service API Reference</fullname>
|
|
@@ -162,6 +162,7 @@ import {
|
|
|
162
162
|
UpdateStreamWarmThroughputCommandOutput,
|
|
163
163
|
} from "./commands/UpdateStreamWarmThroughputCommand";
|
|
164
164
|
import { KinesisClient } from "./KinesisClient";
|
|
165
|
+
import { ResourceNotFoundException } from "./models/errors";
|
|
165
166
|
export interface Kinesis {
|
|
166
167
|
addTagsToStream(
|
|
167
168
|
args: AddTagsToStreamCommandInput,
|
|
@@ -702,7 +703,7 @@ export interface Kinesis {
|
|
|
702
703
|
WaiterConfiguration<Kinesis>,
|
|
703
704
|
Exclude<keyof WaiterConfiguration<Kinesis>, "client">
|
|
704
705
|
>
|
|
705
|
-
): Promise<WaiterResult
|
|
706
|
+
): Promise<WaiterResult<DescribeStreamCommandOutput>>;
|
|
706
707
|
waitUntilStreamNotExists(
|
|
707
708
|
args: DescribeStreamCommandInput,
|
|
708
709
|
waiterConfig:
|
|
@@ -711,6 +712,6 @@ export interface Kinesis {
|
|
|
711
712
|
WaiterConfiguration<Kinesis>,
|
|
712
713
|
Exclude<keyof WaiterConfiguration<Kinesis>, "client">
|
|
713
714
|
>
|
|
714
|
-
): Promise<WaiterResult
|
|
715
|
+
): Promise<WaiterResult<ResourceNotFoundException>>;
|
|
715
716
|
}
|
|
716
717
|
export declare class Kinesis extends KinesisClient implements Kinesis {}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
DescribeStreamCommandInput,
|
|
4
|
+
DescribeStreamCommandOutput,
|
|
5
|
+
} from "../commands/DescribeStreamCommand";
|
|
3
6
|
import { KinesisClient } from "../KinesisClient";
|
|
7
|
+
import { KinesisServiceException } from "../models/KinesisServiceException";
|
|
4
8
|
export declare const waitForStreamExists: (
|
|
5
9
|
params: WaiterConfiguration<KinesisClient>,
|
|
6
10
|
input: DescribeStreamCommandInput
|
|
7
|
-
) => Promise<
|
|
11
|
+
) => Promise<
|
|
12
|
+
WaiterResult<DescribeStreamCommandOutput | KinesisServiceException>
|
|
13
|
+
>;
|
|
8
14
|
export declare const waitUntilStreamExists: (
|
|
9
15
|
params: WaiterConfiguration<KinesisClient>,
|
|
10
16
|
input: DescribeStreamCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
17
|
+
) => Promise<WaiterResult<DescribeStreamCommandOutput>>;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
DescribeStreamCommandInput,
|
|
4
|
+
DescribeStreamCommandOutput,
|
|
5
|
+
} from "../commands/DescribeStreamCommand";
|
|
3
6
|
import { KinesisClient } from "../KinesisClient";
|
|
7
|
+
import { ResourceNotFoundException } from "../models/errors";
|
|
8
|
+
import { KinesisServiceException } from "../models/KinesisServiceException";
|
|
4
9
|
export declare const waitForStreamNotExists: (
|
|
5
10
|
params: WaiterConfiguration<KinesisClient>,
|
|
6
11
|
input: DescribeStreamCommandInput
|
|
7
|
-
) => Promise<
|
|
12
|
+
) => Promise<
|
|
13
|
+
WaiterResult<DescribeStreamCommandOutput | KinesisServiceException>
|
|
14
|
+
>;
|
|
8
15
|
export declare const waitUntilStreamNotExists: (
|
|
9
16
|
params: WaiterConfiguration<KinesisClient>,
|
|
10
17
|
input: DescribeStreamCommandInput
|
|
11
|
-
) => Promise<WaiterResult
|
|
18
|
+
) => Promise<WaiterResult<ResourceNotFoundException>>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import { type DescribeStreamCommandInput } from "../commands/DescribeStreamCommand";
|
|
2
|
+
import { type DescribeStreamCommandInput, type DescribeStreamCommandOutput } from "../commands/DescribeStreamCommand";
|
|
3
3
|
import type { KinesisClient } from "../KinesisClient";
|
|
4
|
+
import type { KinesisServiceException } from "../models/KinesisServiceException";
|
|
4
5
|
/**
|
|
5
6
|
*
|
|
6
7
|
* @deprecated Use waitUntilStreamExists instead. waitForStreamExists does not throw error in non-success cases.
|
|
7
8
|
*/
|
|
8
|
-
export declare const waitForStreamExists: (params: WaiterConfiguration<KinesisClient>, input: DescribeStreamCommandInput) => Promise<WaiterResult
|
|
9
|
+
export declare const waitForStreamExists: (params: WaiterConfiguration<KinesisClient>, input: DescribeStreamCommandInput) => Promise<WaiterResult<DescribeStreamCommandOutput | KinesisServiceException>>;
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
12
|
* @param params - Waiter configuration options.
|
|
12
13
|
* @param input - The input to DescribeStreamCommand for polling.
|
|
13
14
|
*/
|
|
14
|
-
export declare const waitUntilStreamExists: (params: WaiterConfiguration<KinesisClient>, input: DescribeStreamCommandInput) => Promise<WaiterResult
|
|
15
|
+
export declare const waitUntilStreamExists: (params: WaiterConfiguration<KinesisClient>, input: DescribeStreamCommandInput) => Promise<WaiterResult<DescribeStreamCommandOutput>>;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
|
|
2
|
-
import { type DescribeStreamCommandInput } from "../commands/DescribeStreamCommand";
|
|
2
|
+
import { type DescribeStreamCommandInput, type DescribeStreamCommandOutput } from "../commands/DescribeStreamCommand";
|
|
3
3
|
import type { KinesisClient } from "../KinesisClient";
|
|
4
|
+
import type { ResourceNotFoundException } from "../models/errors";
|
|
5
|
+
import type { KinesisServiceException } from "../models/KinesisServiceException";
|
|
4
6
|
/**
|
|
5
7
|
*
|
|
6
8
|
* @deprecated Use waitUntilStreamNotExists instead. waitForStreamNotExists does not throw error in non-success cases.
|
|
7
9
|
*/
|
|
8
|
-
export declare const waitForStreamNotExists: (params: WaiterConfiguration<KinesisClient>, input: DescribeStreamCommandInput) => Promise<WaiterResult
|
|
10
|
+
export declare const waitForStreamNotExists: (params: WaiterConfiguration<KinesisClient>, input: DescribeStreamCommandInput) => Promise<WaiterResult<DescribeStreamCommandOutput | KinesisServiceException>>;
|
|
9
11
|
/**
|
|
10
12
|
*
|
|
11
13
|
* @param params - Waiter configuration options.
|
|
12
14
|
* @param input - The input to DescribeStreamCommand for polling.
|
|
13
15
|
*/
|
|
14
|
-
export declare const waitUntilStreamNotExists: (params: WaiterConfiguration<KinesisClient>, input: DescribeStreamCommandInput) => Promise<WaiterResult
|
|
16
|
+
export declare const waitUntilStreamNotExists: (params: WaiterConfiguration<KinesisClient>, input: DescribeStreamCommandInput) => Promise<WaiterResult<ResourceNotFoundException>>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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-kinesis",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
|
-
"@aws-sdk/core": "^3.974.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
30
|
+
"@aws-sdk/core": "^3.974.7",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "^3.972.38",
|
|
32
32
|
"@aws-sdk/middleware-host-header": "^3.972.10",
|
|
33
33
|
"@aws-sdk/middleware-logger": "^3.972.10",
|
|
34
34
|
"@aws-sdk/middleware-recursion-detection": "^3.972.11",
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "^3.972.37",
|
|
36
36
|
"@aws-sdk/region-config-resolver": "^3.972.13",
|
|
37
37
|
"@aws-sdk/types": "^3.973.8",
|
|
38
38
|
"@aws-sdk/util-endpoints": "^3.996.8",
|
|
39
39
|
"@aws-sdk/util-user-agent-browser": "^3.972.10",
|
|
40
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
40
|
+
"@aws-sdk/util-user-agent-node": "^3.973.23",
|
|
41
41
|
"@smithy/config-resolver": "^4.4.17",
|
|
42
42
|
"@smithy/core": "^3.23.17",
|
|
43
43
|
"@smithy/eventstream-serde-browser": "^4.2.14",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@smithy/invalid-dependency": "^4.2.14",
|
|
49
49
|
"@smithy/middleware-content-length": "^4.2.14",
|
|
50
50
|
"@smithy/middleware-endpoint": "^4.4.32",
|
|
51
|
-
"@smithy/middleware-retry": "^4.5.
|
|
51
|
+
"@smithy/middleware-retry": "^4.5.7",
|
|
52
52
|
"@smithy/middleware-serde": "^4.2.20",
|
|
53
53
|
"@smithy/middleware-stack": "^4.2.14",
|
|
54
54
|
"@smithy/node-config-provider": "^4.3.14",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@smithy/util-defaults-mode-node": "^4.2.54",
|
|
65
65
|
"@smithy/util-endpoints": "^3.4.2",
|
|
66
66
|
"@smithy/util-middleware": "^4.2.14",
|
|
67
|
-
"@smithy/util-retry": "^4.3.
|
|
67
|
+
"@smithy/util-retry": "^4.3.6",
|
|
68
68
|
"@smithy/util-utf8": "^4.2.2",
|
|
69
|
-
"@smithy/util-waiter": "^4.
|
|
69
|
+
"@smithy/util-waiter": "^4.3.0",
|
|
70
70
|
"tslib": "^2.6.2"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|