Enum Class HandlerErrorCode

java.lang.Object
java.lang.Enum<HandlerErrorCode>
software.amazon.cloudformation.proxy.HandlerErrorCode
All Implemented Interfaces:
Serializable, Comparable<HandlerErrorCode>, Constable

public enum HandlerErrorCode extends Enum<HandlerErrorCode>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    the customer has insufficient permissions to perform this action (Terminal)
    the specified resource already existed prior to the execution of the handler.
    an exception from the downstream service that does not map to any other error codes (Terminal)
    an internal error occurred within the handler, such as an NPE, etc.
    an unexpected error occurred within the handler, such as an NPE, etc.
    the customer's provided credentials were invalid (Terminal)
    a generic exception caused by invalid input from the customer (Terminal)
    typeConfiguration is null or required typeConfiguration property is null
    the request was unable to be completed due to networking issues, such as failure to receive a response from the server (Retriable)
    the specified target of the Hook is in a non-compliant state.
    the specified resource does not exist, or is in a terminal, inoperable, and irrecoverable state (Terminal)
    the downstream resource failed to complete all of its ready state checks (Terminal)
    the customer tried perform an update to a property that is CreateOnly.
    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)
    the downstream service returned an internal error, typically with a 5XX HTTP Status code (Retriable)
    a non-transient resource limit was reached on the service side (Terminal)
    the request was throttled by the downstream service (Retriable)
    the customer has insufficient permissions to perform tagging create/update/delete/read action (Terminal)
    the Hook has returned a failure for an Unknown reason.
    The specified target in the hook request is not supported.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Enum

    compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • 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)
    • UnauthorizedTaggingOperation

      public static final HandlerErrorCode UnauthorizedTaggingOperation
      the customer has insufficient permissions to perform tagging create/update/delete/read 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 (Terminal)
    • 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)
    • InvalidTypeConfiguration

      public static final HandlerErrorCode InvalidTypeConfiguration
      typeConfiguration is null or required typeConfiguration property is null
    • HandlerInternalFailure

      public static final HandlerErrorCode HandlerInternalFailure
      an internal error occurred within the handler, such as an NPE, etc. (Terminal)
    • NonCompliant

      public static final HandlerErrorCode NonCompliant
      the specified target of the Hook is in a non-compliant state. Only applicable to Hook type handlers (Terminal) Hook Handlers return this error when the hook's compliance checks have failed.
    • UnsupportedTarget

      public static final HandlerErrorCode UnsupportedTarget
      The specified target in the hook request is not supported. Applicable when hook has wildcard targets. Hook wildcard may be matched to target that hook did not support at time of registration
    • Unknown

      public static final HandlerErrorCode Unknown
      the Hook has returned a failure for an Unknown reason. Only applicable to Hook type handlers (terminal) Hook Handlers can return this when a hook has failed for a reason other than non-compliance
  • Method Details

    • values

      public static HandlerErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static HandlerErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null