{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-list-approval-policies-response-schema.json",
  "title": "ListApprovalPoliciesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-quicksight-governance-api-openapi.yml#/components/schemas/ListApprovalPoliciesResponse",
  "type": "object",
  "properties": {
    "Policies": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ApprovalPolicy"
      },
      "description": "The list of approval policies."
    },
    "NextToken": {
      "type": "string",
      "description": "The token for the next set of results, or null if there are no more results."
    }
  },
  "required": [
    "Policies"
  ],
  "$defs": {
    "ApplicableTo": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "GROUP"
          ],
          "description": "The type of scoping that determines which principals the approval policy applies to. Valid values are defined as follows: GROUP: The policy applies only to principals in the groups specified by GroupArns. When you use GROUP, you must also provide a value for GroupArns."
        },
        "GroupArns": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of group ARNs that the policy applies to. Required when type is GROUP."
        }
      },
      "required": [
        "Type"
      ]
    },
    "ApprovalPolicy": {
      "type": "object",
      "properties": {
        "PolicyId": {
          "type": "string",
          "description": "The unique identifier of the approval policy."
        },
        "PolicyArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the approval policy."
        },
        "Name": {
          "type": "string",
          "description": "The name of the approval policy."
        },
        "Description": {
          "type": "string",
          "description": "A description of the approval policy."
        },
        "Actions": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "SHARE"
            ]
          },
          "description": "The list of governed actions that trigger the approval workflow."
        },
        "AssetTypes": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "AGENT",
              "SPACE",
              "KNOWLEDGE_BASE"
            ]
          },
          "description": "The list of asset types that the approval policy applies to."
        },
        "ApplicableTo": {
          "$ref": "#/$defs/ApplicableTo"
        },
        "ApprovalGroups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of group ARNs whose members can approve requests."
        },
        "CreatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the approval policy was created."
        },
        "UpdatedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time that the approval policy was last updated."
        }
      },
      "required": [
        "PolicyId",
        "PolicyArn",
        "Name",
        "Actions",
        "AssetTypes",
        "ApplicableTo",
        "ApprovalGroups",
        "CreatedAt",
        "UpdatedAt"
      ]
    }
  }
}