@aws-sdk/client-kinesis 3.36.0 → 3.39.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/CHANGELOG.md +42 -0
- package/dist-cjs/Kinesis.js +0 -5
- package/dist-cjs/KinesisClient.js +0 -10
- package/dist-cjs/commands/AddTagsToStreamCommand.js +0 -32
- package/dist-cjs/commands/CreateStreamCommand.js +0 -64
- package/dist-cjs/commands/DecreaseStreamRetentionPeriodCommand.js +0 -29
- package/dist-cjs/commands/DeleteStreamCommand.js +0 -42
- package/dist-cjs/commands/DeregisterStreamConsumerCommand.js +0 -31
- package/dist-cjs/commands/DescribeLimitsCommand.js +0 -27
- package/dist-cjs/commands/DescribeStreamCommand.js +0 -40
- package/dist-cjs/commands/DescribeStreamConsumerCommand.js +0 -31
- package/dist-cjs/commands/DescribeStreamSummaryCommand.js +0 -31
- package/dist-cjs/commands/DisableEnhancedMonitoringCommand.js +0 -24
- package/dist-cjs/commands/EnableEnhancedMonitoringCommand.js +0 -24
- package/dist-cjs/commands/GetRecordsCommand.js +0 -70
- package/dist-cjs/commands/GetShardIteratorCommand.js +0 -57
- package/dist-cjs/commands/IncreaseStreamRetentionPeriodCommand.js +0 -32
- package/dist-cjs/commands/ListShardsCommand.js +0 -32
- package/dist-cjs/commands/ListStreamConsumersCommand.js +0 -26
- package/dist-cjs/commands/ListStreamsCommand.js +0 -39
- package/dist-cjs/commands/ListTagsForStreamCommand.js +0 -25
- package/dist-cjs/commands/MergeShardsCommand.js +0 -59
- package/dist-cjs/commands/PutRecordCommand.js +0 -59
- package/dist-cjs/commands/PutRecordsCommand.js +0 -79
- package/dist-cjs/commands/RegisterStreamConsumerCommand.js +0 -37
- package/dist-cjs/commands/RemoveTagsFromStreamCommand.js +0 -29
- package/dist-cjs/commands/SplitShardCommand.js +0 -65
- package/dist-cjs/commands/StartStreamEncryptionCommand.js +0 -39
- package/dist-cjs/commands/StopStreamEncryptionCommand.js +0 -39
- package/dist-cjs/commands/SubscribeToShardCommand.js +0 -45
- package/dist-cjs/commands/UpdateShardCountCommand.js +0 -67
- package/dist-cjs/commands/index.js +31 -0
- package/dist-cjs/endpoints.js +6 -1
- package/dist-cjs/index.js +5 -34
- package/dist-cjs/models/models_0.js +0 -225
- package/dist-cjs/pagination/ListStreamConsumersPaginator.js +0 -10
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-cjs/waiters/waitForStreamExists.js +0 -9
- package/dist-cjs/waiters/waitForStreamNotExists.js +0 -9
- package/dist-es/commands/index.js +28 -0
- package/dist-es/endpoints.js +6 -1
- package/dist-es/index.js +5 -34
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-types/commands/index.d.ts +28 -0
- package/dist-types/index.d.ts +5 -34
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/Kinesis.d.ts +29 -591
- package/dist-types/ts3.4/KinesisClient.d.ts +25 -94
- package/dist-types/ts3.4/commands/AddTagsToStreamCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/CreateStreamCommand.d.ts +2 -60
- package/dist-types/ts3.4/commands/DecreaseStreamRetentionPeriodCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DeleteStreamCommand.d.ts +2 -38
- package/dist-types/ts3.4/commands/DeregisterStreamConsumerCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DescribeLimitsCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/DescribeStreamCommand.d.ts +2 -36
- package/dist-types/ts3.4/commands/DescribeStreamConsumerCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DescribeStreamSummaryCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/DisableEnhancedMonitoringCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/EnableEnhancedMonitoringCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetRecordsCommand.d.ts +2 -66
- package/dist-types/ts3.4/commands/GetShardIteratorCommand.d.ts +2 -53
- package/dist-types/ts3.4/commands/IncreaseStreamRetentionPeriodCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListShardsCommand.d.ts +2 -28
- package/dist-types/ts3.4/commands/ListStreamConsumersCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/ListTagsForStreamCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/MergeShardsCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/PutRecordCommand.d.ts +2 -55
- package/dist-types/ts3.4/commands/PutRecordsCommand.d.ts +2 -75
- package/dist-types/ts3.4/commands/RegisterStreamConsumerCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/RemoveTagsFromStreamCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/SplitShardCommand.d.ts +2 -61
- package/dist-types/ts3.4/commands/StartStreamEncryptionCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/StopStreamEncryptionCommand.d.ts +2 -35
- package/dist-types/ts3.4/commands/SubscribeToShardCommand.d.ts +2 -41
- package/dist-types/ts3.4/commands/UpdateShardCountCommand.d.ts +2 -63
- package/dist-types/ts3.4/commands/index.d.ts +28 -0
- package/dist-types/ts3.4/index.d.ts +5 -34
- package/dist-types/ts3.4/models/models_0.d.ts +316 -1659
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForStreamExists.d.ts +2 -9
- package/dist-types/ts3.4/waiters/waitForStreamNotExists.d.ts +2 -9
- package/dist-types/waiters/index.d.ts +2 -0
- package/package.json +36 -36
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,48 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-kinesis
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
20
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
6
48
|
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
49
|
|
|
8
50
|
|
package/dist-cjs/Kinesis.js
CHANGED
|
@@ -30,11 +30,6 @@ const StopStreamEncryptionCommand_1 = require("./commands/StopStreamEncryptionCo
|
|
|
30
30
|
const SubscribeToShardCommand_1 = require("./commands/SubscribeToShardCommand");
|
|
31
31
|
const UpdateShardCountCommand_1 = require("./commands/UpdateShardCountCommand");
|
|
32
32
|
const KinesisClient_1 = require("./KinesisClient");
|
|
33
|
-
/**
|
|
34
|
-
* <fullname>Amazon Kinesis Data Streams Service API Reference</fullname>
|
|
35
|
-
* <p>Amazon Kinesis Data Streams is a managed service that scales elastically for
|
|
36
|
-
* real-time processing of streaming big data.</p>
|
|
37
|
-
*/
|
|
38
33
|
class Kinesis extends KinesisClient_1.KinesisClient {
|
|
39
34
|
addTagsToStream(args, optionsOrCb, cb) {
|
|
40
35
|
const command = new AddTagsToStreamCommand_1.AddTagsToStreamCommand(args);
|
|
@@ -11,11 +11,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
|
11
11
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
12
12
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
13
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
14
|
-
/**
|
|
15
|
-
* <fullname>Amazon Kinesis Data Streams Service API Reference</fullname>
|
|
16
|
-
* <p>Amazon Kinesis Data Streams is a managed service that scales elastically for
|
|
17
|
-
* real-time processing of streaming big data.</p>
|
|
18
|
-
*/
|
|
19
14
|
class KinesisClient extends smithy_client_1.Client {
|
|
20
15
|
constructor(configuration) {
|
|
21
16
|
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
@@ -35,11 +30,6 @@ class KinesisClient extends smithy_client_1.Client {
|
|
|
35
30
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
36
31
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
37
32
|
}
|
|
38
|
-
/**
|
|
39
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
40
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
41
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
42
|
-
*/
|
|
43
33
|
destroy() {
|
|
44
34
|
super.destroy();
|
|
45
35
|
}
|
|
@@ -5,43 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Adds or updates tags for the specified Kinesis data stream. Each time you invoke
|
|
10
|
-
* this operation, you can specify up to 10 tags. If you want to add more than 10 tags to
|
|
11
|
-
* your stream, you can invoke this operation multiple times. In total, each stream can
|
|
12
|
-
* have up to 50 tags.</p>
|
|
13
|
-
* <p>If tags have already been assigned to the stream, <code>AddTagsToStream</code>
|
|
14
|
-
* overwrites any existing tags that correspond to the specified tag keys.</p>
|
|
15
|
-
* <p>
|
|
16
|
-
* <a>AddTagsToStream</a> has a limit of five transactions per second per
|
|
17
|
-
* account.</p>
|
|
18
|
-
* @example
|
|
19
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
20
|
-
* ```javascript
|
|
21
|
-
* import { KinesisClient, AddTagsToStreamCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
22
|
-
* // const { KinesisClient, AddTagsToStreamCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
23
|
-
* const client = new KinesisClient(config);
|
|
24
|
-
* const command = new AddTagsToStreamCommand(input);
|
|
25
|
-
* const response = await client.send(command);
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @see {@link AddTagsToStreamCommandInput} for command's `input` shape.
|
|
29
|
-
* @see {@link AddTagsToStreamCommandOutput} for command's `response` shape.
|
|
30
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
31
|
-
*
|
|
32
|
-
*/
|
|
33
8
|
class AddTagsToStreamCommand extends smithy_client_1.Command {
|
|
34
|
-
// Start section: command_properties
|
|
35
|
-
// End section: command_properties
|
|
36
9
|
constructor(input) {
|
|
37
|
-
// Start section: command_constructor
|
|
38
10
|
super();
|
|
39
11
|
this.input = input;
|
|
40
|
-
// End section: command_constructor
|
|
41
12
|
}
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
46
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
47
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,75 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Creates a Kinesis data stream. A stream captures and transports data records that
|
|
10
|
-
* are continuously emitted from different data sources or <i>producers</i>.
|
|
11
|
-
* Scale-out within a stream is explicitly supported by means of shards, which are uniquely
|
|
12
|
-
* identified groups of data records in a stream.</p>
|
|
13
|
-
* <p>You specify and control the number of shards that a stream is composed of. Each
|
|
14
|
-
* shard can support reads up to five transactions per second, up to a maximum data read
|
|
15
|
-
* total of 2 MiB per second. Each shard can support writes up to 1,000 records per second,
|
|
16
|
-
* up to a maximum data write total of 1 MiB per second. If the amount of data input
|
|
17
|
-
* increases or decreases, you can add or remove shards.</p>
|
|
18
|
-
* <p>The stream name identifies the stream. The name is scoped to the AWS account used
|
|
19
|
-
* by the application. It is also scoped by AWS Region. That is, two streams in two
|
|
20
|
-
* different accounts can have the same name, and two streams in the same account, but in
|
|
21
|
-
* two different Regions, can have the same name.</p>
|
|
22
|
-
* <p>
|
|
23
|
-
* <code>CreateStream</code> is an asynchronous operation. Upon receiving a
|
|
24
|
-
* <code>CreateStream</code> request, Kinesis Data Streams immediately returns and sets
|
|
25
|
-
* the stream status to <code>CREATING</code>. After the stream is created, Kinesis Data
|
|
26
|
-
* Streams sets the stream status to <code>ACTIVE</code>. You should perform read and write
|
|
27
|
-
* operations only on an <code>ACTIVE</code> stream. </p>
|
|
28
|
-
* <p>You receive a <code>LimitExceededException</code> when making a
|
|
29
|
-
* <code>CreateStream</code> request when you try to do one of the following:</p>
|
|
30
|
-
* <ul>
|
|
31
|
-
* <li>
|
|
32
|
-
*
|
|
33
|
-
* <p>Have more than five streams in the <code>CREATING</code> state at any point
|
|
34
|
-
* in time.</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* <li>
|
|
37
|
-
*
|
|
38
|
-
* <p>Create more shards than are authorized for your account.</p>
|
|
39
|
-
* </li>
|
|
40
|
-
* </ul>
|
|
41
|
-
* <p>For the default shard limit for an AWS account, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Amazon Kinesis Data Streams
|
|
42
|
-
* Limits</a> in the <i>Amazon Kinesis Data Streams Developer
|
|
43
|
-
* Guide</i>. To increase this limit, <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">contact AWS
|
|
44
|
-
* Support</a>.</p>
|
|
45
|
-
* <p>You can use <code>DescribeStream</code> to check the stream status, which is
|
|
46
|
-
* returned in <code>StreamStatus</code>.</p>
|
|
47
|
-
* <p>
|
|
48
|
-
* <a>CreateStream</a> has a limit of five transactions per second per
|
|
49
|
-
* account.</p>
|
|
50
|
-
* @example
|
|
51
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
52
|
-
* ```javascript
|
|
53
|
-
* import { KinesisClient, CreateStreamCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
54
|
-
* // const { KinesisClient, CreateStreamCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
55
|
-
* const client = new KinesisClient(config);
|
|
56
|
-
* const command = new CreateStreamCommand(input);
|
|
57
|
-
* const response = await client.send(command);
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* @see {@link CreateStreamCommandInput} for command's `input` shape.
|
|
61
|
-
* @see {@link CreateStreamCommandOutput} for command's `response` shape.
|
|
62
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
63
|
-
*
|
|
64
|
-
*/
|
|
65
8
|
class CreateStreamCommand extends smithy_client_1.Command {
|
|
66
|
-
// Start section: command_properties
|
|
67
|
-
// End section: command_properties
|
|
68
9
|
constructor(input) {
|
|
69
|
-
// Start section: command_constructor
|
|
70
10
|
super();
|
|
71
11
|
this.input = input;
|
|
72
|
-
// End section: command_constructor
|
|
73
12
|
}
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
77
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
78
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
79
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Decreases the Kinesis data stream's retention period, which is the length of time
|
|
10
|
-
* data records are accessible after they are added to the stream. The minimum value of a
|
|
11
|
-
* stream's retention period is 24 hours.</p>
|
|
12
|
-
* <p>This operation may result in lost data. For example, if the stream's retention
|
|
13
|
-
* period is 48 hours and is decreased to 24 hours, any data already in the stream that is
|
|
14
|
-
* older than 24 hours is inaccessible.</p>
|
|
15
|
-
* @example
|
|
16
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
-
* ```javascript
|
|
18
|
-
* import { KinesisClient, DecreaseStreamRetentionPeriodCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
19
|
-
* // const { KinesisClient, DecreaseStreamRetentionPeriodCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
20
|
-
* const client = new KinesisClient(config);
|
|
21
|
-
* const command = new DecreaseStreamRetentionPeriodCommand(input);
|
|
22
|
-
* const response = await client.send(command);
|
|
23
|
-
* ```
|
|
24
|
-
*
|
|
25
|
-
* @see {@link DecreaseStreamRetentionPeriodCommandInput} for command's `input` shape.
|
|
26
|
-
* @see {@link DecreaseStreamRetentionPeriodCommandOutput} for command's `response` shape.
|
|
27
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
8
|
class DecreaseStreamRetentionPeriodCommand extends smithy_client_1.Command {
|
|
31
|
-
// Start section: command_properties
|
|
32
|
-
// End section: command_properties
|
|
33
9
|
constructor(input) {
|
|
34
|
-
// Start section: command_constructor
|
|
35
10
|
super();
|
|
36
11
|
this.input = input;
|
|
37
|
-
// End section: command_constructor
|
|
38
12
|
}
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
43
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
44
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,53 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes a Kinesis data stream and all its shards and data. You must shut down any
|
|
10
|
-
* applications that are operating on the stream before you delete the stream. If an
|
|
11
|
-
* application attempts to operate on a deleted stream, it receives the exception
|
|
12
|
-
* <code>ResourceNotFoundException</code>.</p>
|
|
13
|
-
* <p>If the stream is in the <code>ACTIVE</code> state, you can delete it. After a
|
|
14
|
-
* <code>DeleteStream</code> request, the specified stream is in the
|
|
15
|
-
* <code>DELETING</code> state until Kinesis Data Streams completes the
|
|
16
|
-
* deletion.</p>
|
|
17
|
-
* <p>
|
|
18
|
-
* <b>Note:</b> Kinesis Data Streams might continue to accept
|
|
19
|
-
* data read and write operations, such as <a>PutRecord</a>, <a>PutRecords</a>, and <a>GetRecords</a>, on a stream in the
|
|
20
|
-
* <code>DELETING</code> state until the stream deletion is complete.</p>
|
|
21
|
-
* <p>When you delete a stream, any shards in that stream are also deleted, and any tags
|
|
22
|
-
* are dissociated from the stream.</p>
|
|
23
|
-
* <p>You can use the <a>DescribeStream</a> operation to check the state of
|
|
24
|
-
* the stream, which is returned in <code>StreamStatus</code>.</p>
|
|
25
|
-
* <p>
|
|
26
|
-
* <a>DeleteStream</a> has a limit of five transactions per second per
|
|
27
|
-
* account.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { KinesisClient, DeleteStreamCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
32
|
-
* // const { KinesisClient, DeleteStreamCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
33
|
-
* const client = new KinesisClient(config);
|
|
34
|
-
* const command = new DeleteStreamCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link DeleteStreamCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link DeleteStreamCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
43
8
|
class DeleteStreamCommand extends smithy_client_1.Command {
|
|
44
|
-
// Start section: command_properties
|
|
45
|
-
// End section: command_properties
|
|
46
9
|
constructor(input) {
|
|
47
|
-
// Start section: command_constructor
|
|
48
10
|
super();
|
|
49
11
|
this.input = input;
|
|
50
|
-
// End section: command_constructor
|
|
51
12
|
}
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
56
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
57
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,42 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>To deregister a consumer, provide its ARN. Alternatively, you can provide the ARN of
|
|
10
|
-
* the data stream and the name you gave the consumer when you registered it. You may also
|
|
11
|
-
* provide all three parameters, as long as they don't conflict with each other. If you
|
|
12
|
-
* don't know the name or ARN of the consumer that you want to deregister, you can use the
|
|
13
|
-
* <a>ListStreamConsumers</a> operation to get a list of the descriptions of
|
|
14
|
-
* all the consumers that are currently registered with a given data stream. The
|
|
15
|
-
* description of a consumer contains its name and ARN.</p>
|
|
16
|
-
* <p>This operation has a limit of five transactions per second per stream.</p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { KinesisClient, DeregisterStreamConsumerCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
21
|
-
* // const { KinesisClient, DeregisterStreamConsumerCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
22
|
-
* const client = new KinesisClient(config);
|
|
23
|
-
* const command = new DeregisterStreamConsumerCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link DeregisterStreamConsumerCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link DeregisterStreamConsumerCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
8
|
class DeregisterStreamConsumerCommand extends smithy_client_1.Command {
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
9
|
constructor(input) {
|
|
36
|
-
// Start section: command_constructor
|
|
37
10
|
super();
|
|
38
11
|
this.input = input;
|
|
39
|
-
// End section: command_constructor
|
|
40
12
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
45
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
46
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,38 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Describes the shard limits and usage for the account.</p>
|
|
10
|
-
* <p>If you update your account limits, the old limits might be returned for a few
|
|
11
|
-
* minutes.</p>
|
|
12
|
-
* <p>This operation has a limit of one transaction per second per account.</p>
|
|
13
|
-
* @example
|
|
14
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
15
|
-
* ```javascript
|
|
16
|
-
* import { KinesisClient, DescribeLimitsCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
17
|
-
* // const { KinesisClient, DescribeLimitsCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
18
|
-
* const client = new KinesisClient(config);
|
|
19
|
-
* const command = new DescribeLimitsCommand(input);
|
|
20
|
-
* const response = await client.send(command);
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @see {@link DescribeLimitsCommandInput} for command's `input` shape.
|
|
24
|
-
* @see {@link DescribeLimitsCommandOutput} for command's `response` shape.
|
|
25
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
8
|
class DescribeLimitsCommand extends smithy_client_1.Command {
|
|
29
|
-
// Start section: command_properties
|
|
30
|
-
// End section: command_properties
|
|
31
9
|
constructor(input) {
|
|
32
|
-
// Start section: command_constructor
|
|
33
10
|
super();
|
|
34
11
|
this.input = input;
|
|
35
|
-
// End section: command_constructor
|
|
36
12
|
}
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
*/
|
|
40
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
41
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
42
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,51 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Describes the specified Kinesis data stream.</p>
|
|
10
|
-
*
|
|
11
|
-
* <p>The information returned includes the stream name, Amazon Resource Name (ARN),
|
|
12
|
-
* creation time, enhanced metric configuration, and shard map. The shard map is an array
|
|
13
|
-
* of shard objects. For each shard object, there is the hash key and sequence number
|
|
14
|
-
* ranges that the shard spans, and the IDs of any earlier shards that played in a role in
|
|
15
|
-
* creating the shard. Every record ingested in the stream is identified by a sequence
|
|
16
|
-
* number, which is assigned when the record is put into the stream.</p>
|
|
17
|
-
*
|
|
18
|
-
* <p>You can limit the number of shards returned by each call. For more information, see
|
|
19
|
-
* <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html">Retrieving
|
|
20
|
-
* Shards from a Stream</a> in the <i>Amazon Kinesis Data Streams Developer
|
|
21
|
-
* Guide</i>.</p>
|
|
22
|
-
* <p>There are no guarantees about the chronological order shards returned. To process
|
|
23
|
-
* shards in chronological order, use the ID of the parent shard to track the lineage to
|
|
24
|
-
* the oldest shard.</p>
|
|
25
|
-
* <p>This operation has a limit of 10 transactions per second per account.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { KinesisClient, DescribeStreamCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
30
|
-
* // const { KinesisClient, DescribeStreamCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
31
|
-
* const client = new KinesisClient(config);
|
|
32
|
-
* const command = new DescribeStreamCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link DescribeStreamCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link DescribeStreamCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
8
|
class DescribeStreamCommand extends smithy_client_1.Command {
|
|
42
|
-
// Start section: command_properties
|
|
43
|
-
// End section: command_properties
|
|
44
9
|
constructor(input) {
|
|
45
|
-
// Start section: command_constructor
|
|
46
10
|
super();
|
|
47
11
|
this.input = input;
|
|
48
|
-
// End section: command_constructor
|
|
49
12
|
}
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
*/
|
|
53
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
54
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
55
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,42 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>To get the description of a registered consumer, provide the ARN of the consumer.
|
|
10
|
-
* Alternatively, you can provide the ARN of the data stream and the name you gave the
|
|
11
|
-
* consumer when you registered it. You may also provide all three parameters, as long as
|
|
12
|
-
* they don't conflict with each other. If you don't know the name or ARN of the consumer
|
|
13
|
-
* that you want to describe, you can use the <a>ListStreamConsumers</a>
|
|
14
|
-
* operation to get a list of the descriptions of all the consumers that are currently
|
|
15
|
-
* registered with a given data stream.</p>
|
|
16
|
-
* <p>This operation has a limit of 20 transactions per second per stream.</p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { KinesisClient, DescribeStreamConsumerCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
21
|
-
* // const { KinesisClient, DescribeStreamConsumerCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
22
|
-
* const client = new KinesisClient(config);
|
|
23
|
-
* const command = new DescribeStreamConsumerCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link DescribeStreamConsumerCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link DescribeStreamConsumerCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
8
|
class DescribeStreamConsumerCommand extends smithy_client_1.Command {
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
9
|
constructor(input) {
|
|
36
|
-
// Start section: command_constructor
|
|
37
10
|
super();
|
|
38
11
|
this.input = input;
|
|
39
|
-
// End section: command_constructor
|
|
40
12
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
45
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
46
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,42 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Provides a summarized description of the specified Kinesis data stream without the
|
|
10
|
-
* shard list.</p>
|
|
11
|
-
* <p>The information returned includes the stream name, Amazon Resource Name (ARN),
|
|
12
|
-
* status, record retention period, approximate creation time, monitoring, encryption
|
|
13
|
-
* details, and open shard count. </p>
|
|
14
|
-
* <p>
|
|
15
|
-
* <a>DescribeStreamSummary</a> has a limit of 20 transactions per second
|
|
16
|
-
* per account.</p>
|
|
17
|
-
* @example
|
|
18
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
-
* ```javascript
|
|
20
|
-
* import { KinesisClient, DescribeStreamSummaryCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
21
|
-
* // const { KinesisClient, DescribeStreamSummaryCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
22
|
-
* const client = new KinesisClient(config);
|
|
23
|
-
* const command = new DescribeStreamSummaryCommand(input);
|
|
24
|
-
* const response = await client.send(command);
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @see {@link DescribeStreamSummaryCommandInput} for command's `input` shape.
|
|
28
|
-
* @see {@link DescribeStreamSummaryCommandOutput} for command's `response` shape.
|
|
29
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
8
|
class DescribeStreamSummaryCommand extends smithy_client_1.Command {
|
|
33
|
-
// Start section: command_properties
|
|
34
|
-
// End section: command_properties
|
|
35
9
|
constructor(input) {
|
|
36
|
-
// Start section: command_constructor
|
|
37
10
|
super();
|
|
38
11
|
this.input = input;
|
|
39
|
-
// End section: command_constructor
|
|
40
12
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
45
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
46
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Disables enhanced monitoring.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { KinesisClient, DisableEnhancedMonitoringCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
14
|
-
* // const { KinesisClient, DisableEnhancedMonitoringCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
15
|
-
* const client = new KinesisClient(config);
|
|
16
|
-
* const command = new DisableEnhancedMonitoringCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link DisableEnhancedMonitoringCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link DisableEnhancedMonitoringCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class DisableEnhancedMonitoringCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Enables enhanced Kinesis data stream monitoring for shard-level metrics.</p>
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { KinesisClient, EnableEnhancedMonitoringCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
14
|
-
* // const { KinesisClient, EnableEnhancedMonitoringCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
15
|
-
* const client = new KinesisClient(config);
|
|
16
|
-
* const command = new EnableEnhancedMonitoringCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link EnableEnhancedMonitoringCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link EnableEnhancedMonitoringCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link KinesisClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
8
|
class EnableEnhancedMonitoringCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|