WAF / Client / exceptions / WAFInvalidOperationException
WAFInvalidOperationException#
- class WAF.Client.exceptions.WAFInvalidOperationException#
The operation failed because there was nothing to do. For example:
You tried to remove a
Rule
from aWebACL
, but theRule
isn’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
ByteMatchTuple
from aByteMatchSet
, but theByteMatchTuple
isn’t in the specifiedWebACL
.You tried to add a
Rule
to aWebACL
, but theRule
already exists in the specifiedWebACL
.You tried to add a
ByteMatchTuple
to aByteMatchSet
, but theByteMatchTuple
already exists in the specifiedWebACL
.
Example
try: ... except client.exceptions.WAFInvalidOperationException 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', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
The operation failed because there was nothing to do. For example:
You tried to remove a
Rule
from aWebACL
, but theRule
isn’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
ByteMatchTuple
from aByteMatchSet
, but theByteMatchTuple
isn’t in the specifiedWebACL
.You tried to add a
Rule
to aWebACL
, but theRule
already exists in the specifiedWebACL
.You tried to add a
ByteMatchTuple
to aByteMatchSet
, but theByteMatchTuple
already exists in the specifiedWebACL
.
message (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.