{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kinesis/json-schema/kinesis-describe-stream-output-schema.json",
  "title": "DescribeStreamOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kinesis-describe-stream-api-openapi.yml#/components/schemas/DescribeStreamOutput",
  "type": "object",
  "properties": {
    "StreamDescription": {
      "$ref": "#/$defs/StreamDescription"
    }
  },
  "required": [
    "StreamDescription"
  ],
  "$defs": {
    "EnhancedMetrics": {
      "type": "object",
      "properties": {
        "ShardLevelMetrics": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "IncomingBytes",
              "IncomingRecords",
              "OutgoingBytes",
              "OutgoingRecords",
              "WriteProvisionedThroughputExceeded",
              "ReadProvisionedThroughputExceeded",
              "IteratorAgeMilliseconds",
              "ALL"
            ]
          },
          "description": "List of shard-level metrics. The following are the valid shard-level metrics. The value \"ALL\" enhances every metric. IncomingBytes IncomingRecords OutgoingBytes OutgoingRecords WriteProvisionedThroughputExceeded ReadProvisionedThroughputExceeded IteratorAgeMilliseconds ALL For more information, see Monitoring the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the Amazon Kinesis Data Streams Developer Guide."
        }
      }
    },
    "HashKeyRange": {
      "type": "object",
      "properties": {
        "StartingHashKey": {
          "type": "string",
          "description": "The starting hash key of the hash key range."
        },
        "EndingHashKey": {
          "type": "string",
          "description": "The ending hash key of the hash key range."
        }
      },
      "required": [
        "StartingHashKey",
        "EndingHashKey"
      ]
    },
    "SequenceNumberRange": {
      "type": "object",
      "properties": {
        "StartingSequenceNumber": {
          "type": "string",
          "description": "The starting sequence number for the range."
        },
        "EndingSequenceNumber": {
          "type": "string",
          "description": "The ending sequence number for the range. Shards that are in the OPEN state have an ending sequence number of null."
        }
      },
      "required": [
        "StartingSequenceNumber"
      ]
    },
    "Shard": {
      "type": "object",
      "properties": {
        "ShardId": {
          "type": "string",
          "description": "The unique identifier of the shard within the stream."
        },
        "ParentShardId": {
          "type": "string",
          "description": "The shard ID of the shard's parent."
        },
        "AdjacentParentShardId": {
          "type": "string",
          "description": "The shard ID of the shard adjacent to the shard's parent."
        },
        "HashKeyRange": {
          "$ref": "#/$defs/HashKeyRange"
        },
        "SequenceNumberRange": {
          "$ref": "#/$defs/SequenceNumberRange"
        }
      },
      "required": [
        "ShardId",
        "HashKeyRange",
        "SequenceNumberRange"
      ]
    },
    "StreamDescription": {
      "type": "object",
      "properties": {
        "StreamName": {
          "type": "string",
          "description": "The name of the stream being described."
        },
        "StreamARN": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) for the stream being described."
        },
        "StreamStatus": {
          "type": "string",
          "enum": [
            "CREATING",
            "DELETING",
            "ACTIVE",
            "UPDATING"
          ],
          "description": "The current status of the stream being described. The stream status is one of the following states: CREATING - The stream is being created. Kinesis Data Streams immediately returns and sets StreamStatus to CREATING. DELETING - The stream is being deleted. The specified stream is in the DELETING state until Kinesis Data Streams completes the deletion. ACTIVE - The stream exists and is ready for read and write operations or deletion. You should perform read and write operations only on an ACTIVE stream. UPDATING - Shards in the stream are being merged or split. Read and write operations continue"
        },
        "StreamModeDetails": {
          "$ref": "#/$defs/StreamModeDetails"
        },
        "Shards": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Shard"
          },
          "description": "The shards that comprise the stream."
        },
        "HasMoreShards": {
          "type": "boolean",
          "description": "If set to true, more shards in the stream are available to describe."
        },
        "RetentionPeriodHours": {
          "type": "integer",
          "description": "The current retention period, in hours. Minimum value of 24. Maximum value of 168."
        },
        "StreamCreationTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The approximate time that the stream was created."
        },
        "EnhancedMonitoring": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EnhancedMetrics"
          },
          "description": "Represents the current enhanced monitoring settings of the stream."
        },
        "EncryptionType": {
          "type": "string",
          "enum": [
            "NONE",
            "KMS"
          ],
          "description": "The server-side encryption type used on the stream. This parameter can be one of the following values: NONE: Do not encrypt the records in the stream. KMS: Use server-side encryption on the records in the stream using a customer-managed Amazon Web Services KMS key."
        },
        "KeyId": {
          "type": "string",
          "description": "The GUID for the customer-managed Amazon Web Services KMS key to use for encryption. This value can be a globally unique identifier, a fully specified ARN to either an alias or a key, or an alias name prefixed by \"alias/\".You can also use a master key owned by Kinesis Data Streams by specifying the alias aws/kinesis. Key ARN example: arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012 Alias ARN example: arn:aws:kms:us-east-1:123456789012:alias/MyAliasName Globally unique key ID example: 12345678-1234-1234-1234-123456789012 Alias name example: alias/MyAliasName Master ke"
        }
      },
      "required": [
        "StreamName",
        "StreamARN",
        "StreamStatus",
        "Shards",
        "HasMoreShards",
        "RetentionPeriodHours",
        "StreamCreationTimestamp",
        "EnhancedMonitoring"
      ]
    },
    "StreamModeDetails": {
      "type": "object",
      "properties": {
        "StreamMode": {
          "type": "string",
          "enum": [
            "PROVISIONED",
            "ON_DEMAND"
          ],
          "description": "Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams."
        }
      },
      "required": [
        "StreamMode"
      ]
    }
  }
}