@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UnsupportedAvailabilityZoneException extends AmazonEKSException
At least one of your specified cluster subnets is in an Availability Zone that does not support Amazon EKS. The exception output specifies the supported Availability Zones for your account, from which you can choose subnets for your cluster.
AmazonServiceException.ErrorType
Constructor and Description |
---|
UnsupportedAvailabilityZoneException(String message)
Constructs a new UnsupportedAvailabilityZoneException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
String |
getClusterName()
The Amazon EKS cluster associated with the exception.
|
String |
getNodegroupName()
The Amazon EKS managed node group associated with the exception.
|
List<String> |
getValidZones()
The supported Availability Zones for your account.
|
void |
setClusterName(String clusterName)
The Amazon EKS cluster associated with the exception.
|
void |
setNodegroupName(String nodegroupName)
The Amazon EKS managed node group associated with the exception.
|
void |
setValidZones(Collection<String> validZones)
The supported Availability Zones for your account.
|
UnsupportedAvailabilityZoneException |
withClusterName(String clusterName)
The Amazon EKS cluster associated with the exception.
|
UnsupportedAvailabilityZoneException |
withNodegroupName(String nodegroupName)
The Amazon EKS managed node group associated with the exception.
|
UnsupportedAvailabilityZoneException |
withValidZones(Collection<String> validZones)
The supported Availability Zones for your account.
|
UnsupportedAvailabilityZoneException |
withValidZones(String... validZones)
The supported Availability Zones for your account.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnsupportedAvailabilityZoneException(String message)
message
- Describes the error encountered.public void setClusterName(String clusterName)
The Amazon EKS cluster associated with the exception.
clusterName
- The Amazon EKS cluster associated with the exception.public String getClusterName()
The Amazon EKS cluster associated with the exception.
public UnsupportedAvailabilityZoneException withClusterName(String clusterName)
The Amazon EKS cluster associated with the exception.
clusterName
- The Amazon EKS cluster associated with the exception.public void setNodegroupName(String nodegroupName)
The Amazon EKS managed node group associated with the exception.
nodegroupName
- The Amazon EKS managed node group associated with the exception.public String getNodegroupName()
The Amazon EKS managed node group associated with the exception.
public UnsupportedAvailabilityZoneException withNodegroupName(String nodegroupName)
The Amazon EKS managed node group associated with the exception.
nodegroupName
- The Amazon EKS managed node group associated with the exception.public List<String> getValidZones()
The supported Availability Zones for your account. Choose subnets in these Availability Zones for your cluster.
public void setValidZones(Collection<String> validZones)
The supported Availability Zones for your account. Choose subnets in these Availability Zones for your cluster.
validZones
- The supported Availability Zones for your account. Choose subnets in these Availability Zones for your
cluster.public UnsupportedAvailabilityZoneException withValidZones(String... validZones)
The supported Availability Zones for your account. Choose subnets in these Availability Zones for your cluster.
NOTE: This method appends the values to the existing list (if any). Use
setValidZones(java.util.Collection)
or withValidZones(java.util.Collection)
if you want to
override the existing values.
validZones
- The supported Availability Zones for your account. Choose subnets in these Availability Zones for your
cluster.public UnsupportedAvailabilityZoneException withValidZones(Collection<String> validZones)
The supported Availability Zones for your account. Choose subnets in these Availability Zones for your cluster.
validZones
- The supported Availability Zones for your account. Choose subnets in these Availability Zones for your
cluster.