list_rule_groups
async
¶
list_rule_groups(
*,
config_overrides: Optional[AsyncNetworkFirewallClientConfig] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[PaginationMaxResults] = None,
scope: Optional[ResourceManagedStatus] = None,
managed_type: Optional[ResourceManagedType] = None,
subscription_status: Optional[SubscriptionStatus] = None,
type: Optional[RuleGroupType] = None,
) -> ListRuleGroupsResponse
Retrieves the metadata for the rule groups that you have defined. Depending on your setting for max results and the number of rule groups, a single call might not return the full list.
Parameters:
-
next_token(Optional[PaginationToken], default:None) –When you request a list of objects with a
MaxResultssetting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Network Firewall returns aNextTokenvalue in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request. -
max_results(Optional[PaginationMaxResults], default:None) –The maximum number of objects that you want Network Firewall to return for this request. If more objects are available, in the response, Network Firewall provides a
NextTokenvalue that you can use in a subsequent call to get the next batch of objects. -
scope(Optional[ResourceManagedStatus], default:None) –The scope of the request. The default setting of
ACCOUNTor a setting ofNULLreturns all of the rule groups in your account. A setting ofMANAGEDreturns all available managed rule groups. -
managed_type(Optional[ResourceManagedType], default:None) –Indicates the general category of the Amazon Web Services managed rule group.
-
subscription_status(Optional[SubscriptionStatus], default:None) –Filters the results to show only rule groups with the specified subscription status. Use this to find subscribed or unsubscribed rule groups.
-
type(Optional[RuleGroupType], default:None) –Indicates whether the rule group is stateless or stateful. If the rule group is stateless, it contains stateless rules. If it is stateful, it contains stateful rules.
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.
-
-
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
4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 | |