@aws-sdk/client-kinesis 3.43.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 +11 -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/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/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 +2 -4
- package/dist-types/commands/CreateStreamCommand.d.ts +19 -19
- package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +5 -5
- package/dist-types/commands/DeleteStreamCommand.d.ts +5 -4
- package/dist-types/commands/DescribeStreamCommand.d.ts +5 -1
- package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +5 -5
- package/dist-types/commands/GetRecordsCommand.d.ts +29 -19
- package/dist-types/commands/GetShardIteratorCommand.d.ts +7 -7
- package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +3 -3
- package/dist-types/commands/ListShardsCommand.d.ts +4 -2
- package/dist-types/commands/ListStreamsCommand.d.ts +1 -1
- package/dist-types/commands/MergeShardsCommand.d.ts +5 -5
- package/dist-types/commands/PutRecordCommand.d.ts +8 -8
- package/dist-types/commands/PutRecordsCommand.d.ts +7 -7
- package/dist-types/commands/SplitShardCommand.d.ts +17 -19
- package/dist-types/commands/StartStreamEncryptionCommand.d.ts +10 -10
- package/dist-types/commands/StopStreamEncryptionCommand.d.ts +8 -9
- package/dist-types/commands/SubscribeToShardCommand.d.ts +3 -2
- package/dist-types/commands/UpdateShardCountCommand.d.ts +10 -11
- 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 +1 -1
|
@@ -7,10 +7,8 @@ export interface AddTagsToStreamCommandInput extends AddTagsToStreamInput {
|
|
|
7
7
|
export interface AddTagsToStreamCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Adds or updates tags for the specified Kinesis data stream.
|
|
11
|
-
*
|
|
12
|
-
* your stream, you can invoke this operation multiple times. In total, each stream can
|
|
13
|
-
* have up to 50 tags.</p>
|
|
10
|
+
* <p>Adds or updates tags for the specified Kinesis data stream. You can assign up to 50
|
|
11
|
+
* tags to a data stream.</p>
|
|
14
12
|
* <p>If tags have already been assigned to the stream, <code>AddTagsToStream</code>
|
|
15
13
|
* overwrites any existing tags that correspond to the specified tag keys.</p>
|
|
16
14
|
* <p>
|
|
@@ -7,19 +7,19 @@ export interface CreateStreamCommandInput extends CreateStreamInput {
|
|
|
7
7
|
export interface CreateStreamCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Creates a Kinesis data stream. A stream captures and transports data records that
|
|
11
|
-
*
|
|
10
|
+
* <p>Creates a Kinesis data stream. A stream captures and transports data records that are
|
|
11
|
+
* continuously emitted from different data sources or <i>producers</i>.
|
|
12
12
|
* Scale-out within a stream is explicitly supported by means of shards, which are uniquely
|
|
13
13
|
* identified groups of data records in a stream.</p>
|
|
14
|
-
* <p>You specify and control the number of shards that a stream is composed of. Each
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* <p>The stream name identifies the stream. The name is scoped to the
|
|
20
|
-
* by the application. It is also scoped by
|
|
21
|
-
* different accounts can have the same name, and two streams in the
|
|
22
|
-
* two different Regions, can have the same name.</p>
|
|
14
|
+
* <p>You specify and control the number of shards that a stream is composed of. Each shard
|
|
15
|
+
* can support reads up to five transactions per second, up to a maximum data read total of
|
|
16
|
+
* 2 MiB per second. Each shard can support writes up to 1,000 records per second, up to a
|
|
17
|
+
* maximum data write total of 1 MiB per second. If the amount of data input increases or
|
|
18
|
+
* decreases, you can add or remove shards.</p>
|
|
19
|
+
* <p>The stream name identifies the stream. The name is scoped to the Amazon Web Services
|
|
20
|
+
* account used by the application. It is also scoped by Amazon Web Services Region. That
|
|
21
|
+
* is, two streams in two different accounts can have the same name, and two streams in the
|
|
22
|
+
* same account, but in two different Regions, can have the same name.</p>
|
|
23
23
|
* <p>
|
|
24
24
|
* <code>CreateStream</code> is an asynchronous operation. Upon receiving a
|
|
25
25
|
* <code>CreateStream</code> request, Kinesis Data Streams immediately returns and sets
|
|
@@ -31,20 +31,20 @@ export interface CreateStreamCommandOutput extends __MetadataBearer {
|
|
|
31
31
|
* <ul>
|
|
32
32
|
* <li>
|
|
33
33
|
*
|
|
34
|
-
* <p>Have more than five streams in the <code>CREATING</code> state at any point
|
|
35
|
-
*
|
|
34
|
+
* <p>Have more than five streams in the <code>CREATING</code> state at any point in
|
|
35
|
+
* time.</p>
|
|
36
36
|
* </li>
|
|
37
37
|
* <li>
|
|
38
38
|
*
|
|
39
39
|
* <p>Create more shards than are authorized for your account.</p>
|
|
40
40
|
* </li>
|
|
41
41
|
* </ul>
|
|
42
|
-
* <p>For the default shard limit for an
|
|
43
|
-
* Limits</a> in the <i>Amazon Kinesis Data Streams
|
|
44
|
-
* Guide</i>. To increase this limit, <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">contact
|
|
45
|
-
*
|
|
46
|
-
* <p>You can use <
|
|
47
|
-
* returned in <code>StreamStatus</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">Amazon
|
|
43
|
+
* Kinesis Data Streams Limits</a> in the <i>Amazon Kinesis Data Streams
|
|
44
|
+
* Developer 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>
|
|
46
|
+
* <p>You can use <a>DescribeStreamSummary</a> to check the stream status, which
|
|
47
|
+
* is returned in <code>StreamStatus</code>.</p>
|
|
48
48
|
* <p>
|
|
49
49
|
* <a>CreateStream</a> has a limit of five transactions per second per
|
|
50
50
|
* account.</p>
|
|
@@ -7,12 +7,12 @@ export interface DecreaseStreamRetentionPeriodCommandInput extends DecreaseStrea
|
|
|
7
7
|
export interface DecreaseStreamRetentionPeriodCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Decreases the Kinesis data stream's retention period, which is the length of time
|
|
11
|
-
*
|
|
10
|
+
* <p>Decreases the Kinesis data stream's retention period, which is the length of time data
|
|
11
|
+
* records are accessible after they are added to the stream. The minimum value of a
|
|
12
12
|
* stream's retention period is 24 hours.</p>
|
|
13
|
-
* <p>This operation may result in lost data. For example, if the stream's retention
|
|
14
|
-
*
|
|
15
|
-
*
|
|
13
|
+
* <p>This operation may result in lost data. For example, if the stream's retention period
|
|
14
|
+
* is 48 hours and is decreased to 24 hours, any data already in the stream that is older
|
|
15
|
+
* than 24 hours is inaccessible.</p>
|
|
16
16
|
* @example
|
|
17
17
|
* Use a bare-bones client and the command you need to make an API call.
|
|
18
18
|
* ```javascript
|
|
@@ -19,10 +19,11 @@ export interface DeleteStreamCommandOutput extends __MetadataBearer {
|
|
|
19
19
|
* <b>Note:</b> Kinesis Data Streams might continue to accept
|
|
20
20
|
* data read and write operations, such as <a>PutRecord</a>, <a>PutRecords</a>, and <a>GetRecords</a>, on a stream in the
|
|
21
21
|
* <code>DELETING</code> state until the stream deletion is complete.</p>
|
|
22
|
-
* <p>When you delete a stream, any shards in that stream are also deleted, and any tags
|
|
23
|
-
*
|
|
24
|
-
* <p>You can use the <a>
|
|
25
|
-
* the stream, which is returned in <code>StreamStatus</code>.</p>
|
|
22
|
+
* <p>When you delete a stream, any shards in that stream are also deleted, and any tags are
|
|
23
|
+
* dissociated from the stream.</p>
|
|
24
|
+
* <p>You can use the <a>DescribeStreamSummary</a> operation to check the state
|
|
25
|
+
* of the stream, which is returned in <code>StreamStatus</code>.</p>
|
|
26
|
+
*
|
|
26
27
|
* <p>
|
|
27
28
|
* <a>DeleteStream</a> has a limit of five transactions per second per
|
|
28
29
|
* account.</p>
|
|
@@ -8,7 +8,11 @@ export interface DescribeStreamCommandOutput extends DescribeStreamOutput, __Met
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Describes the specified Kinesis data stream.</p>
|
|
11
|
-
*
|
|
11
|
+
* <note>
|
|
12
|
+
* <p>This API has been revised. It's highly recommended that you use the <a>DescribeStreamSummary</a> API to get a summarized description of the
|
|
13
|
+
* specified Kinesis data stream and the <a>ListShards</a> API to list the
|
|
14
|
+
* shards in a specified data stream and obtain information about each shard. </p>
|
|
15
|
+
* </note>
|
|
12
16
|
* <p>The information returned includes the stream name, Amazon Resource Name (ARN),
|
|
13
17
|
* creation time, enhanced metric configuration, and shard map. The shard map is an array
|
|
14
18
|
* of shard objects. For each shard object, there is the hash key and sequence number
|
|
@@ -9,12 +9,12 @@ export interface DescribeStreamSummaryCommandOutput extends DescribeStreamSummar
|
|
|
9
9
|
/**
|
|
10
10
|
* <p>Provides a summarized description of the specified Kinesis data stream without the
|
|
11
11
|
* shard list.</p>
|
|
12
|
-
* <p>The information returned includes the stream name, Amazon Resource Name (ARN),
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* <p>The information returned includes the stream name, Amazon Resource Name (ARN), status,
|
|
13
|
+
* record retention period, approximate creation time, monitoring, encryption details, and
|
|
14
|
+
* open shard count. </p>
|
|
15
15
|
* <p>
|
|
16
|
-
* <a>DescribeStreamSummary</a> has a limit of 20 transactions per second
|
|
17
|
-
*
|
|
16
|
+
* <a>DescribeStreamSummary</a> has a limit of 20 transactions per second per
|
|
17
|
+
* account.</p>
|
|
18
18
|
* @example
|
|
19
19
|
* Use a bare-bones client and the command you need to make an API call.
|
|
20
20
|
* ```javascript
|
|
@@ -25,34 +25,44 @@ export interface GetRecordsCommandOutput extends GetRecordsOutput, __MetadataBea
|
|
|
25
25
|
* You can terminate the loop when the shard is closed, or when the shard iterator reaches
|
|
26
26
|
* the record with the sequence number or other attribute that marks it as the last record
|
|
27
27
|
* to process.</p>
|
|
28
|
-
* <p>Each data record can be up to 1 MiB in size, and each shard can read up to 2 MiB
|
|
29
|
-
*
|
|
28
|
+
* <p>Each data record can be up to 1 MiB in size, and each shard can read up to 2 MiB per
|
|
29
|
+
* second. You can ensure that your calls don't exceed the maximum supported size or
|
|
30
30
|
* throughput by using the <code>Limit</code> parameter to specify the maximum number of
|
|
31
31
|
* records that <a>GetRecords</a> can return. Consider your average record size
|
|
32
32
|
* when determining this limit. The maximum number of records that can be returned per call
|
|
33
33
|
* is 10,000.</p>
|
|
34
34
|
*
|
|
35
|
-
* <p>The size of the data returned by <a>GetRecords</a> varies depending on
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* second
|
|
35
|
+
* <p>The size of the data returned by <a>GetRecords</a> varies depending on the
|
|
36
|
+
* utilization of the shard. It is recommended that consumer applications retrieve records
|
|
37
|
+
* via the <code>GetRecords</code> command using the 5 TPS limit to remain caught up.
|
|
38
|
+
* Retrieving records less frequently can lead to consumer applications falling behind. The
|
|
39
|
+
* maximum size of data that <a>GetRecords</a> can return is 10 MiB. If a call
|
|
40
|
+
* returns this amount of data, subsequent calls made within the next 5 seconds throw
|
|
41
|
+
* <code>ProvisionedThroughputExceededException</code>. If there is insufficient
|
|
42
|
+
* provisioned throughput on the stream, subsequent calls made within the next 1 second
|
|
43
|
+
* throw <code>ProvisionedThroughputExceededException</code>. <a>GetRecords</a>
|
|
44
|
+
* doesn't return any data when it throws an exception. For this reason, we recommend that
|
|
45
|
+
* you wait 1 second between calls to <a>GetRecords</a>. However, it's possible
|
|
46
|
+
* that the application will get exceptions for longer than 1 second.</p>
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
*
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
*
|
|
54
|
+
*
|
|
43
55
|
* <p>To detect whether the application is falling behind in processing, you can use the
|
|
44
56
|
* <code>MillisBehindLatest</code> response attribute. You can also monitor the stream
|
|
45
57
|
* using CloudWatch metrics and other mechanisms (see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/monitoring.html">Monitoring</a> in the <i>Amazon
|
|
46
58
|
* Kinesis Data Streams Developer Guide</i>).</p>
|
|
47
|
-
* <p>Each Amazon Kinesis record includes a value,
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* increasing. For example, records in a shard or across a stream might have time stamps
|
|
55
|
-
* that are out of order.</p>
|
|
59
|
+
* <p>Each Amazon Kinesis record includes a value, <code>ApproximateArrivalTimestamp</code>,
|
|
60
|
+
* that is set when a stream successfully receives and stores a record. This is commonly
|
|
61
|
+
* referred to as a server-side time stamp, whereas a client-side time stamp is set when a
|
|
62
|
+
* data producer creates or sends the record to a stream (a data producer is any data
|
|
63
|
+
* source putting data records into a stream, for example with <a>PutRecords</a>). The time stamp has millisecond precision. There are no guarantees about the time
|
|
64
|
+
* stamp accuracy, or that the time stamp is always increasing. For example, records in a
|
|
65
|
+
* shard or across a stream might have time stamps that are out of order.</p>
|
|
56
66
|
* <p>This operation has a limit of five transactions per second per shard.</p>
|
|
57
67
|
* @example
|
|
58
68
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -7,13 +7,13 @@ export interface GetShardIteratorCommandInput extends GetShardIteratorInput {
|
|
|
7
7
|
export interface GetShardIteratorCommandOutput extends GetShardIteratorOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 minutes after it
|
|
11
|
-
*
|
|
12
|
-
* <p>A shard iterator specifies the shard position from which to start reading data
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
10
|
+
* <p>Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 minutes after it is
|
|
11
|
+
* returned to the requester.</p>
|
|
12
|
+
* <p>A shard iterator specifies the shard position from which to start reading data records
|
|
13
|
+
* sequentially. The position is specified using the sequence number of a data record in a
|
|
14
|
+
* shard. A sequence number is the identifier associated with every record ingested in the
|
|
15
|
+
* stream, and is assigned when a record is put into the stream. Each stream has one or
|
|
16
|
+
* more shards.</p>
|
|
17
17
|
* <p>You must specify the shard iterator type. For example, you can set the
|
|
18
18
|
* <code>ShardIteratorType</code> parameter to read exactly from the position denoted
|
|
19
19
|
* by a specific sequence number by using the <code>AT_SEQUENCE_NUMBER</code> shard
|
|
@@ -7,9 +7,9 @@ export interface IncreaseStreamRetentionPeriodCommandInput extends IncreaseStrea
|
|
|
7
7
|
export interface IncreaseStreamRetentionPeriodCommandOutput extends __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Increases the Kinesis data stream's retention period, which is the length of time
|
|
11
|
-
*
|
|
12
|
-
* stream's retention period is
|
|
10
|
+
* <p>Increases the Kinesis data stream's retention period, which is the length of time data
|
|
11
|
+
* records are accessible after they are added to the stream. The maximum value of a
|
|
12
|
+
* stream's retention period is 8760 hours (365 days).</p>
|
|
13
13
|
* <p>If you choose a longer stream retention period, this operation increases the time
|
|
14
14
|
* period during which records that have not yet expired are accessible. However, it does
|
|
15
15
|
* not make previous, expired data (older than the stream's previous retention period)
|
|
@@ -7,8 +7,10 @@ export interface ListShardsCommandInput extends ListShardsInput {
|
|
|
7
7
|
export interface ListShardsCommandOutput extends ListShardsOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Lists the shards in a stream and provides information about each shard. This
|
|
11
|
-
*
|
|
10
|
+
* <p>Lists the shards in a stream and provides information about each shard. This operation
|
|
11
|
+
* has a limit of 1000 transactions per second per data stream.</p>
|
|
12
|
+
* <p>This action does not list expired shards. For information about expired shards, see
|
|
13
|
+
* <a href="https://docs.aws.amazon.com/streams/latest/dev/kinesis-using-sdk-java-after-resharding.html#kinesis-using-sdk-java-resharding-data-routing">Data Routing, Data Persistence, and Shard State after a Reshard</a>. </p>
|
|
12
14
|
* <important>
|
|
13
15
|
* <p>This API is a new operation that is used by the Amazon Kinesis Client Library
|
|
14
16
|
* (KCL). If you have a fine-grained IAM policy that only allows specific operations,
|
|
@@ -12,7 +12,7 @@ export interface ListStreamsCommandOutput extends ListStreamsOutput, __MetadataB
|
|
|
12
12
|
* <code>ListStreams</code>. You can limit the number of returned streams using the
|
|
13
13
|
* <code>Limit</code> parameter. If you do not specify a value for the
|
|
14
14
|
* <code>Limit</code> parameter, Kinesis Data Streams uses the default limit, which is
|
|
15
|
-
* currently
|
|
15
|
+
* currently 100.</p>
|
|
16
16
|
* <p>You can detect if there are more streams available to list by using the
|
|
17
17
|
* <code>HasMoreStreams</code> flag from the returned output. If there are more streams
|
|
18
18
|
* available, you can request more streams by using the name of the last stream returned by
|
|
@@ -27,7 +27,7 @@ export interface MergeShardsCommandOutput extends __MetadataBearer {
|
|
|
27
27
|
* <code>UPDATING</code>, or <code>DELETING</code> state, <code>MergeShards</code>
|
|
28
28
|
* returns a <code>ResourceInUseException</code>. If the specified stream does not exist,
|
|
29
29
|
* <code>MergeShards</code> returns a <code>ResourceNotFoundException</code>. </p>
|
|
30
|
-
* <p>You can use <a>
|
|
30
|
+
* <p>You can use <a>DescribeStreamSummary</a> to check the state of the stream,
|
|
31
31
|
* which is returned in <code>StreamStatus</code>.</p>
|
|
32
32
|
* <p>
|
|
33
33
|
* <code>MergeShards</code> is an asynchronous operation. Upon receiving a
|
|
@@ -36,13 +36,13 @@ export interface MergeShardsCommandOutput extends __MetadataBearer {
|
|
|
36
36
|
* operation is completed, Kinesis Data Streams sets the <code>StreamStatus</code> to
|
|
37
37
|
* <code>ACTIVE</code>. Read and write operations continue to work while the stream is
|
|
38
38
|
* in the <code>UPDATING</code> state. </p>
|
|
39
|
-
* <p>You use <a>
|
|
40
|
-
* specified in the <code>MergeShards</code>
|
|
39
|
+
* <p>You use <a>DescribeStreamSummary</a> and the <a>ListShards</a>
|
|
40
|
+
* APIs to determine the shard IDs that are specified in the <code>MergeShards</code>
|
|
41
|
+
* request. </p>
|
|
41
42
|
* <p>If you try to operate on too many streams in parallel using <a>CreateStream</a>, <a>DeleteStream</a>, <code>MergeShards</code>,
|
|
42
43
|
* or <a>SplitShard</a>, you receive a <code>LimitExceededException</code>. </p>
|
|
43
44
|
* <p>
|
|
44
|
-
* <code>MergeShards</code> has a limit of five transactions per second per
|
|
45
|
-
* account.</p>
|
|
45
|
+
* <code>MergeShards</code> has a limit of five transactions per second per account.</p>
|
|
46
46
|
* @example
|
|
47
47
|
* Use a bare-bones client and the command you need to make an API call.
|
|
48
48
|
* ```javascript
|
|
@@ -19,18 +19,18 @@ export interface PutRecordCommandOutput extends PutRecordOutput, __MetadataBeare
|
|
|
19
19
|
* Kinesis Data Streams segregates the data records that belong to a stream into multiple
|
|
20
20
|
* shards, using the partition key associated with each data record to determine the shard
|
|
21
21
|
* to which a given data record belongs.</p>
|
|
22
|
-
* <p>Partition keys are Unicode strings, with a maximum length limit of 256 characters
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
22
|
+
* <p>Partition keys are Unicode strings, with a maximum length limit of 256 characters for
|
|
23
|
+
* each key. An MD5 hash function is used to map partition keys to 128-bit integer values
|
|
24
|
+
* and to map associated data records to shards using the hash key ranges of the shards.
|
|
25
|
+
* You can override hashing the partition key to determine the shard by explicitly
|
|
26
26
|
* specifying a hash value using the <code>ExplicitHashKey</code> parameter. For more
|
|
27
27
|
* information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream">Adding Data to a Stream</a> in the <i>Amazon Kinesis Data Streams
|
|
28
28
|
* Developer Guide</i>.</p>
|
|
29
29
|
* <p>
|
|
30
30
|
* <code>PutRecord</code> returns the shard ID of where the data record was placed and the
|
|
31
31
|
* sequence number that was assigned to the data record.</p>
|
|
32
|
-
* <p>Sequence numbers increase over time and are specific to a shard within a stream,
|
|
33
|
-
*
|
|
32
|
+
* <p>Sequence numbers increase over time and are specific to a shard within a stream, not
|
|
33
|
+
* across all shards within a stream. To guarantee strictly increasing ordering, write
|
|
34
34
|
* serially to a shard and use the <code>SequenceNumberForOrdering</code> parameter. For
|
|
35
35
|
* more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/developing-producers-with-sdk.html#kinesis-using-sdk-java-add-data-to-stream">Adding Data to a Stream</a> in the <i>Amazon Kinesis Data Streams
|
|
36
36
|
* Developer Guide</i>.</p>
|
|
@@ -41,8 +41,8 @@ export interface PutRecordCommandOutput extends PutRecordOutput, __MetadataBeare
|
|
|
41
41
|
* <p>If a <code>PutRecord</code> request cannot be processed because of insufficient
|
|
42
42
|
* provisioned throughput on the shard involved in the request, <code>PutRecord</code>
|
|
43
43
|
* throws <code>ProvisionedThroughputExceededException</code>. </p>
|
|
44
|
-
* <p>By default, data records are accessible for 24 hours from the time that they are
|
|
45
|
-
*
|
|
44
|
+
* <p>By default, data records are accessible for 24 hours from the time that they are added
|
|
45
|
+
* to a stream. You can use <a>IncreaseStreamRetentionPeriod</a> or <a>DecreaseStreamRetentionPeriod</a> to modify this retention period.</p>
|
|
46
46
|
* @example
|
|
47
47
|
* Use a bare-bones client and the command you need to make an API call.
|
|
48
48
|
* ```javascript
|
|
@@ -10,8 +10,8 @@ export interface PutRecordsCommandOutput extends PutRecordsOutput, __MetadataBea
|
|
|
10
10
|
* <p>Writes multiple data records into a Kinesis data stream in a single call (also
|
|
11
11
|
* referred to as a <code>PutRecords</code> request). Use this operation to send data into
|
|
12
12
|
* the stream for data ingestion and processing. </p>
|
|
13
|
-
* <p>Each <code>PutRecords</code> request can support up to 500 records. Each record in
|
|
14
|
-
*
|
|
13
|
+
* <p>Each <code>PutRecords</code> request can support up to 500 records. Each record in the
|
|
14
|
+
* request can be as large as 1 MiB, up to a limit of 5 MiB for the entire request,
|
|
15
15
|
* including partition keys. Each shard can support writes up to 1,000 records per second,
|
|
16
16
|
* up to a maximum data write total of 1 MiB per second.</p>
|
|
17
17
|
* <p>You must specify the name of the stream that captures, stores, and transports the
|
|
@@ -36,9 +36,9 @@ export interface PutRecordsCommandOutput extends PutRecordsOutput, __MetadataBea
|
|
|
36
36
|
* record in the request array using natural ordering, from the top to the bottom of the
|
|
37
37
|
* request and response. The response <code>Records</code> array always includes the same
|
|
38
38
|
* number of records as the request array.</p>
|
|
39
|
-
* <p>The response <code>Records</code> array includes both successfully and
|
|
40
|
-
*
|
|
41
|
-
*
|
|
39
|
+
* <p>The response <code>Records</code> array includes both successfully and unsuccessfully
|
|
40
|
+
* processed records. Kinesis Data Streams attempts to process all records in each
|
|
41
|
+
* <code>PutRecords</code> request. A single record failure does not stop the
|
|
42
42
|
* processing of subsequent records. As a result, PutRecords doesn't guarantee the ordering
|
|
43
43
|
* of records. If you need to read records in the same order they are written to the
|
|
44
44
|
* stream, use <a>PutRecord</a> instead of <code>PutRecords</code>, and write to
|
|
@@ -61,8 +61,8 @@ export interface PutRecordsCommandOutput extends PutRecordsOutput, __MetadataBea
|
|
|
61
61
|
* <p>After you write a record to a stream, you cannot modify that record or its order
|
|
62
62
|
* within the stream.</p>
|
|
63
63
|
* </important>
|
|
64
|
-
* <p>By default, data records are accessible for 24 hours from the time that they are
|
|
65
|
-
*
|
|
64
|
+
* <p>By default, data records are accessible for 24 hours from the time that they are added
|
|
65
|
+
* to a stream. You can use <a>IncreaseStreamRetentionPeriod</a> or <a>DecreaseStreamRetentionPeriod</a> to modify this retention period.</p>
|
|
66
66
|
* @example
|
|
67
67
|
* Use a bare-bones client and the command you need to make an API call.
|
|
68
68
|
* ```javascript
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|