WAFV2 / Client / get_permission_policy

get_permission_policy#

WAFV2.Client.get_permission_policy(**kwargs)#

Returns the IAM policy that is attached to the specified rule group.

You must be the owner of the rule group to perform this operation.

See also: AWS API Documentation

Request Syntax

response = client.get_permission_policy(
    ResourceArn='string'
)
Parameters:

ResourceArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the rule group for which you want to get the policy.

Return type:

dict

Returns:

Response Syntax

{
    'Policy': 'string'
}

Response Structure

  • (dict) –

    • Policy (string) –

      The IAM policy that is attached to the specified rule group.

Exceptions

  • WAFV2.Client.exceptions.WAFNonexistentItemException

  • WAFV2.Client.exceptions.WAFInternalErrorException

  • WAFV2.Client.exceptions.WAFInvalidParameterException