get_rate_based_rule_managed_keys
async
¶
get_rate_based_rule_managed_keys(
rule_id: ResourceId,
*,
config_overrides: Optional[AsyncWAFClientConfig] = None,
next_marker: Optional[NextMarker] = None,
) -> GetRateBasedRuleManagedKeysResponse
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 IP addresses currently being blocked by the RateBasedRule that is specified by the RuleId. The maximum number of managed keys that will be blocked is 10,000. If more than 10,000 addresses exceed the rate limit, the 10,000 addresses with the highest rates will be blocked.
Parameters:
-
rule_id(ResourceId) –The
RuleIdof the RateBasedRule for which you want to get a list ofManagedKeys.RuleIdis returned by CreateRateBasedRule and by ListRateBasedRules. -
next_marker(Optional[NextMarker], default:None) –A null value and not currently used. Do not include this in your request.
Raises:
-
WAFInternalErrorException–The operation failed because of a system problem, even though the request was valid. Retry your request.
-
WAFInvalidAccountException–The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.
-
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.