{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-delete-account-policy-request-schema.json",
  "title": "DeleteAccountPolicyRequest",
  "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/DeleteAccountPolicyRequest",
  "type": "object",
  "properties": {
    "policyName": {
      "type": "string",
      "description": "The name of the policy to delete."
    },
    "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 to delete."
    },
    "dryRun": {
      "type": "boolean",
      "description": "Specifies whether to preview the impact of deleting the policy without deleting it. If you specify true, CloudWatch Logs does not delete the policy and returns the estimated impact in dryRunResult. The default is false. Specifying dryRun is valid only when you specify RETENTION_POLICY for policyType. Only one dry run can be in progress for an account at a time."
    }
  },
  "required": [
    "policyName",
    "policyType"
  ]
}