list_rule_groups
¶
list_rule_groups(
scope: Scope,
*,
config_overrides: Optional[WAFV2ClientConfig] = None,
next_marker: Optional[NextMarker] = None,
limit: Optional[PaginationLimit] = None,
) -> ListRuleGroupsResponse
Retrieves an array of RuleGroupSummary objects for the rule groups that you manage.
Parameters:
-
scope(Scope) –Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use
CLOUDFRONT.To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
-
CLI - Specify the Region when you use the CloudFront scope:
--scope=CLOUDFRONT --region=us-east-1. -
API and SDKs - For all calls, use the Region endpoint us-east-1.
-
-
next_marker(Optional[NextMarker], default:None) –When you request a list of objects with a
Limitsetting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns aNextMarkervalue in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request. -
limit(Optional[PaginationLimit], default:None) –The maximum number of objects that you want WAF to return for this request. If more objects are available, in the response, WAF provides a
NextMarkervalue that you can use in a subsequent call to get the next batch of objects.
Raises:
-
WAFInternalErrorException–Your request is valid, but WAF couldn’t perform the operation because of a system problem. Retry your request.
-
WAFInvalidOperationException–The operation isn't valid.
-
WAFInvalidParameterException–The operation failed because WAF didn't recognize a parameter in the request. For example:
-
You specified a parameter name or value that isn't valid.
-
Your nested statement isn't valid. You might have tried to nest a statement that can’t be nested.
-
You tried to update a
WebACLwith aDefaultActionthat isn't among the types available at DefaultAction. -
Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL can't be associated.
-
-
UnknownServiceError–The service returned an error code this client does not model.