list_rule_groups
¶
list_rule_groups(
*,
config_overrides: Optional[NetworkFirewallClientConfig] = 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/network_firewall.py
4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 | |