Getting stream information
Written by
Updated at May 24, 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, cloud ID, Yandex Managed Service for YDB database ID, and stream name.For example, your stream ID will appear as
/ru-central1/b1gvlrnlei4l********/etn780rpm7e5********/default
if:ru-central1
: Regionb1gvlrnlei4l********
: Cloud IDetn780rpm7e5********
: YDB database IDdefault
: Stream name
Command example:
aws kinesis describe-stream \
--endpoint https://yds.serverless.yandexcloud.net \
--stream-name /ru-central1/b1gvlrnlei4l********/etn780rpm7e5********/default
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": ""
}
}