{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-keyspaces/json-schema/amazon-keyspaces-get-stream-output-schema.json",
  "title": "GetStreamOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-keyspaces-operations-api-openapi.yml#/components/schemas/GetStreamOutput",
  "type": "object",
  "properties": {
    "streamArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) that uniquely identifies the stream within Amazon Keyspaces. This ARN can be used in other API operations to reference this specific stream."
    },
    "streamLabel": {
      "type": "string",
      "description": "A timestamp that serves as a unique identifier for this stream, used for debugging and monitoring purposes. The stream label represents the point in time when the stream was created."
    },
    "streamStatus": {
      "type": "string",
      "enum": [
        "ENABLING",
        "ENABLED",
        "DISABLING",
        "DISABLED"
      ],
      "description": "The current status of the stream. Values can be ENABLING, ENABLED, DISABLING, or DISABLED. Operations on the stream depend on its current status."
    },
    "streamViewType": {
      "type": "string",
      "enum": [
        "NEW_IMAGE",
        "OLD_IMAGE",
        "NEW_AND_OLD_IMAGES",
        "KEYS_ONLY"
      ],
      "description": "The format of the data records in this stream. Currently, this can be one of the following options: NEW_AND_OLD_IMAGES - both versions of the row, before and after the change. This is the default. NEW_IMAGE - the version of the row after the change. OLD_IMAGE - the version of the row before the change. KEYS_ONLY - the partition and clustering keys of the row that was changed."
    },
    "creationRequestDateTime": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the request to create this stream was issued. The value is represented in ISO 8601 format."
    },
    "keyspaceName": {
      "type": "string",
      "description": "The name of the keyspace containing the table associated with this stream. The keyspace name is part of the table's hierarchical identifier in Amazon Keyspaces."
    },
    "tableName": {
      "type": "string",
      "description": "The name of the table associated with this stream. The stream captures changes to rows in this Amazon Keyspaces table."
    },
    "shards": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Shard"
      },
      "description": "An array of shard objects associated with this stream. Each shard contains a subset of the stream's data records and has its own unique identifier. The collection of shards represents the complete stream data."
    },
    "nextToken": {
      "type": "string",
      "description": "A pagination token that can be used in a subsequent GetStream request. This token is returned if the response contains more shards than can be returned in a single response."
    }
  },
  "required": [
    "streamArn",
    "streamLabel",
    "streamStatus",
    "streamViewType",
    "creationRequestDateTime",
    "keyspaceName",
    "tableName"
  ],
  "$defs": {
    "SequenceNumberRange": {
      "type": "object",
      "properties": {
        "startingSequenceNumber": {
          "type": "string",
          "description": "The starting sequence number of the range."
        },
        "endingSequenceNumber": {
          "type": "string",
          "description": "The ending sequence number of the range, which may be null for open-ended ranges."
        }
      }
    },
    "Shard": {
      "type": "object",
      "properties": {
        "shardId": {
          "type": "string",
          "description": "A unique identifier for this shard within the stream."
        },
        "sequenceNumberRange": {
          "$ref": "#/$defs/SequenceNumberRange"
        },
        "parentShardIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The identifiers of parent shards that this shard evolved from, if this shard was created through resharding."
        }
      }
    }
  }
}