WAF / Client / exceptions / WAFNonexistentContainerException

WAFNonexistentContainerException#

class WAF.Client.exceptions.WAFNonexistentContainerException#

The operation failed because you tried to add an object to or delete an object from another object that doesn’t exist. For example:

  • You tried to add a Rule to or delete a Rule from a WebACL that doesn’t exist.

  • You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule that doesn’t exist.

  • You tried to add an IP address to or delete an IP address from an IPSet that doesn’t exist.

  • You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a ByteMatchSet that doesn’t exist.

Example

try:
  ...
except client.exceptions.WAFNonexistentContainerException 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 you tried to add an object to or delete an object from another object that doesn’t exist. For example:

    • You tried to add a Rule to or delete a Rule from a WebACL that doesn’t exist.

    • You tried to add a ByteMatchSet to or delete a ByteMatchSet from a Rule that doesn’t exist.

    • You tried to add an IP address to or delete an IP address from an IPSet that doesn’t exist.

    • You tried to add a ByteMatchTuple to or delete a ByteMatchTuple from a ByteMatchSet that doesn’t exist.

    • 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.