delete_firewall_policy_v2
async
¶
delete_firewall_policy_v2(
*,
config_overrides: Optional[AsyncNetworkFirewallClientConfig] = None,
firewall_policy_v2_arn: Optional[ResourceArn] = None,
firewall_policy_v2_name: Optional[ResourceName] = None,
) -> DeleteFirewallPolicyV2Response
Deletes the specified FirewallPolicyV2.
Parameters:
-
firewall_policy_v2_arn(Optional[ResourceArn], default:None) –The Amazon Resource Name (ARN) of the Next Generation policy.
You must specify the ARN or the name, and you can specify both.
-
firewall_policy_v2_name(Optional[ResourceName], default:None) –The descriptive name of the Next Generation policy. You can't change the name of a firewall policy after you create it.
You must specify the ARN or the name, and you can specify both.
Raises:
-
InternalServerError–Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.
-
InvalidOperationException–The operation failed because it's not valid. For example, you might have tried to delete a rule group or firewall policy that's in use.
-
InvalidRequestException–The operation failed because of a problem with your request. Examples include:
-
You specified an unsupported parameter name or value.
-
You tried to update a property with a value that isn't among the available types.
-
Your request references an ARN that is malformed, or corresponds to a resource that isn't valid in the context of the request.
-
-
ResourceNotFoundException–Unable to locate a resource using the parameters that you provided.
-
ThrottlingException–Unable to process the request due to throttling limitations.
-
UnsupportedOperationException–The operation you requested isn't supported by Network Firewall.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_network_firewall/_services/async_network_firewall.py
1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 | |