Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

describe_resource_policy

describe_resource_policy(**kwargs)

Retrieves a resource policy that you created in a PutResourcePolicy request.

See also: AWS API Documentation

Request Syntax

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

[REQUIRED]

The Amazon Resource Name (ARN) of the rule group or firewall policy whose resource policy you want to retrieve.

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

Response Structure

  • (dict) --
    • Policy (string) --

      The IAM policy for the resource.

Exceptions

  • NetworkFirewall.Client.exceptions.InvalidRequestException
  • NetworkFirewall.Client.exceptions.InternalServerError
  • NetworkFirewall.Client.exceptions.ResourceNotFoundException
  • NetworkFirewall.Client.exceptions.ThrottlingException