{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-put-resource-policy-response-schema.json",
  "title": "PutResourcePolicyResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-resource-policy-api-openapi.yml#/components/schemas/PutResourcePolicyResponse",
  "type": "object",
  "properties": {
    "resourcePolicy": {
      "$ref": "#/$defs/ResourcePolicy"
    },
    "revisionId": {
      "type": "string",
      "description": "The revision ID of the created or updated resource policy. Only returned for resource-scoped policies."
    }
  },
  "$defs": {
    "ResourcePolicy": {
      "type": "object",
      "properties": {
        "policyName": {
          "type": "string",
          "description": "The name of the resource policy."
        },
        "policyDocument": {
          "type": "string",
          "description": "The details of the policy."
        },
        "lastUpdatedTime": {
          "type": "integer",
          "description": "Timestamp showing when this policy was last updated, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC."
        },
        "policyScope": {
          "type": "string",
          "enum": [
            "ACCOUNT",
            "RESOURCE"
          ],
          "description": "Specifies scope of the resource policy. Valid values are ACCOUNT or RESOURCE."
        },
        "resourceArn": {
          "type": "string",
          "description": "The ARN of the CloudWatch Logs resource to which the resource policy is attached. Only populated for resource-scoped policies."
        },
        "revisionId": {
          "type": "string",
          "description": "The revision ID of the resource policy. Only populated for resource-scoped policies."
        }
      }
    }
  }
}