{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudformation/json-schema/amazon-cloudformation-list-stack-instances-input-schema.json",
  "title": "ListStackInstancesInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudformation-stack-instance-api-openapi.yml#/components/schemas/ListStackInstancesInput",
  "type": "object",
  "properties": {
    "StackSetName": {
      "type": "string",
      "description": "The name or unique ID of the StackSet that you want to list stack instances for."
    },
    "NextToken": {
      "type": "string",
      "description": "The token for the next set of items to return. (You received this token from a previous call.)"
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results."
    },
    "Filters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StackInstanceFilter"
      },
      "description": "The filter to apply to stack instances"
    },
    "StackInstanceAccount": {
      "type": "string",
      "description": "The name of the Amazon Web Services account that you want to list stack instances for."
    },
    "StackInstanceRegion": {
      "type": "string",
      "description": "The name of the Region where you want to list stack instances."
    },
    "CallAs": {
      "type": "string",
      "enum": [
        "SELF",
        "DELEGATED_ADMIN"
      ],
      "description": "[Service-managed permissions] Specifies whether you are acting as an account administrator in the organization's management account or as a delegated administrator in a member account. By default, SELF is specified. Use SELF for StackSets with self-managed permissions. If you are signed in to the management account, specify SELF. If you are signed in to a delegated administrator account, specify DELEGATED_ADMIN. Your Amazon Web Services account must be registered as a delegated administrator in the management account. For more information, see Register a delegated administrator in the CloudFor"
    }
  },
  "required": [
    "StackSetName"
  ],
  "$defs": {
    "StackInstanceFilter": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "enum": [
            "DETAILED_STATUS",
            "LAST_OPERATION_ID",
            "DRIFT_STATUS"
          ],
          "description": "The type of filter to apply."
        },
        "Values": {
          "type": "string",
          "description": "The status to filter by."
        }
      }
    }
  }
}