Getting stream information
Written by
Updated at January 30, 2024
CLI
To get a description of the created stream, run the command:
aws kinesis describe-stream \
--endpoint <endpoint> \
--stream-name <stream_ID>
-
--endpoint
: Specify thehttps://yds.serverless.yandexcloud.net
endpoint to get information about the stream that data is sent to over the AWS Kinesis Data Streams protocol. -
--stream-name
: Consists of the availability zone, folder ID, Yandex Managed Service for YDB database ID, and stream name.For example, specify the
/ru-central1/aoeu1kuk2dhtaupdb1es/cc8029jgtuabequtgtbv/aws_stream
stream ID if:aws_stream
: Stream nameru-central1
: Regionaoeu1kuk2dhtaupdb1es
: Folder IDcc8029jgtuabequtgtbv
: YDB database ID
Command example:
aws kinesis describe-stream \
--endpoint https://yds.serverless.yandexcloud.net \
--stream-name /ru-central1/aoeu1kuk2dhtaupdb1es/cc8029jgtuabequtgtbv/aws_stream
Result:
{
"StreamDescription": {
"Shards": [
{
"ShardId": "shard-000000",
"ParentShardId": "",
"AdjacentParentShardId": "",
"HashKeyRange": {
"StartingHashKey": "0",
"EndingHashKey": "113427455640312821154458202477256070484"
},
"SequenceNumberRange": {
"StartingSequenceNumber": "0",
"EndingSequenceNumber": ""
}
}],
"StreamARN": null,
"StreamName": "aws_stream",
"StreamStatus": "ACTIVE",
"RetentionPeriodHours": 24,
"EnhancedMonitoring": null,
"EncryptionType": "ENCRYPTION_UNDEFINED",
"KeyId": "",
"StreamCreationTimestamp": ""
}
}