@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WAFEntityMigrationException extends AWSWAFException
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 the IgnoreUnsupportedType
is not set to true.
ENTITY_NOT_FOUND - The web ACL doesn't exist.
S3_BUCKET_NO_PERMISSION - You don't have permission to perform the PutObject action to the
specified Amazon S3 bucket.
S3_BUCKET_NOT_ACCESSIBLE - The bucket policy doesn't allow AWS WAF to perform the PutObject
action 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.
AmazonServiceException.ErrorType| Constructor and Description |
|---|
WAFEntityMigrationException(String message)
Constructs a new WAFEntityMigrationException with the specified error message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMigrationErrorReason() |
String |
getMigrationErrorType() |
void |
setMigrationErrorReason(String migrationErrorReason) |
void |
setMigrationErrorType(String migrationErrorType) |
WAFEntityMigrationException |
withMigrationErrorReason(String migrationErrorReason) |
WAFEntityMigrationException |
withMigrationErrorType(MigrationErrorType migrationErrorType) |
WAFEntityMigrationException |
withMigrationErrorType(String migrationErrorType) |
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCodeisRetryableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic WAFEntityMigrationException(String message)
message - Describes the error encountered.public void setMigrationErrorType(String migrationErrorType)
migrationErrorType - MigrationErrorTypepublic String getMigrationErrorType()
MigrationErrorTypepublic WAFEntityMigrationException withMigrationErrorType(String migrationErrorType)
migrationErrorType - MigrationErrorTypepublic WAFEntityMigrationException withMigrationErrorType(MigrationErrorType migrationErrorType)
migrationErrorType - MigrationErrorTypepublic void setMigrationErrorReason(String migrationErrorReason)
migrationErrorReason - public String getMigrationErrorReason()
public WAFEntityMigrationException withMigrationErrorReason(String migrationErrorReason)
migrationErrorReason -