list_activated_rules_in_rule_group
async
¶
list_activated_rules_in_rule_group(
*,
config_overrides: Optional[AsyncWAFRegionalClientConfig] = None,
rule_group_id: Optional[ResourceId] = None,
next_marker: Optional[NextMarker] = None,
limit: Optional[PaginationLimit] = None,
) -> ListActivatedRulesInRuleGroupResponse
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide. For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Returns an array of ActivatedRule objects.
Parameters:
-
rule_group_id(Optional[ResourceId], default:None) –The
RuleGroupIdof the RuleGroup for which you want to get a list of ActivatedRule objects. -
next_marker(Optional[NextMarker], default:None) –If you specify a value for
Limitand you have moreActivatedRulesthan the value ofLimit, AWS WAF returns aNextMarkervalue in the response that allows you to list another group ofActivatedRules. For the second and subsequentListActivatedRulesInRuleGrouprequests, specify the value ofNextMarkerfrom the previous response to get information about another batch ofActivatedRules. -
limit(Optional[PaginationLimit], default:None) –Specifies the number of
ActivatedRulesthat you want AWS WAF to return for this request. If you have moreActivatedRulesthan the number that you specify forLimit, the response includes aNextMarkervalue that you can use to get another batch ofActivatedRules.
Raises:
-
WAFInternalErrorException–The operation failed because of a system problem, even though the request was valid. Retry your request.
-
WAFInvalidParameterException–The operation failed because AWS WAF didn't recognize a parameter in the request. For example:
-
You specified an invalid parameter name.
-
You specified an invalid value.
-
You tried to update an object (
ByteMatchSet,IPSet,Rule, orWebACL) using an action other thanINSERTorDELETE. -
You tried to create a
WebACLwith aDefaultActionTypeother thanALLOW,BLOCK, orCOUNT. -
You tried to create a
RateBasedRulewith aRateKeyvalue other thanIP. -
You tried to update a
WebACLwith aWafActionTypeother thanALLOW,BLOCK, orCOUNT. -
You tried to update a
ByteMatchSetwith aFieldToMatchTypeother than HEADER, METHOD, QUERY_STRING, URI, or BODY. -
You tried to update a
ByteMatchSetwith aFieldofHEADERbut no value forData. -
Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL cannot be associated.
-
-
WAFNonexistentItemException–The operation failed because the referenced object doesn't exist.
-
UnknownServiceError–The service returned an error code this client does not model.