get_resource_policy
(**kwargs)¶Returns a resource policy.
See also: AWS API Documentation
Request Syntax
response = client.get_resource_policy(
resourceArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource to return.
{
'resourcePolicy': {
'policy': 'string',
'resourceArn': 'string'
}
}
Response Structure
The returned resource policy.
The resource policy.
The Amazon Resource Name (ARN) of the policy.
Exceptions
RedshiftServerless.Client.exceptions.InternalServerException
RedshiftServerless.Client.exceptions.ResourceNotFoundException
RedshiftServerless.Client.exceptions.ValidationException