WAF / Client / exceptions / WAFEntityMigrationException
WAFEntityMigrationException#
- class WAF.Client.exceptions.WAFEntityMigrationException#
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 theIgnoreUnsupportedType
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 thePutObject
action to the specified Amazon S3 bucket.S3_BUCKET_NOT_ACCESSIBLE
- The bucket policy doesn’t allow AWS WAF to perform thePutObject
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.
Example
try: ... except client.exceptions.WAFEntityMigrationException as e: print(e.response)
- response#
The parsed error response. All exceptions have a top level
Error
key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'message': 'string', 'MigrationErrorType': 'ENTITY_NOT_SUPPORTED'|'ENTITY_NOT_FOUND'|'S3_BUCKET_NO_PERMISSION'|'S3_BUCKET_NOT_ACCESSIBLE'|'S3_BUCKET_NOT_FOUND'|'S3_BUCKET_INVALID_REGION'|'S3_INTERNAL_ERROR', 'MigrationErrorReason': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
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 theIgnoreUnsupportedType
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 thePutObject
action to the specified Amazon S3 bucket.S3_BUCKET_NOT_ACCESSIBLE
- The bucket policy doesn’t allow AWS WAF to perform thePutObject
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.
message (string) –
MigrationErrorType (string) –
MigrationErrorReason (string) –
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.