get_resource_policy

Glue.Client.get_resource_policy(**kwargs)

Retrieves a specified resource policy.

See also: AWS API Documentation

Request Syntax

response = client.get_resource_policy(
    ResourceArn='string'
)
Parameters
ResourceArn (string) -- The ARN of the Glue resource for which to retrieve the resource policy. If not supplied, the Data Catalog resource policy is returned. Use GetResourcePolicies to view all existing resource policies. For more information see Specifying Glue Resource ARNs.
Return type
dict
Returns
Response Syntax
{
    'PolicyInJson': 'string',
    'PolicyHash': 'string',
    'CreateTime': datetime(2015, 1, 1),
    'UpdateTime': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --
    • PolicyInJson (string) --

      Contains the requested policy document, in JSON format.

    • PolicyHash (string) --

      Contains the hash value associated with this policy.

    • CreateTime (datetime) --

      The date and time at which the policy was created.

    • UpdateTime (datetime) --

      The date and time at which the policy was last updated.

Exceptions

  • Glue.Client.exceptions.EntityNotFoundException
  • Glue.Client.exceptions.InternalServiceException
  • Glue.Client.exceptions.OperationTimeoutException
  • Glue.Client.exceptions.InvalidInputException