@aws-sdk/client-kinesis 3.231.0 → 3.232.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.
Files changed (101) hide show
  1. package/dist-cjs/commands/AddTagsToStreamCommand.js +2 -0
  2. package/dist-cjs/commands/DecreaseStreamRetentionPeriodCommand.js +2 -0
  3. package/dist-cjs/commands/DeleteStreamCommand.js +2 -0
  4. package/dist-cjs/commands/DeregisterStreamConsumerCommand.js +3 -0
  5. package/dist-cjs/commands/DescribeStreamCommand.js +2 -0
  6. package/dist-cjs/commands/DescribeStreamConsumerCommand.js +3 -0
  7. package/dist-cjs/commands/DescribeStreamSummaryCommand.js +2 -0
  8. package/dist-cjs/commands/DisableEnhancedMonitoringCommand.js +2 -0
  9. package/dist-cjs/commands/EnableEnhancedMonitoringCommand.js +2 -0
  10. package/dist-cjs/commands/GetRecordsCommand.js +2 -0
  11. package/dist-cjs/commands/GetShardIteratorCommand.js +2 -0
  12. package/dist-cjs/commands/IncreaseStreamRetentionPeriodCommand.js +2 -0
  13. package/dist-cjs/commands/ListShardsCommand.js +2 -0
  14. package/dist-cjs/commands/ListStreamConsumersCommand.js +2 -0
  15. package/dist-cjs/commands/ListTagsForStreamCommand.js +2 -0
  16. package/dist-cjs/commands/MergeShardsCommand.js +2 -0
  17. package/dist-cjs/commands/PutRecordCommand.js +2 -0
  18. package/dist-cjs/commands/PutRecordsCommand.js +2 -0
  19. package/dist-cjs/commands/RegisterStreamConsumerCommand.js +2 -0
  20. package/dist-cjs/commands/RemoveTagsFromStreamCommand.js +2 -0
  21. package/dist-cjs/commands/SplitShardCommand.js +2 -0
  22. package/dist-cjs/commands/StartStreamEncryptionCommand.js +2 -0
  23. package/dist-cjs/commands/StopStreamEncryptionCommand.js +2 -0
  24. package/dist-cjs/commands/SubscribeToShardCommand.js +2 -0
  25. package/dist-cjs/commands/UpdateShardCountCommand.js +2 -0
  26. package/dist-cjs/commands/UpdateStreamModeCommand.js +2 -0
  27. package/dist-cjs/endpoint/ruleset.js +1069 -5
  28. package/dist-cjs/models/models_0.js +19 -2
  29. package/dist-cjs/pagination/ListStreamsPaginator.js +36 -0
  30. package/dist-cjs/pagination/index.js +1 -0
  31. package/dist-cjs/protocols/Aws_json1_1.js +143 -0
  32. package/dist-es/commands/AddTagsToStreamCommand.js +2 -0
  33. package/dist-es/commands/DecreaseStreamRetentionPeriodCommand.js +2 -0
  34. package/dist-es/commands/DeleteStreamCommand.js +2 -0
  35. package/dist-es/commands/DeregisterStreamConsumerCommand.js +3 -0
  36. package/dist-es/commands/DescribeStreamCommand.js +2 -0
  37. package/dist-es/commands/DescribeStreamConsumerCommand.js +3 -0
  38. package/dist-es/commands/DescribeStreamSummaryCommand.js +2 -0
  39. package/dist-es/commands/DisableEnhancedMonitoringCommand.js +2 -0
  40. package/dist-es/commands/EnableEnhancedMonitoringCommand.js +2 -0
  41. package/dist-es/commands/GetRecordsCommand.js +2 -0
  42. package/dist-es/commands/GetShardIteratorCommand.js +2 -0
  43. package/dist-es/commands/IncreaseStreamRetentionPeriodCommand.js +2 -0
  44. package/dist-es/commands/ListShardsCommand.js +2 -0
  45. package/dist-es/commands/ListStreamConsumersCommand.js +2 -0
  46. package/dist-es/commands/ListTagsForStreamCommand.js +2 -0
  47. package/dist-es/commands/MergeShardsCommand.js +2 -0
  48. package/dist-es/commands/PutRecordCommand.js +2 -0
  49. package/dist-es/commands/PutRecordsCommand.js +2 -0
  50. package/dist-es/commands/RegisterStreamConsumerCommand.js +2 -0
  51. package/dist-es/commands/RemoveTagsFromStreamCommand.js +2 -0
  52. package/dist-es/commands/SplitShardCommand.js +2 -0
  53. package/dist-es/commands/StartStreamEncryptionCommand.js +2 -0
  54. package/dist-es/commands/StopStreamEncryptionCommand.js +2 -0
  55. package/dist-es/commands/SubscribeToShardCommand.js +2 -0
  56. package/dist-es/commands/UpdateShardCountCommand.js +2 -0
  57. package/dist-es/commands/UpdateStreamModeCommand.js +2 -0
  58. package/dist-es/endpoint/ruleset.js +1069 -5
  59. package/dist-es/models/models_0.js +15 -0
  60. package/dist-es/pagination/ListStreamsPaginator.js +32 -0
  61. package/dist-es/pagination/index.js +1 -0
  62. package/dist-es/protocols/Aws_json1_1.js +144 -1
  63. package/dist-types/Kinesis.d.ts +213 -138
  64. package/dist-types/KinesisClient.d.ts +1 -1
  65. package/dist-types/commands/AddTagsToStreamCommand.d.ts +6 -2
  66. package/dist-types/commands/CreateStreamCommand.d.ts +19 -16
  67. package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +5 -1
  68. package/dist-types/commands/DeleteStreamCommand.d.ts +9 -6
  69. package/dist-types/commands/DeregisterStreamConsumerCommand.d.ts +1 -1
  70. package/dist-types/commands/DescribeLimitsCommand.d.ts +2 -2
  71. package/dist-types/commands/DescribeStreamCommand.d.ts +10 -7
  72. package/dist-types/commands/DescribeStreamConsumerCommand.d.ts +1 -1
  73. package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +6 -2
  74. package/dist-types/commands/DisableEnhancedMonitoringCommand.d.ts +4 -0
  75. package/dist-types/commands/EnableEnhancedMonitoringCommand.d.ts +4 -0
  76. package/dist-types/commands/GetRecordsCommand.d.ts +11 -16
  77. package/dist-types/commands/GetShardIteratorCommand.d.ts +10 -6
  78. package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +5 -1
  79. package/dist-types/commands/ListShardsCommand.d.ts +7 -3
  80. package/dist-types/commands/ListStreamConsumersCommand.d.ts +1 -1
  81. package/dist-types/commands/ListStreamsCommand.d.ts +3 -3
  82. package/dist-types/commands/ListTagsForStreamCommand.d.ts +4 -0
  83. package/dist-types/commands/MergeShardsCommand.d.ts +13 -8
  84. package/dist-types/commands/PutRecordCommand.d.ts +14 -10
  85. package/dist-types/commands/PutRecordsCommand.d.ts +16 -12
  86. package/dist-types/commands/RegisterStreamConsumerCommand.d.ts +3 -3
  87. package/dist-types/commands/RemoveTagsFromStreamCommand.d.ts +6 -2
  88. package/dist-types/commands/SplitShardCommand.d.ts +15 -10
  89. package/dist-types/commands/StartStreamEncryptionCommand.d.ts +7 -3
  90. package/dist-types/commands/StopStreamEncryptionCommand.d.ts +7 -3
  91. package/dist-types/commands/SubscribeToShardCommand.d.ts +4 -4
  92. package/dist-types/commands/UpdateShardCountCommand.d.ts +19 -14
  93. package/dist-types/endpoint/EndpointParameters.d.ts +4 -1
  94. package/dist-types/models/models_0.d.ts +351 -214
  95. package/dist-types/pagination/ListStreamsPaginator.d.ts +4 -0
  96. package/dist-types/pagination/index.d.ts +1 -0
  97. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  98. package/dist-types/ts3.4/models/models_0.d.ts +60 -18
  99. package/dist-types/ts3.4/pagination/ListStreamsPaginator.d.ts +11 -0
  100. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  101. package/package.json +1 -1
