{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-verified-permissions/json-schema/amazon-verified-permissions-list-policies-input-schema.json",
  "title": "ListPoliciesInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-verified-permissions-listpolicies-api-openapi.yml#/components/schemas/ListPoliciesInput",
  "type": "object",
  "properties": {
    "policyStoreId": {
      "type": "string",
      "description": "Specifies the ID of the policy store you want to list policies from. To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example: ID: PSEXAMPLEabcdefg111111 Alias name: policy-store-alias/example-policy-store To view aliases, use ListPolicyStoreAliases."
    },
    "nextToken": {
      "type": "string",
      "description": "Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results."
    },
    "maxResults": {
      "type": "integer",
      "description": "Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next set of results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results. If you do not specify this parameter, the operation defaults "
    },
    "filter": {
      "$ref": "#/$defs/PolicyFilter"
    }
  },
  "required": [
    "policyStoreId"
  ],
  "$defs": {
    "EntityIdentifier": {
      "type": "object",
      "properties": {
        "entityType": {
          "type": "string",
          "description": "The type of an entity. Example: \"entityType\":\"typeName\""
        },
        "entityId": {
          "type": "string",
          "description": "The identifier of an entity. \"entityId\":\"identifier\""
        }
      },
      "required": [
        "entityType",
        "entityId"
      ]
    },
    "EntityReference": {
      "type": "object",
      "properties": {
        "unspecified": {
          "type": "boolean",
          "description": "Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource."
        },
        "identifier": {
          "$ref": "#/$defs/EntityIdentifier"
        }
      },
      "description": "Exactly one member is set."
    },
    "PolicyFilter": {
      "type": "object",
      "properties": {
        "principal": {
          "$ref": "#/$defs/EntityReference"
        },
        "resource": {
          "$ref": "#/$defs/EntityReference"
        },
        "policyType": {
          "type": "string",
          "enum": [
            "STATIC",
            "TEMPLATE_LINKED"
          ],
          "description": "Filters the output to only policies of the specified type."
        },
        "policyTemplateId": {
          "type": "string",
          "description": "Filters the output to only template-linked policies that were instantiated from the specified policy template."
        }
      }
    }
  }
}