Package com.pulumi.resources
Class Stash
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.resources.Stash
-
public class Stash extends CustomResource
Stash stores an arbitrary value in the stack's state for later retrieval. The output property preserves the initial input value even when the input is updated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource
CustomResource.CustomResourceInternal
-
Nested classes/interfaces inherited from class com.pulumi.resources.Resource
Resource.LazyField<T>, Resource.LazyFields, Resource.ResourceInternal
-
-
Field Summary
-
Fields inherited from class com.pulumi.resources.Resource
childResources, remote
-
-
Constructor Summary
Constructors Constructor Description Stash(java.lang.String name, StashArgs args)Create aStashresource with the given unique name and arguments.Stash(java.lang.String name, StashArgs args, CustomResourceOptions options)Create aStashresource with the given unique name, arguments, and options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Output<java.lang.Object>input()The most recent value passed to the stash resource.Output<java.lang.Object>output()The value saved in the state for the stash.-
Methods inherited from class com.pulumi.resources.CustomResource
id, idFuture
-
Methods inherited from class com.pulumi.resources.Resource
pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
-
-
-
-
Constructor Detail
-
Stash
public Stash(java.lang.String name, StashArgs args)Create aStashresource with the given unique name and arguments.- Parameters:
name- The unique name of the stash resource.args- The arguments to use to populate this resource's properties.
-
Stash
public Stash(java.lang.String name, StashArgs args, @Nullable CustomResourceOptions options)Create aStashresource with the given unique name, arguments, and options.- Parameters:
name- The unique name of the stash resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
input
public Output<java.lang.Object> input()
The most recent value passed to the stash resource.- Returns:
- the input value
-
output
public Output<java.lang.Object> output()
The value saved in the state for the stash. This preserves the initial input value even when the input is updated in future deployments.- Returns:
- the output value
-
-