CmdID

CmdID / aws / aws kinesis

aws kinesis merge-shards

Merges two adjacent shards in a Kinesis data stream and combines them into a single shard to reduce the stream's capacity to ingest and transport data. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To merge shards

The following merge-shards example merges two adjacent shards with IDs of shardId-000000000000 and shardId-000000000001 in the specified data stream and combines them into a single shard.

aws kinesis merge-shards --stream-name samplestream --shard-to-merge shardId-000000000000 --adjacent-shard-to-merge shardId-000000000001Identify
--stream-nameThe name of the stream for the merge.
--shard-to-mergeThe shard ID of the shard to combine with the adjacent shard for the merge.
--adjacent-shard-to-mergeThe shard ID of the adjacent shard for the merge.

This command produces no output.

For more information, see Merging Two Shards in the Amazon Kinesis Data Streams Developer Guide.

Options

5 in the AWS CLI reference
--adjacent-shard-to-mergeThe shard ID of the adjacent shard for the merge.
--shard-to-mergeThe shard ID of the shard to combine with the adjacent shard for the merge.
--stream-arnThe ARN of the stream.
--stream-idNot Implemented.
--stream-nameThe name of the stream for the merge.