RedshiftServerless / Client / get_resource_policy

get_resource_policy#

RedshiftServerless.Client.get_resource_policy(**kwargs)#

Returns a resource policy.

See also: AWS API Documentation

Request Syntax

response = client.get_resource_policy(
    resourceArn='string'
)
Parameters:

resourceArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the resource to return.

Return type:

dict

Returns:

Response Syntax

{
    'resourcePolicy': {
        'policy': 'string',
        'resourceArn': 'string'
    }
}

Response Structure

  • (dict) –

    • resourcePolicy (dict) –

      The returned resource policy.

      • policy (string) –

        The resource policy.

      • resourceArn (string) –

        The Amazon Resource Name (ARN) of the policy.

Exceptions

  • RedshiftServerless.Client.exceptions.InternalServerException

  • RedshiftServerless.Client.exceptions.ResourceNotFoundException

  • RedshiftServerless.Client.exceptions.ValidationException