{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-keyspaces/json-schema/amazon-keyspaces-get-shard-iterator-input-schema.json",
  "title": "GetShardIteratorInput",
  "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/GetShardIteratorInput",
  "type": "object",
  "properties": {
    "streamArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the stream for which to get the shard iterator. The ARN uniquely identifies the stream within Amazon Keyspaces."
    },
    "shardId": {
      "type": "string",
      "description": "The identifier of the shard within the stream. The shard ID uniquely identifies a subset of the stream's data records that you want to access."
    },
    "shardIteratorType": {
      "type": "string",
      "enum": [
        "TRIM_HORIZON",
        "LATEST",
        "AT_SEQUENCE_NUMBER",
        "AFTER_SEQUENCE_NUMBER"
      ],
      "description": "Determines how the shard iterator is positioned. Must be one of the following: TRIM_HORIZON - Start reading at the last untrimmed record in the shard, which is the oldest data record in the shard. AT_SEQUENCE_NUMBER - Start reading exactly from the specified sequence number. AFTER_SEQUENCE_NUMBER - Start reading right after the specified sequence number. LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data."
    },
    "sequenceNumber": {
      "type": "string",
      "description": "The sequence number of the data record in the shard from which to start reading. Required if ShardIteratorType is AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER. This parameter is ignored for other iterator types."
    }
  },
  "required": [
    "streamArn",
    "shardId",
    "shardIteratorType"
  ]
}