get_resource_policy

NetworkManager.Client.get_resource_policy(**kwargs)

Returns information about a resource policy.

See also: AWS API Documentation

Request Syntax

response = client.get_resource_policy(
    ResourceArn='string'
)
Parameters
ResourceArn (string) --

[REQUIRED]

The ARN of the resource.

Return type
dict
Returns
Response Syntax
{
    'PolicyDocument': 'string'
}

Response Structure

  • (dict) --
    • PolicyDocument (string) --

      The resource policy document.

Exceptions

  • NetworkManager.Client.exceptions.ValidationException
  • NetworkManager.Client.exceptions.AccessDeniedException
  • NetworkManager.Client.exceptions.ThrottlingException
  • NetworkManager.Client.exceptions.InternalServerException