describe_rule_group
async
¶
describe_rule_group(
*,
config_overrides: Optional[AsyncNetworkFirewallClientConfig] = None,
rule_group_name: Optional[ResourceName] = None,
rule_group_arn: Optional[ResourceArn] = None,
type: Optional[RuleGroupType] = None,
analyze_rule_group: Optional[Boolean] = None,
rule_output_format: Optional[RuleOutputFormat] = None,
) -> DescribeRuleGroupResponse
Returns the data objects for the specified rule group.
Parameters:
-
rule_group_name(Optional[ResourceName], default:None) –The descriptive name of the rule group. You can't change the name of a rule group after you create it.
You must specify the ARN or the name, and you can specify both.
-
rule_group_arn(Optional[ResourceArn], default:None) –The Amazon Resource Name (ARN) of the rule group.
You must specify the ARN or the name, and you can specify both.
-
type(Optional[RuleGroupType], default:None) –Indicates the type of the rule group. Valid values are:
-
STATELESS- Stateless rules, for use in a Classic Network Firewall policy. -
STATEFUL- Stateful rules, for use in a Classic Network Firewall policy. -
FIREWALL- Firewall engine rules, for use in a Next Generation policy. -
IPS- IPS engine rules, for use in a Next Generation policy.
This setting is required for requests that do not include the
RuleGroupARN. -
-
analyze_rule_group(Optional[Boolean], default:None) –Indicates whether you want Network Firewall to analyze the stateless rules in the rule group for rule behavior such as asymmetric routing. If set to
TRUE, Network Firewall runs the analysis. -
rule_output_format(Optional[RuleOutputFormat], default:None) –For a firewall engine rule group, the format in which to return the rules. Specify one of the following values:
-
FIREWALL_RULES- Returns the rules as structuredFirewallRuleobjects. -
RULES_STRING- Returns the rules as a Suricata-compatible firewall-mode rule string.
If you don't specify a format, Network Firewall returns the rules in the format you provided them in. This setting applies only to
FIREWALLandIPSrule groups; IPS engine rule groups support onlyRULES_STRING. -
Raises:
-
InternalServerError–Your request is valid, but Network Firewall couldn't perform the operation because of a system problem. Retry your request.
-
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.
-
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
2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 | |