CmdID

CmdID / aws / aws kinesis

aws kinesis get-records

Gets data records from a Kinesis data stream's shard. 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 obtain records from a shard

The following get-records example gets data records from a Kinesis data stream's shard using the specified shard iterator.

aws kinesis get-records --shard-iterator AAAAAAAAAAF7/0mWD7IuHj1yGv/TKuNgx2ukD5xipCY4cy4gU96orWwZwcSXh3K9tAmGYeOZyLZrvzzeOFVf9iN99hUPw/w/b0YWYeehfNvnf1DYt5XpDJghLKr3DzgznkTmMymDP3R+3wRKeuEw6/kdxY2yKJH0veaiekaVc4N2VwK/GvaGP2Hh9Fg7N++q0Adg6fIDQPt4p8RpavDbk+A4sL9SWGE1Identify
--shard-iteratorThe position in the shard from which you want to start sequentially reading data records.
Its output
{
    "Records": [],
    "MillisBehindLatest": 80742000
}

For more information, see Developing Consumers Using the Kinesis Data Streams API with the AWS SDK for Java in the Amazon Kinesis Data Streams Developer Guide.

Options

5 in the AWS CLI reference
--dry-runChecks if your request will succeed.
--limitThe maximum number of records to return.
--shard-iteratorThe position in the shard from which you want to start sequentially reading data records.
--stream-arnThe ARN of the stream.
--stream-idNot Implemented.