WAFV2 / Client / delete_firewall_manager_rule_groups

delete_firewall_manager_rule_groups#

WAFV2.Client.delete_firewall_manager_rule_groups(**kwargs)#

Deletes all rule groups that are managed by Firewall Manager from the specified WebACL.

You can only use this if ManagedByFirewallManager and RetrofittedByFirewallManager are both false in the web ACL.

See also: AWS API Documentation

Request Syntax

response = client.delete_firewall_manager_rule_groups(
    WebACLArn='string',
    WebACLLockToken='string'
)
Parameters:
  • WebACLArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the web ACL.

  • WebACLLockToken (string) –

    [REQUIRED]

    A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.

Return type:

dict

Returns:

Response Syntax

{
    'NextWebACLLockToken': 'string'
}

Response Structure

  • (dict) –

    • NextWebACLLockToken (string) –

      A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.

Exceptions

  • WAFV2.Client.exceptions.WAFInternalErrorException

  • WAFV2.Client.exceptions.WAFInvalidParameterException

  • WAFV2.Client.exceptions.WAFNonexistentItemException

  • WAFV2.Client.exceptions.WAFOptimisticLockException

  • WAFV2.Client.exceptions.WAFInvalidOperationException