describe_resource_policy

NetworkFirewall.Client.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