@aws-sdk/client-kinesis 3.975.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 +53 -45
- package/dist-es/Kinesis.js +13 -1
- package/dist-types/Kinesis.d.ts +28 -1
- package/dist-types/ts3.4/Kinesis.d.ts +39 -1
- package/package.json +17 -17
package/dist-cjs/index.js
CHANGED
|
@@ -1816,51 +1816,6 @@ class UpdateStreamWarmThroughputCommand extends smithyClient.Command
|
|
|
1816
1816
|
.build() {
|
|
1817
1817
|
}
|
|
1818
1818
|
|
|
1819
|
-
const commands = {
|
|
1820
|
-
AddTagsToStreamCommand,
|
|
1821
|
-
CreateStreamCommand,
|
|
1822
|
-
DecreaseStreamRetentionPeriodCommand,
|
|
1823
|
-
DeleteResourcePolicyCommand,
|
|
1824
|
-
DeleteStreamCommand,
|
|
1825
|
-
DeregisterStreamConsumerCommand,
|
|
1826
|
-
DescribeAccountSettingsCommand,
|
|
1827
|
-
DescribeLimitsCommand,
|
|
1828
|
-
DescribeStreamCommand,
|
|
1829
|
-
DescribeStreamConsumerCommand,
|
|
1830
|
-
DescribeStreamSummaryCommand,
|
|
1831
|
-
DisableEnhancedMonitoringCommand,
|
|
1832
|
-
EnableEnhancedMonitoringCommand,
|
|
1833
|
-
GetRecordsCommand,
|
|
1834
|
-
GetResourcePolicyCommand,
|
|
1835
|
-
GetShardIteratorCommand,
|
|
1836
|
-
IncreaseStreamRetentionPeriodCommand,
|
|
1837
|
-
ListShardsCommand,
|
|
1838
|
-
ListStreamConsumersCommand,
|
|
1839
|
-
ListStreamsCommand,
|
|
1840
|
-
ListTagsForResourceCommand,
|
|
1841
|
-
ListTagsForStreamCommand,
|
|
1842
|
-
MergeShardsCommand,
|
|
1843
|
-
PutRecordCommand,
|
|
1844
|
-
PutRecordsCommand,
|
|
1845
|
-
PutResourcePolicyCommand,
|
|
1846
|
-
RegisterStreamConsumerCommand,
|
|
1847
|
-
RemoveTagsFromStreamCommand,
|
|
1848
|
-
SplitShardCommand,
|
|
1849
|
-
StartStreamEncryptionCommand,
|
|
1850
|
-
StopStreamEncryptionCommand,
|
|
1851
|
-
SubscribeToShardCommand,
|
|
1852
|
-
TagResourceCommand,
|
|
1853
|
-
UntagResourceCommand,
|
|
1854
|
-
UpdateAccountSettingsCommand,
|
|
1855
|
-
UpdateMaxRecordSizeCommand,
|
|
1856
|
-
UpdateShardCountCommand,
|
|
1857
|
-
UpdateStreamModeCommand,
|
|
1858
|
-
UpdateStreamWarmThroughputCommand,
|
|
1859
|
-
};
|
|
1860
|
-
class Kinesis extends KinesisClient {
|
|
1861
|
-
}
|
|
1862
|
-
smithyClient.createAggregatedClient(commands, Kinesis);
|
|
1863
|
-
|
|
1864
1819
|
const paginateListStreamConsumers = core.createPaginator(KinesisClient, ListStreamConsumersCommand, "NextToken", "NextToken", "MaxResults");
|
|
1865
1820
|
|
|
1866
1821
|
const paginateListStreams = core.createPaginator(KinesisClient, ListStreamsCommand, "NextToken", "NextToken", "Limit");
|
|
@@ -1919,6 +1874,59 @@ const waitUntilStreamNotExists = async (params, input) => {
|
|
|
1919
1874
|
return utilWaiter.checkExceptions(result);
|
|
1920
1875
|
};
|
|
1921
1876
|
|
|
1877
|
+
const commands = {
|
|
1878
|
+
AddTagsToStreamCommand,
|
|
1879
|
+
CreateStreamCommand,
|
|
1880
|
+
DecreaseStreamRetentionPeriodCommand,
|
|
1881
|
+
DeleteResourcePolicyCommand,
|
|
1882
|
+
DeleteStreamCommand,
|
|
1883
|
+
DeregisterStreamConsumerCommand,
|
|
1884
|
+
DescribeAccountSettingsCommand,
|
|
1885
|
+
DescribeLimitsCommand,
|
|
1886
|
+
DescribeStreamCommand,
|
|
1887
|
+
DescribeStreamConsumerCommand,
|
|
1888
|
+
DescribeStreamSummaryCommand,
|
|
1889
|
+
DisableEnhancedMonitoringCommand,
|
|
1890
|
+
EnableEnhancedMonitoringCommand,
|
|
1891
|
+
GetRecordsCommand,
|
|
1892
|
+
GetResourcePolicyCommand,
|
|
1893
|
+
GetShardIteratorCommand,
|
|
1894
|
+
IncreaseStreamRetentionPeriodCommand,
|
|
1895
|
+
ListShardsCommand,
|
|
1896
|
+
ListStreamConsumersCommand,
|
|
1897
|
+
ListStreamsCommand,
|
|
1898
|
+
ListTagsForResourceCommand,
|
|
1899
|
+
ListTagsForStreamCommand,
|
|
1900
|
+
MergeShardsCommand,
|
|
1901
|
+
PutRecordCommand,
|
|
1902
|
+
PutRecordsCommand,
|
|
1903
|
+
PutResourcePolicyCommand,
|
|
1904
|
+
RegisterStreamConsumerCommand,
|
|
1905
|
+
RemoveTagsFromStreamCommand,
|
|
1906
|
+
SplitShardCommand,
|
|
1907
|
+
StartStreamEncryptionCommand,
|
|
1908
|
+
StopStreamEncryptionCommand,
|
|
1909
|
+
SubscribeToShardCommand,
|
|
1910
|
+
TagResourceCommand,
|
|
1911
|
+
UntagResourceCommand,
|
|
1912
|
+
UpdateAccountSettingsCommand,
|
|
1913
|
+
UpdateMaxRecordSizeCommand,
|
|
1914
|
+
UpdateShardCountCommand,
|
|
1915
|
+
UpdateStreamModeCommand,
|
|
1916
|
+
UpdateStreamWarmThroughputCommand,
|
|
1917
|
+
};
|
|
1918
|
+
const paginators = {
|
|
1919
|
+
paginateListStreamConsumers,
|
|
1920
|
+
paginateListStreams,
|
|
1921
|
+
};
|
|
1922
|
+
const waiters = {
|
|
1923
|
+
waitUntilStreamExists,
|
|
1924
|
+
waitUntilStreamNotExists,
|
|
1925
|
+
};
|
|
1926
|
+
class Kinesis extends KinesisClient {
|
|
1927
|
+
}
|
|
1928
|
+
smithyClient.createAggregatedClient(commands, Kinesis, { paginators, waiters });
|
|
1929
|
+
|
|
1922
1930
|
const ConsumerStatus = {
|
|
1923
1931
|
ACTIVE: "ACTIVE",
|
|
1924
1932
|
CREATING: "CREATING",
|
package/dist-es/Kinesis.js
CHANGED
|
@@ -39,6 +39,10 @@ import { UpdateShardCountCommand, } from "./commands/UpdateShardCountCommand";
|
|
|
39
39
|
import { UpdateStreamModeCommand, } from "./commands/UpdateStreamModeCommand";
|
|
40
40
|
import { UpdateStreamWarmThroughputCommand, } from "./commands/UpdateStreamWarmThroughputCommand";
|
|
41
41
|
import { KinesisClient } from "./KinesisClient";
|
|
42
|
+
import { paginateListStreamConsumers } from "./pagination/ListStreamConsumersPaginator";
|
|
43
|
+
import { paginateListStreams } from "./pagination/ListStreamsPaginator";
|
|
44
|
+
import { waitUntilStreamExists } from "./waiters/waitForStreamExists";
|
|
45
|
+
import { waitUntilStreamNotExists } from "./waiters/waitForStreamNotExists";
|
|
42
46
|
const commands = {
|
|
43
47
|
AddTagsToStreamCommand,
|
|
44
48
|
CreateStreamCommand,
|
|
@@ -80,6 +84,14 @@ const commands = {
|
|
|
80
84
|
UpdateStreamModeCommand,
|
|
81
85
|
UpdateStreamWarmThroughputCommand,
|
|
82
86
|
};
|
|
87
|
+
const paginators = {
|
|
88
|
+
paginateListStreamConsumers,
|
|
89
|
+
paginateListStreams,
|
|
90
|
+
};
|
|
91
|
+
const waiters = {
|
|
92
|
+
waitUntilStreamExists,
|
|
93
|
+
waitUntilStreamNotExists,
|
|
94
|
+
};
|
|
83
95
|
export class Kinesis extends KinesisClient {
|
|
84
96
|
}
|
|
85
|
-
createAggregatedClient(commands, Kinesis);
|
|
97
|
+
createAggregatedClient(commands, Kinesis, { paginators, waiters });
|
package/dist-types/Kinesis.d.ts
CHANGED
|
@@ -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 { AddTagsToStreamCommandInput, AddTagsToStreamCommandOutput } from "./commands/AddTagsToStreamCommand";
|
|
3
4
|
import { CreateStreamCommandInput, CreateStreamCommandOutput } from "./commands/CreateStreamCommand";
|
|
4
5
|
import { DecreaseStreamRetentionPeriodCommandInput, DecreaseStreamRetentionPeriodCommandOutput } from "./commands/DecreaseStreamRetentionPeriodCommand";
|
|
@@ -284,6 +285,32 @@ export interface Kinesis {
|
|
|
284
285
|
updateStreamWarmThroughput(args: UpdateStreamWarmThroughputCommandInput, options?: __HttpHandlerOptions): Promise<UpdateStreamWarmThroughputCommandOutput>;
|
|
285
286
|
updateStreamWarmThroughput(args: UpdateStreamWarmThroughputCommandInput, cb: (err: any, data?: UpdateStreamWarmThroughputCommandOutput) => void): void;
|
|
286
287
|
updateStreamWarmThroughput(args: UpdateStreamWarmThroughputCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateStreamWarmThroughputCommandOutput) => void): void;
|
|
288
|
+
/**
|
|
289
|
+
* @see {@link ListStreamConsumersCommand}
|
|
290
|
+
* @param args - command input.
|
|
291
|
+
* @param paginationConfig - optional pagination config.
|
|
292
|
+
* @returns AsyncIterable of {@link ListStreamConsumersCommandOutput}.
|
|
293
|
+
*/
|
|
294
|
+
paginateListStreamConsumers(args: ListStreamConsumersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListStreamConsumersCommandOutput>;
|
|
295
|
+
/**
|
|
296
|
+
* @see {@link ListStreamsCommand}
|
|
297
|
+
* @param args - command input.
|
|
298
|
+
* @param paginationConfig - optional pagination config.
|
|
299
|
+
* @returns AsyncIterable of {@link ListStreamsCommandOutput}.
|
|
300
|
+
*/
|
|
301
|
+
paginateListStreams(args?: ListStreamsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListStreamsCommandOutput>;
|
|
302
|
+
/**
|
|
303
|
+
* @see {@link DescribeStreamCommand}
|
|
304
|
+
* @param args - command input.
|
|
305
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
306
|
+
*/
|
|
307
|
+
waitUntilStreamExists(args: DescribeStreamCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Kinesis>, "client">): Promise<WaiterResult>;
|
|
308
|
+
/**
|
|
309
|
+
* @see {@link DescribeStreamCommand}
|
|
310
|
+
* @param args - command input.
|
|
311
|
+
* @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
|
|
312
|
+
*/
|
|
313
|
+
waitUntilStreamNotExists(args: DescribeStreamCommandInput, waiterConfig: number | Omit<WaiterConfiguration<Kinesis>, "client">): Promise<WaiterResult>;
|
|
287
314
|
}
|
|
288
315
|
/**
|
|
289
316
|
* <fullname>Amazon Kinesis Data Streams Service API Reference</fullname>
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
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
|
AddTagsToStreamCommandInput,
|
|
4
10
|
AddTagsToStreamCommandOutput,
|
|
@@ -674,5 +680,37 @@ export interface Kinesis {
|
|
|
674
680
|
options: __HttpHandlerOptions,
|
|
675
681
|
cb: (err: any, data?: UpdateStreamWarmThroughputCommandOutput) => void
|
|
676
682
|
): void;
|
|
683
|
+
paginateListStreamConsumers(
|
|
684
|
+
args: ListStreamConsumersCommandInput,
|
|
685
|
+
paginationConfig?: Pick<
|
|
686
|
+
PaginationConfiguration,
|
|
687
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
688
|
+
>
|
|
689
|
+
): Paginator<ListStreamConsumersCommandOutput>;
|
|
690
|
+
paginateListStreams(
|
|
691
|
+
args?: ListStreamsCommandInput,
|
|
692
|
+
paginationConfig?: Pick<
|
|
693
|
+
PaginationConfiguration,
|
|
694
|
+
Exclude<keyof PaginationConfiguration, "client">
|
|
695
|
+
>
|
|
696
|
+
): Paginator<ListStreamsCommandOutput>;
|
|
697
|
+
waitUntilStreamExists(
|
|
698
|
+
args: DescribeStreamCommandInput,
|
|
699
|
+
waiterConfig:
|
|
700
|
+
| number
|
|
701
|
+
| Pick<
|
|
702
|
+
WaiterConfiguration<Kinesis>,
|
|
703
|
+
Exclude<keyof WaiterConfiguration<Kinesis>, "client">
|
|
704
|
+
>
|
|
705
|
+
): Promise<WaiterResult>;
|
|
706
|
+
waitUntilStreamNotExists(
|
|
707
|
+
args: DescribeStreamCommandInput,
|
|
708
|
+
waiterConfig:
|
|
709
|
+
| number
|
|
710
|
+
| Pick<
|
|
711
|
+
WaiterConfiguration<Kinesis>,
|
|
712
|
+
Exclude<keyof WaiterConfiguration<Kinesis>, "client">
|
|
713
|
+
>
|
|
714
|
+
): Promise<WaiterResult>;
|
|
677
715
|
}
|
|
678
716
|
export declare class Kinesis extends KinesisClient implements Kinesis {}
|
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.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-kinesis",
|
|
@@ -23,19 +23,19 @@
|
|
|
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.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "^3.972.
|
|
29
|
-
"@aws-sdk/middleware-logger": "^3.972.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "^3.972.
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
33
|
-
"@aws-sdk/types": "^3.973.
|
|
26
|
+
"@aws-sdk/core": "^3.973.4",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.2",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "^3.972.2",
|
|
29
|
+
"@aws-sdk/middleware-logger": "^3.972.2",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "^3.972.2",
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.4",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "^3.972.2",
|
|
33
|
+
"@aws-sdk/types": "^3.973.1",
|
|
34
34
|
"@aws-sdk/util-endpoints": "3.972.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-browser": "^3.972.
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
35
|
+
"@aws-sdk/util-user-agent-browser": "^3.972.2",
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.972.2",
|
|
37
37
|
"@smithy/config-resolver": "^4.4.6",
|
|
38
|
-
"@smithy/core": "^3.
|
|
38
|
+
"@smithy/core": "^3.22.0",
|
|
39
39
|
"@smithy/eventstream-serde-browser": "^4.2.8",
|
|
40
40
|
"@smithy/eventstream-serde-config-resolver": "^4.3.8",
|
|
41
41
|
"@smithy/eventstream-serde-node": "^4.2.8",
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"@smithy/hash-node": "^4.2.8",
|
|
44
44
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
45
45
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
46
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
47
|
-
"@smithy/middleware-retry": "^4.4.
|
|
46
|
+
"@smithy/middleware-endpoint": "^4.4.12",
|
|
47
|
+
"@smithy/middleware-retry": "^4.4.29",
|
|
48
48
|
"@smithy/middleware-serde": "^4.2.9",
|
|
49
49
|
"@smithy/middleware-stack": "^4.2.8",
|
|
50
50
|
"@smithy/node-config-provider": "^4.3.8",
|
|
51
51
|
"@smithy/node-http-handler": "^4.4.8",
|
|
52
52
|
"@smithy/protocol-http": "^5.3.8",
|
|
53
|
-
"@smithy/smithy-client": "^4.
|
|
53
|
+
"@smithy/smithy-client": "^4.11.1",
|
|
54
54
|
"@smithy/types": "^4.12.0",
|
|
55
55
|
"@smithy/url-parser": "^4.2.8",
|
|
56
56
|
"@smithy/util-base64": "^4.3.0",
|
|
57
57
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
58
58
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
59
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
60
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
59
|
+
"@smithy/util-defaults-mode-browser": "^4.3.28",
|
|
60
|
+
"@smithy/util-defaults-mode-node": "^4.2.31",
|
|
61
61
|
"@smithy/util-endpoints": "^3.2.8",
|
|
62
62
|
"@smithy/util-middleware": "^4.2.8",
|
|
63
63
|
"@smithy/util-retry": "^4.2.8",
|