Redshift / Client / put_resource_policy

put_resource_policy#

Redshift.Client.put_resource_policy(**kwargs)#

Updates the resource policy for a specified resource.

See also: AWS API Documentation

Request Syntax

response = client.put_resource_policy(
    ResourceArn='string',
    Policy='string'
)
Parameters:
  • ResourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the resource of which its resource policy is updated.

  • Policy (string) –

    [REQUIRED]

    The content of the resource policy being updated.

Return type:

dict

Returns:

Response Syntax

{
    'ResourcePolicy': {
        'ResourceArn': 'string',
        'Policy': 'string'
    }
}

Response Structure

  • (dict) –

    • ResourcePolicy (dict) –

      The content of the updated resource policy.

      • ResourceArn (string) –

        The resources that a policy is attached to.

      • Policy (string) –

        The content of a resource policy.

Exceptions

  • Redshift.Client.exceptions.ResourceNotFoundFault

  • Redshift.Client.exceptions.InvalidPolicyFault

  • Redshift.Client.exceptions.ConflictPolicyUpdateFault

  • Redshift.Client.exceptions.UnsupportedOperationFault