get_resource_policies
(**kwargs)¶Retrieves the resource policies set on individual resources by Resource Access Manager during cross-account permission grants. Also retrieves the Data Catalog resource policy.
If you enabled metadata encryption in Data Catalog settings, and you do not have permission on the KMS key, the operation can't return the Data Catalog resource policy.
See also: AWS API Documentation
Request Syntax
response = client.get_resource_policies(
NextToken='string',
MaxResults=123
)
dict
Response Syntax
{
'GetResourcePoliciesResponseList': [
{
'PolicyInJson': 'string',
'PolicyHash': 'string',
'CreateTime': datetime(2015, 1, 1),
'UpdateTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
GetResourcePoliciesResponseList (list) --
A list of the individual resource policies and the account-level resource policy.
(dict) --
A structure for returning a resource policy.
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.
NextToken (string) --
A continuation token, if the returned list does not contain the last resource policy available.
Exceptions
Glue.Client.exceptions.InternalServiceException
Glue.Client.exceptions.OperationTimeoutException
Glue.Client.exceptions.InvalidInputException
Glue.Client.exceptions.GlueEncryptionException