{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-keyspaces/json-schema/amazon-keyspaces-get-stream-input-schema.json",
  "title": "GetStreamInput",
  "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/GetStreamInput",
  "type": "object",
  "properties": {
    "streamArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the stream for which detailed information is requested. This uniquely identifies the specific stream you want to get information about."
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of shard objects to return in a single GetStream request. The default value is 100. The minimum value is 1 and the maximum value is 100."
    },
    "shardFilter": {
      "$ref": "#/$defs/ShardFilter"
    },
    "nextToken": {
      "type": "string",
      "description": "An optional pagination token provided by a previous GetStream operation. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxResults."
    }
  },
  "required": [
    "streamArn"
  ],
  "$defs": {
    "ShardFilter": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "CHILD_SHARDS"
          ],
          "description": "The type of shard filter to use, which determines how the shardId parameter is interpreted."
        },
        "shardId": {
          "type": "string",
          "description": "The identifier of a specific shard used to filter results based on the specified filter type."
        }
      }
    }
  }
}