CloudWatchRUM / Client / get_resource_policy

get_resource_policy#

CloudWatchRUM.Client.get_resource_policy(**kwargs)#

Use this operation to retrieve information about a resource-based policy that is attached to an app monitor.

See also: AWS API Documentation

Request Syntax

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

Name (string) –

[REQUIRED]

The name of the app monitor that is associated with the resource-based policy that you want to view.

Return type:

dict

Returns:

Response Syntax

{
    'PolicyDocument': 'string',
    'PolicyRevisionId': 'string'
}

Response Structure

  • (dict) –

    • PolicyDocument (string) –

      The JSON policy document that you requested.

    • PolicyRevisionId (string) –

      The revision ID information for this version of the policy document that you requested.

Exceptions