{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-redshift/json-schema/amazon-redshift-put-resource-policy-request-schema.json",
  "title": "PutResourcePolicyRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-redshift-resource-policy-api-openapi.yml#/components/schemas/PutResourcePolicyRequest",
  "type": "object",
  "properties": {
    "resourceArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the account to create or update a resource policy for."
    },
    "policy": {
      "type": "string",
      "description": "The policy to create or update. For example, the following policy grants a user authorization to restore a snapshot. \"{\\\"Version\\\": \\\"2012-10-17\\\", \\\"Statement\\\" : [{ \\\"Sid\\\": \\\"AllowUserRestoreFromSnapshot\\\", \\\"Principal\\\":{\\\"AWS\\\": [\\\"739247239426\\\"]}, \\\"Action\\\": [\\\"redshift-serverless:RestoreFromSnapshot\\\"] , \\\"Effect\\\": \\\"Allow\\\" }]}\""
    }
  },
  "required": [
    "resourceArn",
    "policy"
  ]
}