v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-142021,119944.8 KB

Sets the Data Catalog resource policy for access control.

post/#X-Amz-Target=AWSGlue.PutResourcePolicy

Headers

X-Amz-Target'AWSGlue.PutResourcePolicy' required

Request body

PolicyInJsonstring required

Contains the policy document to set, in JSON format.

ResourceArnstring

Do not use. For internal use only.

PolicyHashConditionstring

The hash value returned when the previous policy was set using <code>PutResourcePolicy</code>. Its purpose is to prevent concurrent modifications of a policy. Do not use this parameter if no previous policy has been set.

PolicyExistsCondition'MUST_EXIST' | 'NOT_EXIST' | 'NONE'

A value of <code>MUST_EXIST</code> is used to update a policy. A value of <code>NOT_EXIST</code> is used to create a new policy. If a value of <code>NONE</code> or a null value is used, the call does not depend on the existence of a policy.

EnableHybrid'TRUE' | 'FALSE'
<p>If <code>'TRUE'</code>, indicates that you are using both methods to grant cross-account access to Data Catalog resources:</p> <ul> <li> <p>By directly updating the resource policy with <code>PutResourePolicy</code> </p> </li> <li> <p>By using the <b>Grant permissions</b> command on the Amazon Web Services Management Console.</p> </li> </ul> <p>Must be set to <code>'TRUE'</code> if you have already used the Management Console to grant cross-account access, otherwise the call fails. Default is 'FALSE'.</p>

Response

Success

PolicyHashstring

A hash of the policy that has just been set. This must be included in a subsequent call that overwrites or updates this policy.