Class 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.
  • Constructor Details

    • Stash

      public Stash(String name, StashArgs args)
      Create a Stash resource 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(String name, StashArgs args, @Nullable CustomResourceOptions options)
      Create a Stash resource 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 Details

    • input

      public Output<Object> input()
      The most recent value passed to the stash resource.
      Returns:
      the input value
    • output

      public Output<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