pub enum CreateRuleError {
WAFBadRequest(String),
WAFDisallowedName(String),
WAFInternalError(String),
WAFInvalidParameter(String),
WAFLimitsExceeded(String),
WAFStaleData(String),
WAFTagOperation(String),
WAFTagOperationInternalError(String),
}Expand description
Errors returned by CreateRule
Variants§
WAFBadRequest(String)
WAFDisallowedName(String)
The name specified is invalid.
WAFInternalError(String)
The operation failed because of a system problem, even though the request was valid. Retry your request.
WAFInvalidParameter(String)
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.
WAFLimitsExceeded(String)
The operation exceeds a resource limit, for example, the maximum number of WebACL objects that you can create for an AWS account. For more information, see Limits in the AWS WAF Developer Guide.
WAFStaleData(String)
The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.