Package com.pulumi.automation
Class StackDeployment
- java.lang.Object
-
- com.pulumi.automation.StackDeployment
-
public final class StackDeployment extends java.lang.Object
Represents the state of a stack deployment as used byWorkspace.importStack(String, StackDeployment)
andWorkspace.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>
deployment()
The opaque Pulumi deployment.static StackDeployment
fromJson(java.lang.String json)
Creates a newStackDeployment
from the given JSON string.int
version()
Version indicates the schema of the encoded deployment.
-
-
-
Method Detail
-
fromJson
public static StackDeployment fromJson(java.lang.String json) throws AutomationException
Creates a newStackDeployment
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 java.util.Map<java.lang.String,java.lang.Object> deployment()
The opaque Pulumi deployment.- Returns:
- the deployment
-
-