pub enum CreateWebACLMigrationStackError {
WAFEntityMigration(String),
WAFInternalError(String),
WAFInvalidOperation(String),
WAFInvalidParameter(String),
WAFNonexistentItem(String),
}Expand description
Errors returned by CreateWebACLMigrationStack
Variants§
WAFEntityMigration(String)
The operation failed due to a problem with the migration. The failure cause is provided in the exception, in the MigrationErrorType:
-
ENTITYNOTSUPPORTED- The web ACL has an unsupported entity but theIgnoreUnsupportedTypeis not set to true. -
ENTITYNOTFOUND- The web ACL doesn't exist. -
S3BUCKETNOPERMISSION- You don't have permission to perform thePutObjectaction to the specified Amazon S3 bucket. -
S3BUCKETNOTACCESSIBLE- The bucket policy doesn't allow AWS WAF to perform thePutObjectaction in the bucket. -
S3BUCKETNOTFOUND- The S3 bucket doesn't exist. -
S3BUCKETINVALIDREGION- The S3 bucket is not in the same Region as the web ACL. -
S3INTERNALERROR- AWS WAF failed to create the template in the S3 bucket for another reason.
WAFInternalError(String)
The operation failed because of a system problem, even though the request was valid. Retry your request.
WAFInvalidOperation(String)
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.
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.
WAFNonexistentItem(String)
The operation failed because the referenced object doesn't exist.
Implementations§
Trait Implementations§
Source§impl Error for CreateWebACLMigrationStackError
impl Error for CreateWebACLMigrationStackError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl PartialEq for CreateWebACLMigrationStackError
impl PartialEq for CreateWebACLMigrationStackError
Source§fn eq(&self, other: &CreateWebACLMigrationStackError) -> bool
fn eq(&self, other: &CreateWebACLMigrationStackError) -> bool
self and other values to be equal, and is used by ==.