{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudformation/json-schema/amazon-cloudformation-list-stack-sets-output-schema.json",
  "title": "ListStackSetsOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudformation-stack-set-api-openapi.yml#/components/schemas/ListStackSetsOutput",
  "type": "object",
  "properties": {
    "Summaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StackSetSummary"
      },
      "description": "A list of StackSetSummary structures that contain information about the user's StackSets."
    },
    "NextToken": {
      "type": "string",
      "description": "If the request doesn't return all of 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": {
    "AutoDeployment": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "If set to true, StackSets automatically deploys additional stack instances to Organizations accounts that are added to a target organization or organizational unit (OU) in the specified Regions. If an account is removed from a target organization or OU, StackSets deletes stack instances from the account in the specified Regions."
        },
        "RetainStacksOnAccountRemoval": {
          "type": "boolean",
          "description": "If set to true, stack resources are retained when an account is removed from a target organization or OU. If set to false, stack resources are deleted. Specify only if Enabled is set to True."
        },
        "DependsOn": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of StackSet ARNs that this StackSet depends on for auto-deployment operations. When auto-deployment is triggered, operations will be sequenced to ensure all dependencies complete successfully before this StackSet's operation begins."
        }
      }
    },
    "ManagedExecution": {
      "type": "object",
      "properties": {
        "Active": {
          "type": "boolean",
          "description": "When true, CloudFormation performs non-conflicting operations concurrently and queues conflicting operations. After conflicting operations finish, CloudFormation starts queued operations in request order. If there are already running or queued operations, CloudFormation queues all incoming operations even if they are non-conflicting. You can't modify your StackSet's execution configuration while there are running or queued operations for that StackSet. When false (default), StackSets performs one operation at a time in request order."
        }
      }
    },
    "StackSetSummary": {
      "type": "object",
      "properties": {
        "StackSetName": {
          "type": "string",
          "description": "The name of the StackSet."
        },
        "StackSetId": {
          "type": "string",
          "description": "The ID of the StackSet."
        },
        "Description": {
          "type": "string",
          "description": "A description of the StackSet that you specify when the StackSet is created or updated."
        },
        "Status": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "DELETED"
          ],
          "description": "The status of the StackSet."
        },
        "AutoDeployment": {
          "$ref": "#/$defs/AutoDeployment"
        },
        "PermissionModel": {
          "type": "string",
          "enum": [
            "SERVICE_MANAGED",
            "SELF_MANAGED"
          ],
          "description": "Describes how the IAM roles required for StackSet operations are created. With self-managed permissions, you must create the administrator and execution roles required to deploy to target accounts. For more information, see Grant self-managed permissions. With service-managed permissions, StackSets automatically creates the IAM roles required to deploy to accounts managed by Organizations. For more information, see Activate trusted access for StackSets with Organizations."
        },
        "DriftStatus": {
          "type": "string",
          "enum": [
            "DRIFTED",
            "IN_SYNC",
            "UNKNOWN",
            "NOT_CHECKED"
          ],
          "description": "Status of the StackSet's actual configuration compared to its expected template and parameter configuration. DRIFTED: One or more of the stack instances belonging to the StackSet differs from the expected template and parameter configuration. 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 the StackSet for drift. IN_SYNC: All the stack instances belonging to the StackSet match the expected template and parameter configuration. UNKNOWN: This value is reserved for future use."
        },
        "LastDriftCheckTimestamp": {
          "type": "string",
          "format": "date-time",
          "description": "Most recent time when CloudFormation performed a drift detection operation on the StackSet. This value will be NULL for any StackSet that drift detection hasn't yet been performed on."
        },
        "ManagedExecution": {
          "$ref": "#/$defs/ManagedExecution"
        }
      }
    }
  }
}