Context / Client / get_resource_policy

get_resource_policy

Context.Client.get_resource_policy(**kwargs)

Returns the resource-based policy attached to an agent context, with its revision ID.

See also: AWS API Documentation

Request Syntax

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

resourceArn (string) –

[REQUIRED]

ARN of the agent context.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • resourceArn (string) –

      ARN of the agent context.

    • policy (string) –

      The resource-based policy document.

    • revisionId (string) –

      Current revision. Pass it to PutResourcePolicy or DeleteResourcePolicy as expectedRevisionId.

Exceptions