{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudformation/json-schema/amazon-cloudformation-list-stack-instances-output-schema.json",
  "title": "ListStackInstancesOutput",
  "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/ListStackInstancesOutput",
  "type": "object",
  "properties": {
    "Summaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StackInstanceSummary"
      },
      "description": "A list of StackInstanceSummary structures that contain information about the specified stack instances."
    },
    "NextToken": {
      "type": "string",
      "description": "If the request doesn't return all the remaining results, NextToken is set to a token. To retrieve the next set of results, call ListStackInstances again and assign that token to the request object's NextToken parameter. If the request returns all results, NextToken is set to null."
    }
  },
  "$defs": {
    "StackInstanceComprehensiveStatus": {
      "type": "object",
      "properties": {
        "DetailedStatus": {
          "type": "string",
          "enum": [
            "PENDING",
            "RUNNING",
            "SUCCEEDED",
            "FAILED",
            "CANCELLED",
            "INOPERABLE",
            "SKIPPED_SUSPENDED_ACCOUNT",
            "FAILED_IMPORT"
          ],
          "description": "CANCELLED: The operation in the specified account and Region has been canceled. This is either because a user has stopped the StackSet operation, or because the failure tolerance of the StackSet operation has been exceeded. FAILED: The operation in the specified account and Region failed. If the StackSet operation fails in enough accounts within a Region, the failure tolerance for the StackSet operation as a whole might be exceeded. FAILED_IMPORT: The import of the stack instance in the specified account and Region failed and left the stack in an unstable state. Once the issues causing the fai"
        }
      }
    },
    "StackInstanceSummary": {
      "type": "object",
      "properties": {
        "StackSetId": {
          "type": "string",
          "description": "The name or unique ID of the StackSet that the stack instance is associated with."
        },
        "Region": {
          "type": "string",
          "description": "The name of the Amazon Web Services Region that the stack instance is associated with."
        },
        "Account": {
          "type": "string",
          "description": "[Self-managed permissions] The name of the Amazon Web Services account that the stack instance is associated with."
        },
        "StackId": {
          "type": "string",
          "description": "The ID of the stack instance."
        },
        "Status": {
          "type": "string",
          "enum": [
            "CURRENT",
            "OUTDATED",
            "INOPERABLE"
          ],
          "description": "The status of the stack instance, in terms of its synchronization with its associated stack set. INOPERABLE: A DeleteStackInstances operation has failed and left the stack in an unstable state. Stacks in this state are excluded from further UpdateStackSet operations. You might need to perform a DeleteStackInstances operation, with RetainStacks set to true, to delete the stack instance, and then delete the stack manually. INOPERABLE can be returned here when the cause is a failed import. If it's due to a failed import, the operation can be retried once the failures are fixed. To see if this is "
        },
        "StatusReason": {
          "type": "string",
          "description": "The explanation for the specific status code assigned to this stack instance."
        },
        "StackInstanceStatus": {
          "$ref": "#/$defs/StackInstanceComprehensiveStatus"
        },
        "OrganizationalUnitId": {
          "type": "string",
          "description": "[Service-managed permissions] The organization root ID or organizational unit (OU) IDs that you specified for DeploymentTargets."
        },
        "DriftStatus": {
          "type": "string",
          "enum": [
            "DRIFTED",
            "IN_SYNC",
            "UNKNOWN",
            "NOT_CHECKED"
          ],
          "description": "Status of the stack instance's actual configuration compared to the expected template and parameter configuration of the StackSet it belongs to. DRIFTED: The stack differs from the expected template and parameter configuration of the StackSet it belongs to. A stack instance is considered to have drifted if one or more of the resources in the associated stack have drifted. NOT_CHECKED: CloudFormation hasn't checked if the stack instance differs from its expected StackSet configuration. IN_SYNC: The stack instance's actual configuration matches its expected StackSet configuration. UNKNOWN: This "
        },
        "LastDriftCheckTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "Most recent time when CloudFormation performed a drift detection operation on the stack instance. This value will be NULL for any stack instance that drift detection hasn't yet been performed on."
        },
        "LastOperationId": {
          "type": "string",
          "description": "The last unique ID of a StackSet operation performed on a stack instance."
        }
      }
    }
  }
}