{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-quicksight/json-schema/amazon-quicksight-update-approval-policy-request-schema.json",
  "title": "UpdateApprovalPolicyRequest",
  "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/UpdateApprovalPolicyRequest",
  "type": "object",
  "properties": {
    "PolicyId": {
      "type": "string",
      "description": "The unique identifier of the approval policy to update."
    },
    "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."
    }
  },
  "required": [
    "PolicyId"
  ],
  "$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"
      ]
    }
  }
}