Package com.pulumi.automation
Class UpOptions
java.lang.Object
com.pulumi.automation.UpdateOptions
com.pulumi.automation.UpOptions
Options controlling the behavior of an
WorkspaceStack.up() operation.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UpOptions.Builderbuilder()Returns a new builder forUpOptions.booleanContinue to perform the update operation despite the occurrence of errors.booleandiff()Display the operation as a rich diff showing the overall change.booleanAllows exclusion of dependent targets discovered but not specifiedUpdateOptions.excludes()booleanReturn an error if any changes are proposed by this preview.logger()A custom logger instance that will be used for the action.plan()The path to an update plan to use for the update.program()The program to execute as part of the update.replaces()Resources to replace.booleanShow config secrets when they appear.booleanAllows updating of dependent targets discovered but not specifiedUpdateOptions.targets()Methods inherited from class com.pulumi.automation.UpdateOptions
color, debug, excludes, json, logFlow, logToStdErr, logVerbosity, Message, onEvent, onStandardError, onStandardOutput, parallel, policyPackConfigs, policyPacks, targets, tracing
-
Method Details
-
builder
Returns a new builder forUpOptions.- 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
-
diff
public boolean diff()Display the operation as a rich diff showing the overall change.- Returns:
- true if a rich diff should be displayed
-
replaces
Resources to replace.- Returns:
- the list of resource URNs to replace
-
excludeDependents
public boolean excludeDependents()Allows exclusion of dependent targets discovered but not specifiedUpdateOptions.excludes()- Returns:
- true if dependent targets should be excluded
-
targetDependents
public boolean targetDependents()Allows updating of dependent targets discovered but not specifiedUpdateOptions.targets()- Returns:
- true if dependent targets should be updated
-
program
The program to execute as part of the update.- Returns:
- the program to execute
-
plan
The path to an update plan to use for the update.- Returns:
- the path to the update plan
-
showSecrets
public boolean showSecrets()Show config secrets when they appear.- Returns:
- whether to show secrets
-
logger
A custom logger instance that will be used for the action. Note that it will only be used ifprogram()is also provided.- Returns:
- the logger
-
continueOnError
public boolean continueOnError()Continue to perform the update operation despite the occurrence of errors.- Returns:
- whether to continue on error
-