{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kinesis/json-schema/kinesis-list-shards-input-schema.json",
  "title": "ListShardsInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kinesis-amazon-kinesis-api-openapi.yml#/components/schemas/ListShardsInput",
  "type": "object",
  "properties": {
    "StreamName": {
      "type": "string",
      "description": "The name of the data stream whose shards you want to list. You cannot specify this parameter if you specify the NextToken parameter."
    },
    "NextToken": {
      "type": "string",
      "description": "When the number of shards in the data stream is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of shards in the data stream, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListShards to list the next set of shards. Don't specify StreamName or StreamCreationTimestamp if you specify NextToken because the latter unambiguously identifies the stream. You can optionally specify a value for the MaxResults parameter when you specify Next"
    },
    "ExclusiveStartShardId": {
      "type": "string",
      "description": "Specify this parameter to indicate that you want to list the shards starting with the shard whose ID immediately follows ExclusiveStartShardId. If you don't specify this parameter, the default behavior is for ListShards to list the shards starting with the first one in the stream. You cannot specify this parameter if you specify NextToken."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of shards to return in a single call to ListShards. The maximum number of shards to return in a single call. The default value is 1000. If you specify a value greater than 1000, at most 1000 results are returned. When the number of shards to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListShards to list the next set of shards."
    },
    "StreamCreationTimestamp": {
      "type": "string",
      "format": "date-time",
      "description": "Specify this input parameter to distinguish data streams that have the same name. For example, if you create a data stream and then delete it, and you later create another data stream with the same name, you can use this input parameter to specify which of the two streams you want to list the shards for. You cannot specify this parameter if you specify the NextToken parameter."
    },
    "ShardFilter": {
      "$ref": "#/$defs/ShardFilter"
    },
    "StreamARN": {
      "type": "string",
      "description": "The ARN of the stream."
    },
    "StreamId": {
      "type": "string",
      "description": "Not Implemented. Reserved for future use."
    }
  },
  "$defs": {
    "ShardFilter": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "AFTER_SHARD_ID",
            "AT_TRIM_HORIZON",
            "FROM_TRIM_HORIZON",
            "AT_LATEST",
            "AT_TIMESTAMP",
            "FROM_TIMESTAMP"
          ],
          "description": "The shard type specified in the ShardFilter parameter. This is a required property of the ShardFilter parameter. You can specify the following valid values: AFTER_SHARD_ID - the response includes all the shards, starting with the shard whose ID immediately follows the ShardId that you provided. AT_TRIM_HORIZON - the response includes all the shards that were open at TRIM_HORIZON. FROM_TRIM_HORIZON - (default), the response includes all the shards within the retention period of the data stream (trim to tip). AT_LATEST - the response includes only the currently open shards of the data stream. AT"
        },
        "ShardId": {
          "type": "string",
          "description": "The exclusive start shardID speified in the ShardFilter parameter. This property can only be used if the AFTER_SHARD_ID shard type is specified."
        },
        "Timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamps specified in the ShardFilter parameter. A timestamp is a Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00 or 1459799926.480. This property can only be used if FROM_TIMESTAMP or AT_TIMESTAMP shard types are specified."
        }
      },
      "required": [
        "Type"
      ]
    }
  }
}