{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-systems-manager/json-schema/amazon-systems-manager-delete-resource-policy-request-schema.json",
  "title": "DeleteResourcePolicyRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-systems-manager-resource-policy-api-openapi.yml#/components/schemas/DeleteResourcePolicyRequest",
  "type": "object",
  "properties": {
    "ResourceArn": {
      "type": "string",
      "description": "Amazon Resource Name (ARN) of the resource to which the policies are attached."
    },
    "PolicyId": {
      "type": "string",
      "description": "The policy ID."
    },
    "PolicyHash": {
      "type": "string",
      "description": "ID of the current policy version. The hash helps to prevent multiple calls from attempting to overwrite a policy."
    },
    "DeletionMode": {
      "type": "string",
      "enum": [
        "RemoveSharing",
        "RollbackMigration"
      ],
      "description": "Specifies the intended outcome of the operation. Applies only to the Document resource type. The operation ignores this parameter for other resource types. Optional. Defaults to RemoveSharing. RemoveSharing – Deletes the resource policy and removes sharing of the document. RollbackMigration – Reverts the document to Custom sharing, preserving existing consumer access, instead of removing the policy."
    }
  },
  "required": [
    "ResourceArn",
    "PolicyId",
    "PolicyHash"
  ]
}