Enum aws_sdk_waf::error::CreateRuleErrorKind
source ·
[−]#[non_exhaustive]
pub enum CreateRuleErrorKind {
WafBadRequestException(WafBadRequestException),
WafDisallowedNameException(WafDisallowedNameException),
WafInternalErrorException(WafInternalErrorException),
WafInvalidParameterException(WafInvalidParameterException),
WafLimitsExceededException(WafLimitsExceededException),
WafStaleDataException(WafStaleDataException),
WafTagOperationException(WafTagOperationException),
WafTagOperationInternalErrorException(WafTagOperationInternalErrorException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}Expand description
Types of errors that can occur for the CreateRule operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
WafBadRequestException(WafBadRequestException)
Tuple Fields
WafDisallowedNameException(WafDisallowedNameException)
Tuple Fields
The name specified is invalid.
WafInternalErrorException(WafInternalErrorException)
Tuple Fields
The operation failed because of a system problem, even though the request was valid. Retry your request.
WafInvalidParameterException(WafInvalidParameterException)
Tuple Fields
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.
WafLimitsExceededException(WafLimitsExceededException)
Tuple Fields
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.
WafStaleDataException(WafStaleDataException)
Tuple Fields
The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.
WafTagOperationException(WafTagOperationException)
Tuple Fields
WafTagOperationInternalErrorException(WafTagOperationInternalErrorException)
Tuple Fields
Unhandled(Box<dyn Error + Send + Sync + 'static>)
An unexpected error, e.g. invalid JSON returned by the service or an unknown error code
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CreateRuleErrorKind
impl Send for CreateRuleErrorKind
impl Sync for CreateRuleErrorKind
impl Unpin for CreateRuleErrorKind
impl !UnwindSafe for CreateRuleErrorKind
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