@@ -158,7 +158,7 @@ export interface KinesisClientResolvedConfig extends KinesisClientResolvedConfig
158
158
  }
159
159
  /**
160
160
  * <fullname>Amazon Kinesis Data Streams Service API Reference</fullname>
161
- * <p>Amazon Kinesis Data Streams is a managed service that scales elastically for real-time
161
+ * <p>Amazon Kinesis Data Streams is a managed service that scales elastically for real-time
162
162
  * processing of streaming big data.</p>
163
163
  */
164
164
  export declare class KinesisClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, KinesisClientResolvedConfig> {
@@ -10,9 +10,13 @@ export interface AddTagsToStreamCommandOutput extends __MetadataBearer {
10
10
  /**
11
11
  * <p>Adds or updates tags for the specified Kinesis data stream. You can assign up to 50
12
12
  * tags to a data stream.</p>
13
- * <p>If tags have already been assigned to the stream, <code>AddTagsToStream</code>
13
+ * <note>
14
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
15
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
16
+ * </note>
17
+ * <p>If tags have already been assigned to the stream, <code>AddTagsToStream</code>
14
18
  * overwrites any existing tags that correspond to the specified tag keys.</p>
15
- * <p>
19
+ * <p>
16
20
  * <a>AddTagsToStream</a> has a limit of five transactions per second per
17
21
  * account.</p>
18
22
  * @example
@@ -12,41 +12,44 @@ export interface CreateStreamCommandOutput extends __MetadataBearer {
12
12
  * continuously emitted from different data sources or <i>producers</i>.
13
13
  * Scale-out within a stream is explicitly supported by means of shards, which are uniquely
14
14
  * identified groups of data records in a stream.</p>
15
- * <p>You specify and control the number of shards that a stream is composed of. Each shard
16
- * can support reads up to five transactions per second, up to a maximum data read total of
17
- * 2 MiB per second. Each shard can support writes up to 1,000 records per second, up to a
18
- * maximum data write total of 1 MiB per second. If the amount of data input increases or
19
- * decreases, you can add or remove shards.</p>
20
- * <p>The stream name identifies the stream. The name is scoped to the Amazon Web Services
15
+ * <p>You can create your data stream using either on-demand or provisioned capacity mode.
16
+ * Data streams with an on-demand mode require no capacity planning and automatically scale
17
+ * to handle gigabytes of write and read throughput per minute. With the on-demand mode,
18
+ * Kinesis Data Streams automatically manages the shards in order to provide the necessary
19
+ * throughput. For the data streams with a provisioned mode, you must specify the number of
20
+ * shards for the data stream. Each shard can support reads up to five transactions per
21
+ * second, up to a maximum data read total of 2 MiB per second. Each shard can support
22
+ * writes up to 1,000 records per second, up to a maximum data write total of 1 MiB per
23
+ * second. If the amount of data input increases or decreases, you can add or remove
24
+ * shards.</p>
25
+ * <p>The stream name identifies the stream. The name is scoped to the Amazon Web Services
21
26
  * account used by the application. It is also scoped by Amazon Web Services Region. That
22
27
  * is, two streams in two different accounts can have the same name, and two streams in the
23
28
  * same account, but in two different Regions, can have the same name.</p>
24
- * <p>
29
+ * <p>
25
30
  * <code>CreateStream</code> is an asynchronous operation. Upon receiving a
26
31
  * <code>CreateStream</code> request, Kinesis Data Streams immediately returns and sets
27
32
  * the stream status to <code>CREATING</code>. After the stream is created, Kinesis Data
28
33
  * Streams sets the stream status to <code>ACTIVE</code>. You should perform read and write
29
34
  * operations only on an <code>ACTIVE</code> stream. </p>
30
- * <p>You receive a <code>LimitExceededException</code> when making a
35
+ * <p>You receive a <code>LimitExceededException</code> when making a
31
36
  * <code>CreateStream</code> request when you try to do one of the following:</p>
32
- * <ul>
37
+ * <ul>
33
38
  * <li>
34
- *
35
- * <p>Have more than five streams in the <code>CREATING</code> state at any point in
39
+ * <p>Have more than five streams in the <code>CREATING</code> state at any point in
36
40
  * time.</p>
37
41
  * </li>
38
42
  * <li>
39
- *
40
- * <p>Create more shards than are authorized for your account.</p>
43
+ * <p>Create more shards than are authorized for your account.</p>
41
44
  * </li>
42
45
  * </ul>
43
- * <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
46
+ * <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
44
47
  * Kinesis Data Streams Limits</a> in the <i>Amazon Kinesis Data Streams
45
48
  * 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
46
49
  * Support</a>.</p>
47
- * <p>You can use <a>DescribeStreamSummary</a> to check the stream status, which
50
+ * <p>You can use <a>DescribeStreamSummary</a> to check the stream status, which
48
51
  * is returned in <code>StreamStatus</code>.</p>
49
- * <p>
52
+ * <p>
50
53
  * <a>CreateStream</a> has a limit of five transactions per second per
51
54
  * account.</p>
52
55
  * @example
@@ -11,7 +11,11 @@ export interface DecreaseStreamRetentionPeriodCommandOutput extends __MetadataBe
11
11
  * <p>Decreases the Kinesis data stream's retention period, which is the length of time data
12
12
  * records are accessible after they are added to the stream. The minimum value of a
13
13
  * stream's retention period is 24 hours.</p>
14
- * <p>This operation may result in lost data. For example, if the stream's retention period
14
+ * <note>
15
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
16
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
17
+ * </note>
18
+ * <p>This operation may result in lost data. For example, if the stream's retention period
15
19
  * is 48 hours and is decreased to 24 hours, any data already in the stream that is older
16
20
  * than 24 hours is inaccessible.</p>
17
21
  * @example
@@ -12,20 +12,23 @@ export interface DeleteStreamCommandOutput extends __MetadataBearer {
12
12
  * applications that are operating on the stream before you delete the stream. If an
13
13
  * application attempts to operate on a deleted stream, it receives the exception
14
14
  * <code>ResourceNotFoundException</code>.</p>
15
- * <p>If the stream is in the <code>ACTIVE</code> state, you can delete it. After a
15
+ * <note>
16
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
17
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
18
+ * </note>
19
+ * <p>If the stream is in the <code>ACTIVE</code> state, you can delete it. After a
16
20
  * <code>DeleteStream</code> request, the specified stream is in the
17
21
  * <code>DELETING</code> state until Kinesis Data Streams completes the
18
22
  * deletion.</p>
19
- * <p>
23
+ * <p>
20
24
  * <b>Note:</b> Kinesis Data Streams might continue to accept
21
25
  * data read and write operations, such as <a>PutRecord</a>, <a>PutRecords</a>, and <a>GetRecords</a>, on a stream in the
22
26
  * <code>DELETING</code> state until the stream deletion is complete.</p>
23
- * <p>When you delete a stream, any shards in that stream are also deleted, and any tags are
27
+ * <p>When you delete a stream, any shards in that stream are also deleted, and any tags are
24
28
  * dissociated from the stream.</p>
25
- * <p>You can use the <a>DescribeStreamSummary</a> operation to check the state
29
+ * <p>You can use the <a>DescribeStreamSummary</a> operation to check the state
26
30
  * of the stream, which is returned in <code>StreamStatus</code>.</p>
27
- *
28
- * <p>
31
+ * <p>
29
32
  * <a>DeleteStream</a> has a limit of five transactions per second per
30
33
  * account.</p>
31
34
  * @example
@@ -15,7 +15,7 @@ export interface DeregisterStreamConsumerCommandOutput extends __MetadataBearer
15
15
  * <a>ListStreamConsumers</a> operation to get a list of the descriptions of
16
16
  * all the consumers that are currently registered with a given data stream. The
17
17
  * description of a consumer contains its name and ARN.</p>
18
- * <p>This operation has a limit of five transactions per second per stream.</p>
18
+ * <p>This operation has a limit of five transactions per second per stream.</p>
19
19
  * @example
20
20
  * Use a bare-bones client and the command you need to make an API call.
21
21
  * ```javascript
@@ -9,9 +9,9 @@ export interface DescribeLimitsCommandOutput extends DescribeLimitsOutput, __Met
9
9
  }
10
10
  /**
11
11
  * <p>Describes the shard limits and usage for the account.</p>
12
- * <p>If you update your account limits, the old limits might be returned for a few
12
+ * <p>If you update your account limits, the old limits might be returned for a few
13
13
  * minutes.</p>
14
- * <p>This operation has a limit of one transaction per second per account.</p>
14
+ * <p>This operation has a limit of one transaction per second per account.</p>
15
15
  * @example
16
16
  * Use a bare-bones client and the command you need to make an API call.
17
17
  * ```javascript
@@ -9,26 +9,29 @@ export interface DescribeStreamCommandOutput extends DescribeStreamOutput, __Met
9
9
  }
10
10
  /**
11
11
  * <p>Describes the specified Kinesis data stream.</p>
12
- * <note>
12
+ * <note>
13
13
  * <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
14
14
  * specified Kinesis data stream and the <a>ListShards</a> API to list the
15
15
  * shards in a specified data stream and obtain information about each shard. </p>
16
- * </note>
17
- * <p>The information returned includes the stream name, Amazon Resource Name (ARN),
16
+ * </note>
17
+ * <note>
18
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
19
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
20
+ * </note>
21
+ * <p>The information returned includes the stream name, Amazon Resource Name (ARN),
18
22
  * creation time, enhanced metric configuration, and shard map. The shard map is an array
19
23
  * of shard objects. For each shard object, there is the hash key and sequence number
20
24
  * ranges that the shard spans, and the IDs of any earlier shards that played in a role in
21
25
  * creating the shard. Every record ingested in the stream is identified by a sequence
22
26
  * number, which is assigned when the record is put into the stream.</p>
23
- *
24
- * <p>You can limit the number of shards returned by each call. For more information, see
27
+ * <p>You can limit the number of shards returned by each call. For more information, see
25
28
  * <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-retrieve-shards.html">Retrieving
26
29
  * Shards from a Stream</a> in the <i>Amazon Kinesis Data Streams Developer
27
30
  * Guide</i>.</p>
28
- * <p>There are no guarantees about the chronological order shards returned. To process
31
+ * <p>There are no guarantees about the chronological order shards returned. To process
29
32
  * shards in chronological order, use the ID of the parent shard to track the lineage to
30
33
  * the oldest shard.</p>
31
- * <p>This operation has a limit of 10 transactions per second per account.</p>
34
+ * <p>This operation has a limit of 10 transactions per second per account.</p>
32
35
  * @example
33
36
  * Use a bare-bones client and the command you need to make an API call.
34
37
  * ```javascript
@@ -15,7 +15,7 @@ export interface DescribeStreamConsumerCommandOutput extends DescribeStreamConsu
15
15
  * that you want to describe, you can use the <a>ListStreamConsumers</a>
16
16
  * operation to get a list of the descriptions of all the consumers that are currently
17
17
  * registered with a given data stream.</p>
18
- * <p>This operation has a limit of 20 transactions per second per stream.</p>
18
+ * <p>This operation has a limit of 20 transactions per second per stream.</p>
19
19
  * @example
20
20
  * Use a bare-bones client and the command you need to make an API call.
21
21
  * ```javascript
@@ -10,10 +10,14 @@ export interface DescribeStreamSummaryCommandOutput extends DescribeStreamSummar
10
10
  /**
11
11
  * <p>Provides a summarized description of the specified Kinesis data stream without the
12
12
  * shard list.</p>
13
- * <p>The information returned includes the stream name, Amazon Resource Name (ARN), status,
13
+ * <note>
14
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
15
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
16
+ * </note>
17
+ * <p>The information returned includes the stream name, Amazon Resource Name (ARN), status,
14
18
  * record retention period, approximate creation time, monitoring, encryption details, and
15
19
  * open shard count. </p>
16
- * <p>
20
+ * <p>
17
21
  * <a>DescribeStreamSummary</a> has a limit of 20 transactions per second per
18
22
  * account.</p>
19
23
  * @example
@@ -9,6 +9,10 @@ export interface DisableEnhancedMonitoringCommandOutput extends EnhancedMonitori
9
9
  }
10
10
  /**
11
11
  * <p>Disables enhanced monitoring.</p>
12
+ * <note>
13
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
14
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
15
+ * </note>
12
16
  * @example
13
17
  * Use a bare-bones client and the command you need to make an API call.
14
18
  * ```javascript
@@ -9,6 +9,10 @@ export interface EnableEnhancedMonitoringCommandOutput extends EnhancedMonitorin
9
9
  }
10
10
  /**
11
11
  * <p>Enables enhanced Kinesis data stream monitoring for shard-level metrics.</p>
12
+ * <note>
13
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
14
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
15
+ * </note>
12
16
  * @example
13
17
  * Use a bare-bones client and the command you need to make an API call.
14
18
  * ```javascript
@@ -9,12 +9,16 @@ export interface GetRecordsCommandOutput extends GetRecordsOutput, __MetadataBea
9
9
  }
10
10
  /**
11
11
  * <p>Gets data records from a Kinesis data stream's shard.</p>
12
- * <p>Specify a shard iterator using the <code>ShardIterator</code> parameter. The shard
12
+ * <note>
13
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
14
+ * parameter in addition to the <code>ShardIterator</code> parameter.</p>
15
+ * </note>
16
+ * <p>Specify a shard iterator using the <code>ShardIterator</code> parameter. The shard
13
17
  * iterator specifies the position in the shard from which you want to start reading data
14
18
  * records sequentially. If there are no records available in the portion of the shard that
15
19
  * the iterator points to, <a>GetRecords</a> returns an empty list. It might
16
20
  * take multiple calls to get to a portion of the shard that contains records.</p>
17
- * <p>You can scale by provisioning multiple shards per stream while considering service
21
+ * <p>You can scale by provisioning multiple shards per stream while considering service
18
22
  * limits (for more information, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Amazon Kinesis Data Streams
19
23
  * Limits</a> in the <i>Amazon Kinesis Data Streams Developer
20
24
  * Guide</i>). Your application should have one thread per shard, each reading
@@ -26,14 +30,13 @@ export interface GetRecordsCommandOutput extends GetRecordsOutput, __MetadataBea
26
30
  * You can terminate the loop when the shard is closed, or when the shard iterator reaches
27
31
  * the record with the sequence number or other attribute that marks it as the last record
28
32
  * to process.</p>
29
- * <p>Each data record can be up to 1 MiB in size, and each shard can read up to 2 MiB per
33
+ * <p>Each data record can be up to 1 MiB in size, and each shard can read up to 2 MiB per
30
34
  * second. You can ensure that your calls don't exceed the maximum supported size or
31
35
  * throughput by using the <code>Limit</code> parameter to specify the maximum number of
32
36
  * records that <a>GetRecords</a> can return. Consider your average record size
33
37
  * when determining this limit. The maximum number of records that can be returned per call
34
38
  * is 10,000.</p>
35
- *
36
- * <p>The size of the data returned by <a>GetRecords</a> varies depending on the
39
+ * <p>The size of the data returned by <a>GetRecords</a> varies depending on the
37
40
  * utilization of the shard. It is recommended that consumer applications retrieve records
38
41
  * via the <code>GetRecords</code> command using the 5 TPS limit to remain caught up.
39
42
  * Retrieving records less frequently can lead to consumer applications falling behind. The
@@ -45,26 +48,18 @@ export interface GetRecordsCommandOutput extends GetRecordsOutput, __MetadataBea
45
48
  * doesn't return any data when it throws an exception. For this reason, we recommend that
46
49
  * you wait 1 second between calls to <a>GetRecords</a>. However, it's possible
47
50
  * that the application will get exceptions for longer than 1 second.</p>
48
- *
49
- *
50
- *
51
- *
52
- *
53
- *
54
- *
55
- *
56
- * <p>To detect whether the application is falling behind in processing, you can use the
51
+ * <p>To detect whether the application is falling behind in processing, you can use the
57
52
  * <code>MillisBehindLatest</code> response attribute. You can also monitor the stream
58
53
  * 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
59
54
  * Kinesis Data Streams Developer Guide</i>).</p>
60
- * <p>Each Amazon Kinesis record includes a value, <code>ApproximateArrivalTimestamp</code>,
55
+ * <p>Each Amazon Kinesis record includes a value, <code>ApproximateArrivalTimestamp</code>,
61
56
  * that is set when a stream successfully receives and stores a record. This is commonly
62
57
  * referred to as a server-side time stamp, whereas a client-side time stamp is set when a
63
58
  * data producer creates or sends the record to a stream (a data producer is any data
64
59
  * 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
65
60
  * stamp accuracy, or that the time stamp is always increasing. For example, records in a
66
61
  * shard or across a stream might have time stamps that are out of order.</p>
67
- * <p>This operation has a limit of five transactions per second per shard.</p>
62
+ * <p>This operation has a limit of five transactions per second per shard.</p>
68
63
  * @example
69
64
  * Use a bare-bones client and the command you need to make an API call.
70
65
  * ```javascript
@@ -10,12 +10,16 @@ export interface GetShardIteratorCommandOutput extends GetShardIteratorOutput, _
10
10
  /**
11
11
  * <p>Gets an Amazon Kinesis shard iterator. A shard iterator expires 5 minutes after it is
12
12
  * returned to the requester.</p>
13
- * <p>A shard iterator specifies the shard position from which to start reading data records
13
+ * <note>
14
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
15
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
16
+ * </note>
17
+ * <p>A shard iterator specifies the shard position from which to start reading data records
14
18
  * sequentially. The position is specified using the sequence number of a data record in a
15
19
  * shard. A sequence number is the identifier associated with every record ingested in the
16
20
  * stream, and is assigned when a record is put into the stream. Each stream has one or
17
21
  * more shards.</p>
18
- * <p>You must specify the shard iterator type. For example, you can set the
22
+ * <p>You must specify the shard iterator type. For example, you can set the
19
23
  * <code>ShardIteratorType</code> parameter to read exactly from the position denoted
20
24
  * by a specific sequence number by using the <code>AT_SEQUENCE_NUMBER</code> shard
21
25
  * iterator type. Alternatively, the parameter can read right after the sequence number by
@@ -27,19 +31,19 @@ export interface GetShardIteratorCommandOutput extends GetShardIteratorOutput, _
27
31
  * <code>ShardIterator</code> to point to the last untrimmed record in the shard in the
28
32
  * system (the oldest data record in the shard), or <code>LATEST</code> so that you always
29
33
  * read the most recent data in the shard. </p>
30
- * <p>When you read repeatedly from a stream, use a <a>GetShardIterator</a>
34
+ * <p>When you read repeatedly from a stream, use a <a>GetShardIterator</a>
31
35
  * request to get the first shard iterator for use in your first <a>GetRecords</a> request and for subsequent reads use the shard iterator returned by the <a>GetRecords</a> request in <code>NextShardIterator</code>. A new shard
32
36
  * iterator is returned by every <a>GetRecords</a> request in
33
37
  * <code>NextShardIterator</code>, which you use in the <code>ShardIterator</code>
34
38
  * parameter of the next <a>GetRecords</a> request. </p>
35
- * <p>If a <a>GetShardIterator</a> request is made too often, you receive a
39
+ * <p>If a <a>GetShardIterator</a> request is made too often, you receive a
36
40
  * <code>ProvisionedThroughputExceededException</code>. For more information about
37
41
  * throughput limits, see <a>GetRecords</a>, and <a href="https://docs.aws.amazon.com/kinesis/latest/dev/service-sizes-and-limits.html">Streams Limits</a> in the
38
42
  * <i>Amazon Kinesis Data Streams Developer Guide</i>.</p>
39
- * <p>If the shard is closed, <a>GetShardIterator</a> returns a valid iterator
43
+ * <p>If the shard is closed, <a>GetShardIterator</a> returns a valid iterator
40
44
  * for the last sequence number of the shard. A shard can be closed as a result of using
41
45
  * <a>SplitShard</a> or <a>MergeShards</a>.</p>
42
- * <p>
46
+ * <p>
43
47
  * <a>GetShardIterator</a> has a limit of five transactions per second per
44
48
  * account per open shard.</p>
45
49
  * @example
@@ -11,7 +11,11 @@ export interface IncreaseStreamRetentionPeriodCommandOutput extends __MetadataBe
11
11
  * <p>Increases the Kinesis data stream's retention period, which is the length of time data
12
12
  * records are accessible after they are added to the stream. The maximum value of a
13
13
  * stream's retention period is 8760 hours (365 days).</p>
14
- * <p>If you choose a longer stream retention period, this operation increases the time
14
+ * <note>
15
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
16
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
17
+ * </note>
18
+ * <p>If you choose a longer stream retention period, this operation increases the time
15
19
  * period during which records that have not yet expired are accessible. However, it does
16
20
  * not make previous, expired data (older than the stream's previous retention period)
17
21
  * accessible after the operation has been called. For example, if a stream's retention
@@ -10,15 +10,19 @@ export interface ListShardsCommandOutput extends ListShardsOutput, __MetadataBea
10
10
  /**
11
11
  * <p>Lists the shards in a stream and provides information about each shard. This operation
12
12
  * has a limit of 1000 transactions per second per data stream.</p>
13
- * <p>This action does not list expired shards. For information about expired shards, see
13
+ * <note>
14
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
15
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
16
+ * </note>
17
+ * <p>This action does not list expired shards. For information about expired shards, see
14
18
  * <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>
15
- * <important>
19
+ * <important>
16
20
  * <p>This API is a new operation that is used by the Amazon Kinesis Client Library
17
21
  * (KCL). If you have a fine-grained IAM policy that only allows specific operations,
18
22
  * you must update your policy to allow calls to this API. For more information, see
19
23
  * <a href="https://docs.aws.amazon.com/streams/latest/dev/controlling-access.html">Controlling Access to Amazon Kinesis Data Streams Resources Using
20
24
  * IAM</a>.</p>
21
- * </important>
25
+ * </important>
22
26
  * @example
23
27
  * Use a bare-bones client and the command you need to make an API call.
24
28
  * ```javascript
@@ -10,7 +10,7 @@ export interface ListStreamConsumersCommandOutput extends ListStreamConsumersOut
10
10
  /**
11
11
  * <p>Lists the consumers registered to receive data from a stream using enhanced fan-out,
12
12
  * and provides information about each consumer.</p>
13
- * <p>This operation has a limit of 5 transactions per second per stream.</p>
13
+ * <p>This operation has a limit of 5 transactions per second per stream.</p>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
16
16
  * ```javascript
@@ -9,19 +9,19 @@ export interface ListStreamsCommandOutput extends ListStreamsOutput, __MetadataB
9
9
  }
10
10
  /**
11
11
  * <p>Lists your Kinesis data streams.</p>
12
- * <p>The number of streams may be too large to return from a single call to
12
+ * <p>The number of streams may be too large to return from a single call to
13
13
  * <code>ListStreams</code>. You can limit the number of returned streams using the
14
14
  * <code>Limit</code> parameter. If you do not specify a value for the
15
15
  * <code>Limit</code> parameter, Kinesis Data Streams uses the default limit, which is
16
16
  * currently 100.</p>
17
- * <p>You can detect if there are more streams available to list by using the
17
+ * <p>You can detect if there are more streams available to list by using the
18
18
  * <code>HasMoreStreams</code> flag from the returned output. If there are more streams
19
19
  * available, you can request more streams by using the name of the last stream returned by
20
20
  * the <code>ListStreams</code> request in the <code>ExclusiveStartStreamName</code>
21
21
  * parameter in a subsequent request to <code>ListStreams</code>. The group of stream names
22
22
  * returned by the subsequent request is then added to the list. You can continue this
23
23
  * process until all the stream names have been collected in the list. </p>
24
- * <p>
24
+ * <p>
25
25
  * <a>ListStreams</a> has a limit of five transactions per second per
26
26
  * account.</p>
27
27
  * @example
@@ -10,6 +10,10 @@ export interface ListTagsForStreamCommandOutput extends ListTagsForStreamOutput,
10
10
  /**
11
11
  * <p>Lists the tags for the specified Kinesis data stream. This operation has a limit of
12
12
  * five transactions per second per account.</p>
13
+ * <note>
14
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
15
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
16
+ * </note>
13
17
  * @example
14
18
  * Use a bare-bones client and the command you need to make an API call.
15
19
  * ```javascript
@@ -9,40 +9,45 @@ export interface MergeShardsCommandOutput extends __MetadataBearer {
9
9
  }
10
10
  /**
11
11
  * <p>Merges two adjacent shards in a Kinesis data stream and combines them into a single
12
- * shard to reduce the stream's capacity to ingest and transport data. Two shards are
12
+ * shard to reduce the stream's capacity to ingest and transport data. This API is only
13
+ * supported for the data streams with the provisioned capacity mode. Two shards are
13
14
  * considered adjacent if the union of the hash key ranges for the two shards form a
14
15
  * contiguous set with no gaps. For example, if you have two shards, one with a hash key
15
16
  * range of 276...381 and the other with a hash key range of 382...454, then you could
16
17
  * merge these two shards into a single shard that would have a hash key range of
17
18
  * 276...454. After the merge, the single child shard receives data for all hash key values
18
19
  * covered by the two parent shards.</p>
19
- * <p>
20
+ * <note>
21
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
22
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
23
+ * </note>
24
+ * <p>
20
25
  * <code>MergeShards</code> is called when there is a need to reduce the overall capacity
21
26
  * of a stream because of excess capacity that is not being used. You must specify the
22
27
  * shard to be merged and the adjacent shard for a stream. For more information about
23
28
  * merging shards, see <a href="https://docs.aws.amazon.com/kinesis/latest/dev/kinesis-using-sdk-java-resharding-merge.html">Merge Two
24
29
  * Shards</a> in the <i>Amazon Kinesis Data Streams Developer
25
30
  * Guide</i>.</p>
26
- * <p>If the stream is in the <code>ACTIVE</code> state, you can call
31
+ * <p>If the stream is in the <code>ACTIVE</code> state, you can call
27
32
  * <code>MergeShards</code>. If a stream is in the <code>CREATING</code>,
28
33
  * <code>UPDATING</code>, or <code>DELETING</code> state, <code>MergeShards</code>
29
34
  * returns a <code>ResourceInUseException</code>. If the specified stream does not exist,
30
35
  * <code>MergeShards</code> returns a <code>ResourceNotFoundException</code>. </p>
31
- * <p>You can use <a>DescribeStreamSummary</a> to check the state of the stream,
36
+ * <p>You can use <a>DescribeStreamSummary</a> to check the state of the stream,
32
37
  * which is returned in <code>StreamStatus</code>.</p>
33
- * <p>
38
+ * <p>
34
39
  * <code>MergeShards</code> is an asynchronous operation. Upon receiving a
35
40
  * <code>MergeShards</code> request, Amazon Kinesis Data Streams immediately returns a
36
41
  * response and sets the <code>StreamStatus</code> to <code>UPDATING</code>. After the
37
42
  * operation is completed, Kinesis Data Streams sets the <code>StreamStatus</code> to
38
43
  * <code>ACTIVE</code>. Read and write operations continue to work while the stream is
39
44
  * in the <code>UPDATING</code> state. </p>
40
- * <p>You use <a>DescribeStreamSummary</a> and the <a>ListShards</a>
45
+ * <p>You use <a>DescribeStreamSummary</a> and the <a>ListShards</a>
41
46
  * APIs to determine the shard IDs that are specified in the <code>MergeShards</code>
42
47
  * request. </p>
43
- * <p>If you try to operate on too many streams in parallel using <a>CreateStream</a>, <a>DeleteStream</a>, <code>MergeShards</code>,
48
+ * <p>If you try to operate on too many streams in parallel using <a>CreateStream</a>, <a>DeleteStream</a>, <code>MergeShards</code>,
44
49
  * or <a>SplitShard</a>, you receive a <code>LimitExceededException</code>. </p>
45
- * <p>
50
+ * <p>
46
51
  * <code>MergeShards</code> has a limit of five transactions per second per account.</p>
47
52
  * @example
48
53
  * Use a bare-bones client and the command you need to make an API call.
@@ -12,37 +12,41 @@ export interface PutRecordCommandOutput extends PutRecordOutput, __MetadataBeare
12
12
  * <code>PutRecord</code> to send data into the stream for real-time ingestion and
13
13
  * subsequent processing, one record at a time. Each shard can support writes up to 1,000
14
14
  * records per second, up to a maximum data write total of 1 MiB per second.</p>
15
- * <p>You must specify the name of the stream that captures, stores, and transports the
15
+ * <note>
16
+ * <p>When invoking this API, it is recommended you use the <code>StreamARN</code> input
17
+ * parameter rather than the <code>StreamName</code> input parameter.</p>
18
+ * </note>
19
+ * <p>You must specify the name of the stream that captures, stores, and transports the
16
20
  * data; a partition key; and the data blob itself.</p>
17
- * <p>The data blob can be any type of data; for example, a segment from a log file,
21
+ * <p>The data blob can be any type of data; for example, a segment from a log file,
18
22
  * geographic/location data, website clickstream data, and so on.</p>
19
- * <p>The partition key is used by Kinesis Data Streams to distribute data across shards.
23
+ * <p>The partition key is used by Kinesis Data Streams to distribute data across shards.
20
24
  * Kinesis Data Streams segregates the data records that belong to a stream into multiple
21
25
  * shards, using the partition key associated with each data record to determine the shard
22
26
  * to which a given data record belongs.</p>
23
- * <p>Partition keys are Unicode strings, with a maximum length limit of 256 characters for
27
+ * <p>Partition keys are Unicode strings, with a maximum length limit of 256 characters for
24
28
  * each key. An MD5 hash function is used to map partition keys to 128-bit integer values
25
29
  * and to map associated data records to shards using the hash key ranges of the shards.
26
30
  * You can override hashing the partition key to determine the shard by explicitly
27
31
  * specifying a hash value using the <code>ExplicitHashKey</code> parameter. For more
28
32
  * 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
29
33
  * Developer Guide</i>.</p>
30
- * <p>
34
+ * <p>
31
35
  * <code>PutRecord</code> returns the shard ID of where the data record was placed and the
32
36
  * sequence number that was assigned to the data record.</p>
33
- * <p>Sequence numbers increase over time and are specific to a shard within a stream, not
37
+ * <p>Sequence numbers increase over time and are specific to a shard within a stream, not
34
38
  * across all shards within a stream. To guarantee strictly increasing ordering, write
35
39
  * serially to a shard and use the <code>SequenceNumberForOrdering</code> parameter. For
36
40
  * 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
37
41
  * Developer Guide</i>.</p>
38
- * <important>
42
+ * <important>
39
43
  * <p>After you write a record to a stream, you cannot modify that record or its order
40
44
  * within the stream.</p>
41
- * </important>
42
- * <p>If a <code>PutRecord</code> request cannot be processed because of insufficient
45
+ * </important>
46
+ * <p>If a <code>PutRecord</code> request cannot be processed because of insufficient
43
47
  * provisioned throughput on the shard involved in the request, <code>PutRecord</code>
44
48
  * throws <code>ProvisionedThroughputExceededException</code>. </p>
45
- * <p>By default, data records are accessible for 24 hours from the time that they are added
49
+ * <p>By default, data records are accessible for 24 hours from the time that they are added
46
50
  * to a stream. You can use <a>IncreaseStreamRetentionPeriod</a> or <a>DecreaseStreamRetentionPeriod</a> to modify this retention period.</p>
47
51
  * @example
48
52
  * Use a bare-bones client and the command you need to make an API call.