Enum Class DeploymentTarget

java.lang.Object
java.lang.Enum<DeploymentTarget>
com.cloudforge.core.local.DeploymentTarget
All Implemented Interfaces:
Serializable, Comparable<DeploymentTarget>, Constable

public enum DeploymentTarget extends Enum<DeploymentTarget>
Post-synthesis deployment target for CloudForge templates.

AWS is not driven through the local pipeline — CDK deploys directly to AWS. MINISTACK and LOCALSTACK use adapter modules that implement TemplateAdapter and LocalDeployer.

  • Enum Constant Details

  • Method Details

    • values

      public static DeploymentTarget[] 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 DeploymentTarget 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
    • configKey

      public String configKey()
      Lowercase id used in deployment context and history (aws, ministack, localstack).
    • fromConfigKey

      public static DeploymentTarget fromConfigKey(String key)
      Parses a wire-format target id (configKey()'s inverse) — case-insensitive, defaults to AWS for blank input (matching every other target-selector default in this codebase). Unknown non-blank values are a caller error, not silently coerced — accidentally routing a real deploy to the wrong target is exactly the class of bug worth failing loudly on.