Skip to content

PutResourcePolicyRequest

Source code in docs_src/capo_glue/types/put_resource_policy_request.py
class PutResourcePolicyRequest(TypedDict, closed=True):
    policy_in_json: "capo_glue.types.policy_json_string.PolicyJsonString"
    """<p>Contains the policy document to set, in JSON format.</p>"""
    resource_arn: NotRequired["capo_glue.types.glue_resource_arn.GlueResourceArn"]
    """<p>Do not use. For internal use only.</p>"""
    policy_hash_condition: NotRequired["capo_glue.types.hash_string.HashString"]
    """<p>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.</p>"""
    policy_exists_condition: NotRequired[
        "capo_glue.types.exist_condition.ExistCondition"
    ]
    """<p>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.</p>"""
    enable_hybrid: NotRequired[
        "capo_glue.types.enable_hybrid_values.EnableHybridValues"
    ]
    """<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>"""

enable_hybrid instance-attribute

enable_hybrid: NotRequired[EnableHybridValues]

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

  • By directly updating the resource policy with PutResourePolicy

  • By using the Grant permissions command on the Amazon Web Services Management Console.

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'.

policy_exists_condition instance-attribute

policy_exists_condition: NotRequired[ExistCondition]

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.

policy_hash_condition instance-attribute

policy_hash_condition: NotRequired[HashString]

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.

policy_in_json instance-attribute

policy_in_json: PolicyJsonString

Contains the policy document to set, in JSON format.

resource_arn instance-attribute

resource_arn: NotRequired[GlueResourceArn]

Do not use. For internal use only.