describe_firewall_policy_v2
¶
describe_firewall_policy_v2(
*,
config_overrides: Optional[NetworkFirewallClientConfig] = None,
firewall_policy_v2_arn: Optional[ResourceArn] = None,
firewall_policy_v2_name: Optional[ResourceName] = None,
rule_output_format: Optional[RuleOutputFormat] = None,
) -> DescribeFirewallPolicyV2Response
Returns the data objects for the specified Next Generation policy.
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.
-
rule_output_format(Optional[RuleOutputFormat], default:None) –The format in which to return the rules of any firewall engine rule groups that are embedded in the policy. Specify
FIREWALL_RULESfor structuredFirewallRuleobjects orRULES_STRINGfor a Suricata-compatible firewall-mode rule string. If you don't specify a format, Network Firewall returns each embedded rule group in the format you provided it in. Referenced rule groups aren't affected.
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/network_firewall.py
2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 | |