Enum HandlerErrorCode
- java.lang.Object
-
- java.lang.Enum<HandlerErrorCode>
-
- software.amazon.cloudformation.proxy.HandlerErrorCode
-
- All Implemented Interfaces:
Serializable,Comparable<HandlerErrorCode>
public enum HandlerErrorCode extends Enum<HandlerErrorCode>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AccessDeniedthe customer has insufficient permissions to perform this action (Terminal)AlreadyExiststhe specified resource already existed prior to the execution of the handler.GeneralServiceExceptionan exception from the downstream service that does not map to any other error codes (Terminal)InternalFailurean unexpected error occurred within the handler, such as an NPE, etc.InvalidCredentialsthe customer's provided credentials were invalid (Terminal)InvalidRequesta generic exception caused by invalid input from the customer (Terminal)NetworkFailurethe request was unable to be completed due to networking issues, such as failure to receive a response from the server (Retriable)NotFoundthe specified resource does not exist, or is in a terminal, inoperable, and irrecoverable state (Terminal)NotStabilizedthe downstream resource failed to complete all of its ready state checks (Retriable)NotUpdatablethe customer tried perform an update to a property that is CreateOnly.ResourceConflictthe resource is temporarily unable to be acted upon; for example, if the resource is currently undergoing an operation and cannot be acted upon until that operation is finished (Retriable)ServiceInternalErrorthe downstream service returned an internal error, typically with a 5XX HTTP Status code (Retriable)ServiceLimitExceededa non-transient resource limit was reached on the service side (Terminal)Throttlingthe request was throttled by the downstream service (Retriable)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HandlerErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name.static HandlerErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NotUpdatable
public static final HandlerErrorCode NotUpdatable
the customer tried perform an update to a property that is CreateOnly. Only applicable to Update Handler (Terminal)
-
InvalidRequest
public static final HandlerErrorCode InvalidRequest
a generic exception caused by invalid input from the customer (Terminal)
-
AccessDenied
public static final HandlerErrorCode AccessDenied
the customer has insufficient permissions to perform this action (Terminal)
-
InvalidCredentials
public static final HandlerErrorCode InvalidCredentials
the customer's provided credentials were invalid (Terminal)
-
AlreadyExists
public static final HandlerErrorCode AlreadyExists
the specified resource already existed prior to the execution of the handler. Only applicable to Create Handler (Terminal) Handlers MUST return this error when duplicate creation requests are received.
-
NotFound
public static final HandlerErrorCode NotFound
the specified resource does not exist, or is in a terminal, inoperable, and irrecoverable state (Terminal)
-
ResourceConflict
public static final HandlerErrorCode ResourceConflict
the resource is temporarily unable to be acted upon; for example, if the resource is currently undergoing an operation and cannot be acted upon until that operation is finished (Retriable)
-
Throttling
public static final HandlerErrorCode Throttling
the request was throttled by the downstream service (Retriable)
-
ServiceLimitExceeded
public static final HandlerErrorCode ServiceLimitExceeded
a non-transient resource limit was reached on the service side (Terminal)
-
NotStabilized
public static final HandlerErrorCode NotStabilized
the downstream resource failed to complete all of its ready state checks (Retriable)
-
GeneralServiceException
public static final HandlerErrorCode GeneralServiceException
an exception from the downstream service that does not map to any other error codes (Terminal)
-
ServiceInternalError
public static final HandlerErrorCode ServiceInternalError
the downstream service returned an internal error, typically with a 5XX HTTP Status code (Retriable)
-
NetworkFailure
public static final HandlerErrorCode NetworkFailure
the request was unable to be completed due to networking issues, such as failure to receive a response from the server (Retriable)
-
InternalFailure
public static final HandlerErrorCode InternalFailure
an unexpected error occurred within the handler, such as an NPE, etc. (Terminal)
-
-
Method Detail
-
values
public static HandlerErrorCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HandlerErrorCode c : HandlerErrorCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HandlerErrorCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-