{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-describe-account-policies-response-schema.json",
  "title": "DescribeAccountPoliciesResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-account-policy-api-openapi.yml#/components/schemas/DescribeAccountPoliciesResponse",
  "type": "object",
  "properties": {
    "accountPolicies": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AccountPolicy"
      },
      "description": "An array of structures that contain information about the CloudWatch Logs account policies that match the specified filters."
    },
    "nextToken": {
      "type": "string",
      "description": "The token to use when requesting the next set of items. The token expires after 24 hours."
    }
  },
  "$defs": {
    "AccountPolicy": {
      "type": "object",
      "properties": {
        "policyName": {
          "type": "string",
          "description": "The name of the account policy."
        },
        "policyDocument": {
          "type": "string",
          "description": "The policy document for this account policy. The JSON specified in policyDocument can be up to 30,720 characters."
        },
        "lastUpdatedTime": {
          "type": "integer",
          "description": "The date and time that this policy was most recently updated."
        },
        "policyType": {
          "type": "string",
          "enum": [
            "DATA_PROTECTION_POLICY",
            "SUBSCRIPTION_FILTER_POLICY",
            "FIELD_INDEX_POLICY",
            "TRANSFORMER_POLICY",
            "METRIC_EXTRACTION_POLICY",
            "RETENTION_POLICY"
          ],
          "description": "The type of policy for this account policy."
        },
        "scope": {
          "type": "string",
          "enum": [
            "ALL"
          ],
          "description": "The scope of the account policy."
        },
        "selectionCriteria": {
          "type": "string",
          "description": "The log group selection criteria that is used for this policy."
        },
        "accountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID that the policy applies to."
        }
      }
    }
  }
}