Class StackDeployment

java.lang.Object
com.pulumi.automation.StackDeployment

public final class StackDeployment extends Object
Represents the state of a stack deployment as used by Workspace.importStack(String, StackDeployment) and Workspace.exportStack(String).

There is no strongly typed model for the contents yet, but you can access the raw representation via deployment().

NOTE: instances may contain sensitive data (secrets).

  • Method Details

    • fromJson

      public static StackDeployment fromJson(String json) throws AutomationException
      Creates a new StackDeployment from the given JSON string.
      Parameters:
      json - the JSON string to parse
      Returns:
      the stack deployment
      Throws:
      AutomationException - if the deployment cannot be parsed
    • version

      public int version()
      Version indicates the schema of the encoded deployment.
      Returns:
      the version of the deployment
    • deployment

      public Map<String,Object> deployment()
      The opaque Pulumi deployment.
      Returns:
      the deployment