DAX / Client / exceptions / SubnetNotAllowedFault
SubnetNotAllowedFault¶
- class DAX.Client.exceptions.SubnetNotAllowedFault¶
The specified subnet can’t be used for the requested network type. This error occurs when either there aren’t enough subnets of the required network type to create the cluster, or when you try to use a subnet that doesn’t support the requested network type (for example, trying to create a dual-stack cluster with a subnet that doesn’t have IPv6 CIDR).
Example
try: ... except client.exceptions.SubnetNotAllowedFault 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
{}
Structure
(dict) –
The specified subnet can’t be used for the requested network type. This error occurs when either there aren’t enough subnets of the required network type to create the cluster, or when you try to use a subnet that doesn’t support the requested network type (for example, trying to create a dual-stack cluster with a subnet that doesn’t have IPv6 CIDR).
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.