{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kinesis/json-schema/kinesis-subscribe-to-shard-input-schema.json",
  "title": "SubscribeToShardInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kinesis-operations-api-openapi.yml#/components/schemas/SubscribeToShardInput",
  "type": "object",
  "properties": {
    "ConsumerARN": {
      "type": "string",
      "description": "For this parameter, use the value you obtained when you called RegisterStreamConsumer."
    },
    "StreamId": {
      "type": "string",
      "description": "Not Implemented. Reserved for future use."
    },
    "ShardId": {
      "type": "string",
      "description": "The ID of the shard you want to subscribe to. To see a list of all the shards for a given stream, use ListShards."
    },
    "StartingPosition": {
      "$ref": "#/$defs/StartingPosition"
    },
    "DryRun": {
      "type": "boolean",
      "description": "Checks if your request will succeed. DryRun is an optional parameter."
    }
  },
  "required": [
    "ConsumerARN",
    "ShardId",
    "StartingPosition"
  ],
  "$defs": {
    "StartingPosition": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "AT_SEQUENCE_NUMBER",
            "AFTER_SEQUENCE_NUMBER",
            "TRIM_HORIZON",
            "LATEST",
            "AT_TIMESTAMP"
          ],
          "description": "You can set the starting position to one of the following values: AT_SEQUENCE_NUMBER: Start streaming from the position denoted by the sequence number specified in the SequenceNumber field. AFTER_SEQUENCE_NUMBER: Start streaming right after the position denoted by the sequence number specified in the SequenceNumber field. AT_TIMESTAMP: Start streaming from the position denoted by the time stamp specified in the Timestamp field. TRIM_HORIZON: Start streaming at the last untrimmed record in the shard, which is the oldest data record in the shard. LATEST: Start streaming just after the most recen"
        },
        "SequenceNumber": {
          "type": "string",
          "description": "The sequence number of the data record in the shard from which to start streaming. To specify a sequence number, set StartingPosition to AT_SEQUENCE_NUMBER or AFTER_SEQUENCE_NUMBER."
        },
        "Timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The time stamp of the data record from which to start reading. To specify a time stamp, set StartingPosition to Type AT_TIMESTAMP. A time stamp is the Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or 1459799926.480. If a record with this exact time stamp does not exist, records will be streamed from the next (later) record. If the time stamp is older than the current trim horizon, records will be streamed from the oldest untrimmed data record (TRIM_HORIZON)."
        }
      },
      "required": [
        "Type"
      ]
    }
  }
}