WAFV2 / Client / exceptions / WAFInvalidParameterException
WAFInvalidParameterException#
- class WAFV2.Client.exceptions.WAFInvalidParameterException#
The operation failed because WAF didn’t recognize a parameter in the request. For example:
You specified a parameter name or value that isn’t valid.
Your nested statement isn’t valid. You might have tried to nest a statement that can’t be nested.
You tried to update a
WebACL
with aDefaultAction
that isn’t among the types available at DefaultAction.Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL can’t be associated.
Example
try: ... except client.exceptions.WAFInvalidParameterException 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', 'Field': 'WEB_ACL'|'RULE_GROUP'|'REGEX_PATTERN_SET'|'IP_SET'|'MANAGED_RULE_SET'|'RULE'|'EXCLUDED_RULE'|'STATEMENT'|'BYTE_MATCH_STATEMENT'|'SQLI_MATCH_STATEMENT'|'XSS_MATCH_STATEMENT'|'SIZE_CONSTRAINT_STATEMENT'|'GEO_MATCH_STATEMENT'|'RATE_BASED_STATEMENT'|'RULE_GROUP_REFERENCE_STATEMENT'|'REGEX_PATTERN_REFERENCE_STATEMENT'|'IP_SET_REFERENCE_STATEMENT'|'MANAGED_RULE_SET_STATEMENT'|'LABEL_MATCH_STATEMENT'|'AND_STATEMENT'|'OR_STATEMENT'|'NOT_STATEMENT'|'IP_ADDRESS'|'IP_ADDRESS_VERSION'|'FIELD_TO_MATCH'|'TEXT_TRANSFORMATION'|'SINGLE_QUERY_ARGUMENT'|'SINGLE_HEADER'|'DEFAULT_ACTION'|'RULE_ACTION'|'ENTITY_LIMIT'|'OVERRIDE_ACTION'|'SCOPE_VALUE'|'RESOURCE_ARN'|'RESOURCE_TYPE'|'TAGS'|'TAG_KEYS'|'METRIC_NAME'|'FIREWALL_MANAGER_STATEMENT'|'FALLBACK_BEHAVIOR'|'POSITION'|'FORWARDED_IP_CONFIG'|'IP_SET_FORWARDED_IP_CONFIG'|'HEADER_NAME'|'CUSTOM_REQUEST_HANDLING'|'RESPONSE_CONTENT_TYPE'|'CUSTOM_RESPONSE'|'CUSTOM_RESPONSE_BODY'|'JSON_MATCH_PATTERN'|'JSON_MATCH_SCOPE'|'BODY_PARSING_FALLBACK_BEHAVIOR'|'LOGGING_FILTER'|'FILTER_CONDITION'|'EXPIRE_TIMESTAMP'|'CHANGE_PROPAGATION_STATUS'|'ASSOCIABLE_RESOURCE'|'LOG_DESTINATION'|'MANAGED_RULE_GROUP_CONFIG'|'PAYLOAD_TYPE'|'HEADER_MATCH_PATTERN'|'COOKIE_MATCH_PATTERN'|'MAP_MATCH_SCOPE'|'OVERSIZE_HANDLING'|'CHALLENGE_CONFIG'|'TOKEN_DOMAIN'|'ATP_RULE_SET_RESPONSE_INSPECTION'|'ASSOCIATED_RESOURCE_TYPE'|'SCOPE_DOWN'|'CUSTOM_KEYS'|'ACP_RULE_SET_RESPONSE_INSPECTION', 'Parameter': 'string', 'Reason': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The operation failed because WAF didn’t recognize a parameter in the request. For example:
You specified a parameter name or value that isn’t valid.
Your nested statement isn’t valid. You might have tried to nest a statement that can’t be nested.
You tried to update a
WebACL
with aDefaultAction
that isn’t among the types available at DefaultAction.Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL can’t be associated.
message (string) –
Field (string) –
The settings where the invalid parameter was found.
Parameter (string) –
The invalid parameter that resulted in the exception.
Reason (string) –
Additional information about the exception.
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.