Package com.pulumi.automation
Class StackDeployment
java.lang.Object
com.pulumi.automation.StackDeployment
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 Summary
Modifier and TypeMethodDescriptionThe opaque Pulumi deployment.static StackDeploymentCreates a newStackDeploymentfrom the given JSON string.intversion()Version indicates the schema of the encoded deployment.
-
Method Details
-
fromJson
Creates a newStackDeploymentfrom 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
The opaque Pulumi deployment.- Returns:
- the deployment
-