Class RefreshOptions

java.lang.Object
com.pulumi.automation.UpdateOptions
com.pulumi.automation.RefreshOptions

public final class RefreshOptions extends UpdateOptions
Options controlling the behavior of a WorkspaceStack.refresh() operation.
  • Method Details

    • builder

      public static RefreshOptions.Builder builder()
      Returns a new builder for RefreshOptions.
      Returns:
      the builder
    • expectNoChanges

      public boolean expectNoChanges()
      Return an error if any changes are proposed by this preview.
      Returns:
      true if the preview should fail if any changes are proposed
    • previewOnly

      public boolean previewOnly()
      Only show a preview of the refresh, but don't perform the refresh itself.
      Returns:
      true if we should only show the preview
    • showSecrets

      public boolean showSecrets()
      Show config secrets when they appear.
      Returns:
      whether to show secrets
    • skipPendingCreates

      public boolean skipPendingCreates()
      Ignores any pending create operations
      Returns:
      whether to skip pending creates
    • clearPendingCreates

      public boolean clearPendingCreates()
      Removes any pending create operations from the stack
      Returns:
      whether to clear pending creates
    • importPendingCreates

      public List<PendingCreateValue> importPendingCreates()
      Values to import into the stack
      Returns:
      the list of pending create values