#[non_exhaustive]
pub enum CreateWebACLMigrationStackErrorKind {
WafEntityMigrationException(WafEntityMigrationException),
WafInternalErrorException(WafInternalErrorException),
WafInvalidOperationException(WafInvalidOperationException),
WafInvalidParameterException(WafInvalidParameterException),
WafNonexistentItemException(WafNonexistentItemException),
Unhandled(Box<dyn Error + Send + Sync + 'static>),
}Expand description
Types of errors that can occur for the CreateWebACLMigrationStack operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
WafEntityMigrationException(WafEntityMigrationException)
Tuple Fields
The operation failed due to a problem with the migration. The failure cause is provided in the exception, in the MigrationErrorType:
-
ENTITY_NOT_SUPPORTED- The web ACL has an unsupported entity but theIgnoreUnsupportedTypeis not set to true. -
ENTITY_NOT_FOUND- The web ACL doesn't exist. -
S3_BUCKET_NO_PERMISSION- You don't have permission to perform thePutObjectaction to the specified Amazon S3 bucket. -
S3_BUCKET_NOT_ACCESSIBLE- The bucket policy doesn't allow AWS WAF to perform thePutObjectaction in the bucket. -
S3_BUCKET_NOT_FOUND- The S3 bucket doesn't exist. -
S3_BUCKET_INVALID_REGION- The S3 bucket is not in the same Region as the web ACL. -
S3_INTERNAL_ERROR- AWS WAF failed to create the template in the S3 bucket for another reason.
WafInternalErrorException(WafInternalErrorException)
Tuple Fields
The operation failed because of a system problem, even though the request was valid. Retry your request.
WafInvalidOperationException(WafInvalidOperationException)
Tuple Fields
The operation failed because there was nothing to do. For example:
-
You tried to remove a
Rulefrom aWebACL, but theRuleisn't in the specifiedWebACL. -
You tried to remove an IP address from an
IPSet, but the IP address isn't in the specifiedIPSet. -
You tried to remove a
ByteMatchTuplefrom aByteMatchSet, but theByteMatchTupleisn't in the specifiedWebACL. -
You tried to add a
Ruleto aWebACL, but theRulealready exists in the specifiedWebACL. -
You tried to add a
ByteMatchTupleto aByteMatchSet, but theByteMatchTuplealready exists in the specifiedWebACL.
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.
WafNonexistentItemException(WafNonexistentItemException)
Tuple Fields
The operation failed because the referenced object doesn't exist.
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 Send for CreateWebACLMigrationStackErrorKind
impl Sync for CreateWebACLMigrationStackErrorKind
impl Unpin for CreateWebACLMigrationStackErrorKind
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
