{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam/json-schema/amazon-iam-list-policy-versions-response-schema.json",
  "title": "ListPolicyVersionsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-policy-version-api-openapi.yml#/components/schemas/ListPolicyVersionsResponse",
  "type": "object",
  "properties": {
    "Versions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PolicyVersion"
      },
      "description": "A list of policy versions. For more information about managed policy versions, see Versioning for managed policies in the IAM User Guide."
    },
    "IsTruncated": {
      "type": "boolean",
      "description": "A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results."
    },
    "Marker": {
      "type": "string",
      "description": "When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request."
    }
  },
  "$defs": {
    "PolicyVersion": {
      "type": "object",
      "properties": {
        "Document": {
          "type": "string",
          "description": "The policy document. The policy document is returned in the response to the GetPolicyVersion and GetAccountAuthorizationDetails operations. It is not returned in the response to the CreatePolicyVersion or ListPolicyVersions operations. The policy document returned in this structure is URL-encoded compliant with RFC 3986. You can use a URL decoding method to convert the policy back to plain JSON text. For example, if you use Java, you can use the decode method of the java.net.URLDecoder utility class in the Java SDK. Other languages and SDKs provide similar functionality."
        },
        "VersionId": {
          "type": "string",
          "description": "The identifier for the policy version. Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1."
        },
        "IsDefaultVersion": {
          "type": "boolean",
          "description": "Specifies whether the policy version is set as the policy's default version."
        },
        "CreateDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time, in ISO 8601 date-time format, when the policy version was created."
        }
      }
    }
  }
}