{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-glue/refs/heads/main/json-schema/glue-put-resource-policy-request-schema.json", "title": "PutResourcePolicyRequest", "description": "PutResourcePolicyRequest schema from Amazon Glue API", "type": "object", "properties": { "PolicyInJson": { "allOf": [ { "$ref": "#/components/schemas/PolicyJsonString" }, { "description": "Contains the policy document to set, in JSON format." } ] }, "ResourceArn": { "allOf": [ { "$ref": "#/components/schemas/GlueResourceArn" }, { "description": "Do not use. For internal use only." } ] }, "PolicyHashCondition": { "allOf": [ { "$ref": "#/components/schemas/HashString" }, { "description": "The hash value returned when the previous policy was set using PutResourcePolicy. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set." } ] }, "PolicyExistsCondition": { "allOf": [ { "$ref": "#/components/schemas/ExistCondition" }, { "description": "A value of MUST_EXIST is used to update a policy. A value of NOT_EXIST is used to create a new policy. If a value of NONE or a null value is used, the call does not depend on the existence of a policy." } ] }, "EnableHybrid": { "allOf": [ { "$ref": "#/components/schemas/EnableHybridValues" }, { "description": "

If 'TRUE', indicates that you are using both methods to grant cross-account access to Data Catalog resources:

Must be set to 'TRUE' if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.

" } ] } }, "required": [ "PolicyInJson" ] }