@aws-sdk/client-kinesis 3.40.0 → 3.44.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 +38 -0
- package/README.md +2 -2
- package/dist-cjs/Kinesis.js +15 -0
- package/dist-cjs/commands/UpdateStreamModeCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +8 -0
- package/dist-cjs/models/models_0.js +25 -2
- package/dist-cjs/protocols/Aws_json1_1.js +151 -2
- package/dist-es/Kinesis.js +15 -0
- package/dist-es/commands/UpdateStreamModeCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +8 -0
- package/dist-es/models/models_0.js +17 -0
- package/dist-es/protocols/Aws_json1_1.js +189 -35
- package/dist-types/Kinesis.d.ts +165 -143
- package/dist-types/KinesisClient.d.ts +5 -4
- package/dist-types/commands/AddTagsToStreamCommand.d.ts +3 -5
- package/dist-types/commands/CreateStreamCommand.d.ts +20 -20
- package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +6 -6
- package/dist-types/commands/DeleteStreamCommand.d.ts +6 -5
- package/dist-types/commands/DeregisterStreamConsumerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLimitsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeStreamCommand.d.ts +6 -2
- package/dist-types/commands/DescribeStreamConsumerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +6 -6
- package/dist-types/commands/DisableEnhancedMonitoringCommand.d.ts +1 -1
- package/dist-types/commands/EnableEnhancedMonitoringCommand.d.ts +1 -1
- package/dist-types/commands/GetRecordsCommand.d.ts +30 -20
- package/dist-types/commands/GetShardIteratorCommand.d.ts +8 -8
- package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +4 -4
- package/dist-types/commands/ListShardsCommand.d.ts +5 -3
- package/dist-types/commands/ListStreamConsumersCommand.d.ts +1 -1
- package/dist-types/commands/ListStreamsCommand.d.ts +2 -2
- package/dist-types/commands/ListTagsForStreamCommand.d.ts +1 -1
- package/dist-types/commands/MergeShardsCommand.d.ts +6 -6
- package/dist-types/commands/PutRecordCommand.d.ts +9 -9
- package/dist-types/commands/PutRecordsCommand.d.ts +8 -8
- package/dist-types/commands/RegisterStreamConsumerCommand.d.ts +1 -1
- package/dist-types/commands/RemoveTagsFromStreamCommand.d.ts +1 -1
- package/dist-types/commands/SplitShardCommand.d.ts +18 -20
- package/dist-types/commands/StartStreamEncryptionCommand.d.ts +11 -11
- package/dist-types/commands/StopStreamEncryptionCommand.d.ts +9 -10
- package/dist-types/commands/SubscribeToShardCommand.d.ts +4 -3
- package/dist-types/commands/UpdateShardCountCommand.d.ts +11 -12
- package/dist-types/commands/UpdateStreamModeCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +333 -152
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/Kinesis.d.ts +5 -0
- package/dist-types/ts3.4/KinesisClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/UpdateStreamModeCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +54 -1
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/package.json +4 -4
|
@@ -17,38 +17,36 @@ export interface SplitShardCommandOutput extends __MetadataBearer {
|
|
|
17
17
|
* <code>SplitShard</code> to increase stream capacity, so that more Kinesis Data
|
|
18
18
|
* Streams applications can simultaneously read data from the stream for real-time
|
|
19
19
|
* processing. </p>
|
|
20
|
-
* <p>You must specify the shard to be split and the new hash key, which is the position
|
|
21
|
-
*
|
|
20
|
+
* <p>You must specify the shard to be split and the new hash key, which is the position in
|
|
21
|
+
* the shard where the shard gets split in two. In many cases, the new hash key might be
|
|
22
22
|
* the average of the beginning and ending hash key, but it can be any hash key value in
|
|
23
23
|
* the range being mapped into the shard. For more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-split.html">Split a
|
|
24
24
|
* Shard</a> in the <i>Amazon Kinesis Data Streams Developer
|
|
25
25
|
* Guide</i>.</p>
|
|
26
|
-
* <p>You can use <a>
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* <p>You can use <a>DescribeStreamSummary</a> and the <a>ListShards</a> APIs to determine the shard ID and hash key values for the <code>ShardToSplit</code>
|
|
27
|
+
* and <code>NewStartingHashKey</code> parameters that are specified in the
|
|
28
|
+
* <code>SplitShard</code> request.</p>
|
|
29
29
|
* <p>
|
|
30
30
|
* <code>SplitShard</code> is an asynchronous operation. Upon receiving a
|
|
31
31
|
* <code>SplitShard</code> request, Kinesis Data Streams immediately returns a response
|
|
32
32
|
* and sets the stream status to <code>UPDATING</code>. After the operation is completed,
|
|
33
33
|
* Kinesis Data Streams sets the stream status to <code>ACTIVE</code>. Read and write
|
|
34
34
|
* operations continue to work while the stream is in the <code>UPDATING</code> state. </p>
|
|
35
|
-
* <p>You can use <
|
|
36
|
-
* returned in <code>StreamStatus</code>. If the stream is in the
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* Support</a>.</p>
|
|
35
|
+
* <p>You can use <a>DescribeStreamSummary</a> to check the status of the stream,
|
|
36
|
+
* which is returned in <code>StreamStatus</code>. If the stream is in the
|
|
37
|
+
* <code>ACTIVE</code> state, you can call <code>SplitShard</code>.
|
|
38
|
+
* </p>
|
|
39
|
+
* <p>If the specified stream does not exist, <a>DescribeStreamSummary</a>
|
|
40
|
+
* returns a <code>ResourceNotFoundException</code>. If you try to create more shards than
|
|
41
|
+
* are authorized for your account, you receive a <code>LimitExceededException</code>. </p>
|
|
42
|
+
* <p>For the default shard limit for an Amazon Web Services account, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Kinesis
|
|
43
|
+
* Data Streams Limits</a> in the <i>Amazon Kinesis Data Streams Developer
|
|
44
|
+
* Guide</i>. To increase this limit, <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">contact Amazon Web Services
|
|
45
|
+
* Support</a>.</p>
|
|
47
46
|
* <p>If you try to operate on too many streams simultaneously using <a>CreateStream</a>, <a>DeleteStream</a>, <a>MergeShards</a>, and/or <a>SplitShard</a>, you receive a
|
|
48
47
|
* <code>LimitExceededException</code>. </p>
|
|
49
48
|
* <p>
|
|
50
|
-
* <code>SplitShard</code> has a limit of five transactions per second per
|
|
51
|
-
* account.</p>
|
|
49
|
+
* <code>SplitShard</code> has a limit of five transactions per second per account.</p>
|
|
52
50
|
* @example
|
|
53
51
|
* Use a bare-bones client and the command you need to make an API call.
|
|
54
52
|
* ```javascript
|
|
@@ -61,7 +59,7 @@ export interface SplitShardCommandOutput extends __MetadataBearer {
|
|
|
61
59
|
*
|
|
62
60
|
* @see {@link SplitShardCommandInput} for command's `input` shape.
|
|
63
61
|
* @see {@link SplitShardCommandOutput} for command's `response` shape.
|
|
64
|
-
* @see {@link KinesisClientResolvedConfig | config} for
|
|
62
|
+
* @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
|
|
65
63
|
*
|
|
66
64
|
*/
|
|
67
65
|
export declare class SplitShardCommand extends $Command<SplitShardCommandInput, SplitShardCommandOutput, KinesisClientResolvedConfig> {
|
|
@@ -7,22 +7,22 @@ export interface StartStreamEncryptionCommandInput extends StartStreamEncryption
|
|
|
7
7
|
export interface StartStreamEncryptionCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Enables or updates server-side encryption using an
|
|
11
|
-
* stream. </p>
|
|
12
|
-
* <p>Starting encryption is an asynchronous operation. Upon receiving the request,
|
|
13
|
-
*
|
|
10
|
+
* <p>Enables or updates server-side encryption using an Amazon Web Services KMS key for a
|
|
11
|
+
* specified stream. </p>
|
|
12
|
+
* <p>Starting encryption is an asynchronous operation. Upon receiving the request, Kinesis
|
|
13
|
+
* Data Streams returns immediately and sets the status of the stream to
|
|
14
14
|
* <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
|
|
15
15
|
* status of the stream back to <code>ACTIVE</code>. Updating or applying encryption
|
|
16
16
|
* normally takes a few seconds to complete, but it can take minutes. You can continue to
|
|
17
17
|
* read and write data to your stream while its status is <code>UPDATING</code>. Once the
|
|
18
18
|
* status of the stream is <code>ACTIVE</code>, encryption begins for records written to
|
|
19
19
|
* the stream. </p>
|
|
20
|
-
* <p>API Limits: You can successfully apply a new
|
|
21
|
-
* 25 times in a rolling 24-hour period.</p>
|
|
22
|
-
* <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code>
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
20
|
+
* <p>API Limits: You can successfully apply a new Amazon Web Services KMS key for
|
|
21
|
+
* server-side encryption 25 times in a rolling 24-hour period.</p>
|
|
22
|
+
* <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code> status
|
|
23
|
+
* before all records written to the stream are encrypted. After you enable encryption, you
|
|
24
|
+
* can verify that encryption is applied by inspecting the API response from
|
|
25
|
+
* <code>PutRecord</code> or <code>PutRecords</code>.</p>
|
|
26
26
|
* @example
|
|
27
27
|
* Use a bare-bones client and the command you need to make an API call.
|
|
28
28
|
* ```javascript
|
|
@@ -35,7 +35,7 @@ export interface StartStreamEncryptionCommandOutput extends __MetadataBearer {
|
|
|
35
35
|
*
|
|
36
36
|
* @see {@link StartStreamEncryptionCommandInput} for command's `input` shape.
|
|
37
37
|
* @see {@link StartStreamEncryptionCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link KinesisClientResolvedConfig | config} for
|
|
38
|
+
* @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
41
|
export declare class StartStreamEncryptionCommand extends $Command<StartStreamEncryptionCommandInput, StartStreamEncryptionCommandOutput, KinesisClientResolvedConfig> {
|
|
@@ -8,21 +8,20 @@ export interface StopStreamEncryptionCommandOutput extends __MetadataBearer {
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Disables server-side encryption for a specified stream. </p>
|
|
11
|
-
* <p>Stopping encryption is an asynchronous operation. Upon receiving the request,
|
|
12
|
-
*
|
|
11
|
+
* <p>Stopping encryption is an asynchronous operation. Upon receiving the request, Kinesis
|
|
12
|
+
* Data Streams returns immediately and sets the status of the stream to
|
|
13
13
|
* <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the
|
|
14
14
|
* status of the stream back to <code>ACTIVE</code>. Stopping encryption normally takes a
|
|
15
15
|
* few seconds to complete, but it can take minutes. You can continue to read and write
|
|
16
16
|
* data to your stream while its status is <code>UPDATING</code>. Once the status of the
|
|
17
17
|
* stream is <code>ACTIVE</code>, records written to the stream are no longer encrypted by
|
|
18
18
|
* Kinesis Data Streams. </p>
|
|
19
|
-
* <p>API Limits: You can successfully disable server-side encryption 25 times in a
|
|
20
|
-
*
|
|
21
|
-
* <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code>
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* <code>PutRecords</code>.</p>
|
|
19
|
+
* <p>API Limits: You can successfully disable server-side encryption 25 times in a rolling
|
|
20
|
+
* 24-hour period. </p>
|
|
21
|
+
* <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code> status
|
|
22
|
+
* before all records written to the stream are no longer subject to encryption. After you
|
|
23
|
+
* disabled encryption, you can verify that encryption is not applied by inspecting the API
|
|
24
|
+
* response from <code>PutRecord</code> or <code>PutRecords</code>.</p>
|
|
26
25
|
* @example
|
|
27
26
|
* Use a bare-bones client and the command you need to make an API call.
|
|
28
27
|
* ```javascript
|
|
@@ -35,7 +34,7 @@ export interface StopStreamEncryptionCommandOutput extends __MetadataBearer {
|
|
|
35
34
|
*
|
|
36
35
|
* @see {@link StopStreamEncryptionCommandInput} for command's `input` shape.
|
|
37
36
|
* @see {@link StopStreamEncryptionCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link KinesisClientResolvedConfig | config} for
|
|
37
|
+
* @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
|
|
39
38
|
*
|
|
40
39
|
*/
|
|
41
40
|
export declare class StopStreamEncryptionCommand extends $Command<StopStreamEncryptionCommandInput, StopStreamEncryptionCommandOutput, KinesisClientResolvedConfig> {
|
|
@@ -25,8 +25,9 @@ export interface SubscribeToShardCommandOutput extends SubscribeToShardOutput, _
|
|
|
25
25
|
* <p>If you call <code>SubscribeToShard</code> again with the same <code>ConsumerARN</code>
|
|
26
26
|
* and <code>ShardId</code> within 5 seconds of a successful call, you'll get a
|
|
27
27
|
* <code>ResourceInUseException</code>. If you call <code>SubscribeToShard</code> 5
|
|
28
|
-
* seconds or more after a successful call, the
|
|
29
|
-
*
|
|
28
|
+
* seconds or more after a successful call, the second call takes over the subscription and
|
|
29
|
+
* the previous connection expires or fails with a
|
|
30
|
+
* <code>ResourceInUseException</code>.</p>
|
|
30
31
|
* <p>For an example of how to use this operations, see <a href="/streams/latest/dev/building-enhanced-consumers-api.html">Enhanced Fan-Out
|
|
31
32
|
* Using the Kinesis Data Streams API</a>.</p>
|
|
32
33
|
* @example
|
|
@@ -41,7 +42,7 @@ export interface SubscribeToShardCommandOutput extends SubscribeToShardOutput, _
|
|
|
41
42
|
*
|
|
42
43
|
* @see {@link SubscribeToShardCommandInput} for command's `input` shape.
|
|
43
44
|
* @see {@link SubscribeToShardCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link KinesisClientResolvedConfig | config} for
|
|
45
|
+
* @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
|
|
45
46
|
*
|
|
46
47
|
*/
|
|
47
48
|
export declare class SubscribeToShardCommand extends $Command<SubscribeToShardCommandInput, SubscribeToShardCommandOutput, KinesisClientResolvedConfig> {
|
|
@@ -19,8 +19,8 @@ export interface UpdateShardCountCommandOutput extends UpdateShardCountOutput, _
|
|
|
19
19
|
* individual shards. This can cause short-lived shards to be created, in addition to the
|
|
20
20
|
* final shards. These short-lived shards count towards your total shard limit for your
|
|
21
21
|
* account in the Region.</p>
|
|
22
|
-
* <p>When using this operation, we recommend that you specify a target shard count that
|
|
23
|
-
*
|
|
22
|
+
* <p>When using this operation, we recommend that you specify a target shard count that is
|
|
23
|
+
* a multiple of 25% (25%, 50%, 75%, 100%). You can specify any target value within your
|
|
24
24
|
* shard limit. However, if you specify a target that isn't a multiple of 25%, the scaling
|
|
25
25
|
* action might take longer to complete. </p>
|
|
26
26
|
* <p>This operation has the following default limits. By default, you cannot do the
|
|
@@ -30,27 +30,26 @@ export interface UpdateShardCountCommandOutput extends UpdateShardCountOutput, _
|
|
|
30
30
|
* <p>Scale more than ten times per rolling 24-hour period per stream</p>
|
|
31
31
|
* </li>
|
|
32
32
|
* <li>
|
|
33
|
-
* <p>Scale up to more than double your current shard count for a
|
|
34
|
-
* stream</p>
|
|
33
|
+
* <p>Scale up to more than double your current shard count for a stream</p>
|
|
35
34
|
* </li>
|
|
36
35
|
* <li>
|
|
37
36
|
* <p>Scale down below half your current shard count for a stream</p>
|
|
38
37
|
* </li>
|
|
39
38
|
* <li>
|
|
40
|
-
* <p>Scale up to more than
|
|
39
|
+
* <p>Scale up to more than 10000 shards in a stream</p>
|
|
41
40
|
* </li>
|
|
42
41
|
* <li>
|
|
43
|
-
* <p>Scale a stream with more than
|
|
44
|
-
*
|
|
42
|
+
* <p>Scale a stream with more than 10000 shards down unless the result is less than
|
|
43
|
+
* 10000 shards</p>
|
|
45
44
|
* </li>
|
|
46
45
|
* <li>
|
|
47
46
|
* <p>Scale up to more than the shard limit for your account</p>
|
|
48
47
|
* </li>
|
|
49
48
|
* </ul>
|
|
50
|
-
* <p>For the default limits for an
|
|
51
|
-
* <i>Amazon Kinesis Data Streams Developer
|
|
52
|
-
*
|
|
53
|
-
* limit, use the <a href="https://console.aws.amazon.com/support/v1#/case/create?issueType=service-limit-increase&limitType=service-code-kinesis">limits form</a>.</p>
|
|
49
|
+
* <p>For the default limits for an Amazon Web Services account, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Streams
|
|
50
|
+
* Limits</a> in the <i>Amazon Kinesis Data Streams Developer
|
|
51
|
+
* Guide</i>. To request an increase in the call rate limit, the shard limit for
|
|
52
|
+
* this API, or your overall shard limit, use the <a href="https://console.aws.amazon.com/support/v1#/case/create?issueType=service-limit-increase&limitType=service-code-kinesis">limits form</a>.</p>
|
|
54
53
|
* @example
|
|
55
54
|
* Use a bare-bones client and the command you need to make an API call.
|
|
56
55
|
* ```javascript
|
|
@@ -63,7 +62,7 @@ export interface UpdateShardCountCommandOutput extends UpdateShardCountOutput, _
|
|
|
63
62
|
*
|
|
64
63
|
* @see {@link UpdateShardCountCommandInput} for command's `input` shape.
|
|
65
64
|
* @see {@link UpdateShardCountCommandOutput} for command's `response` shape.
|
|
66
|
-
* @see {@link KinesisClientResolvedConfig | config} for
|
|
65
|
+
* @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
|
|
67
66
|
*
|
|
68
67
|
*/
|
|
69
68
|
export declare class UpdateShardCountCommand extends $Command<UpdateShardCountCommandInput, UpdateShardCountCommandOutput, KinesisClientResolvedConfig> {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { KinesisClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KinesisClient";
|
|
4
|
+
import { UpdateStreamModeInput } from "../models/models_0";
|
|
5
|
+
export interface UpdateStreamModeCommandInput extends UpdateStreamModeInput {
|
|
6
|
+
}
|
|
7
|
+
export interface UpdateStreamModeCommandOutput extends __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p> Updates the capacity mode of the data stream. Currently, in Kinesis Data Streams, you
|
|
11
|
+
* can choose between an <b>on-demand</b> capacity mode and a
|
|
12
|
+
* <b>provisioned</b> capacity mode for your data stream.
|
|
13
|
+
* </p>
|
|
14
|
+
* @example
|
|
15
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
16
|
+
* ```javascript
|
|
17
|
+
* import { KinesisClient, UpdateStreamModeCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
18
|
+
* // const { KinesisClient, UpdateStreamModeCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
19
|
+
* const client = new KinesisClient(config);
|
|
20
|
+
* const command = new UpdateStreamModeCommand(input);
|
|
21
|
+
* const response = await client.send(command);
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @see {@link UpdateStreamModeCommandInput} for command's `input` shape.
|
|
25
|
+
* @see {@link UpdateStreamModeCommandOutput} for command's `response` shape.
|
|
26
|
+
* @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
export declare class UpdateStreamModeCommand extends $Command<UpdateStreamModeCommandInput, UpdateStreamModeCommandOutput, KinesisClientResolvedConfig> {
|
|
30
|
+
readonly input: UpdateStreamModeCommandInput;
|
|
31
|
+
constructor(input: UpdateStreamModeCommandInput);
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KinesisClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateStreamModeCommandInput, UpdateStreamModeCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|