Package com.pulumi.automation
Class UpOptions.Builder
java.lang.Object
com.pulumi.automation.UpdateOptions.Builder<UpOptions.Builder>
com.pulumi.automation.UpOptions.Builder
- Enclosing class:
- UpOptions
Builder for
UpOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theUpOptions.continueOnError(boolean continueOnError) Continue to perform the update operation despite the occurrence of errors.diff(boolean diff) Display the operation as a rich diff showing the overall change.excludeDependents(boolean excludeDependents) Allows exclusion of dependent targets discovered but not specifiedUpdateOptions.Builder.excludes(java.util.List<java.lang.String>).expectNoChanges(boolean expectNoChanges) Return an error if any changes are proposed by this preview.A custom logger instance that will be used for the action.The path to an update plan to use for the update.The program to execute as part of the update.Resources to replace.showSecrets(boolean showSecrets) Show config secrets when they appear.targetDependents(boolean targetDependents) Allows updating of dependent targets discovered but not specifiedUpdateOptions.Builder.targets(java.util.List<java.lang.String>).Methods inherited from class com.pulumi.automation.UpdateOptions.Builder
color, debug, excludes, json, logFlow, logToStdErr, logVerbosity, message, onEvent, onStandardError, onStandardOutput, parallel, policyPackConfigs, policyPacks, targets, tracing
-
Method Details
-
expectNoChanges
Return an error if any changes are proposed by this preview.- Parameters:
expectNoChanges- true if the preview should fail if any changes are proposed- Returns:
- the builder
-
diff
Display the operation as a rich diff showing the overall change.- Parameters:
diff- true if a rich diff should be displayed- Returns:
- the builder
-
replaces
Resources to replace.- Parameters:
replaces- the list of resource URNs to replace- Returns:
- the builder
-
excludeDependents
Allows exclusion of dependent targets discovered but not specifiedUpdateOptions.Builder.excludes(java.util.List<java.lang.String>).- Parameters:
excludeDependents- true if dependent targets should be excluded- Returns:
- the builder
-
targetDependents
Allows updating of dependent targets discovered but not specifiedUpdateOptions.Builder.targets(java.util.List<java.lang.String>).- Parameters:
targetDependents- true if dependent targets should be updated- Returns:
- the builder
-
program
The program to execute as part of the update.- Parameters:
program- the program to execute- Returns:
- the builder
-
plan
The path to an update plan to use for the update.- Parameters:
plan- the path to the update plan- Returns:
- the builder
-
showSecrets
Show config secrets when they appear.- Parameters:
showSecrets- whether to show secrets- Returns:
- the builder
-
logger
A custom logger instance that will be used for the action. Note that it will only be used ifprogramis also provided.- Parameters:
logger- the logger- Returns:
- the builder
-
continueOnError
Continue to perform the update operation despite the occurrence of errors.- Parameters:
continueOnError- whether to continue on error- Returns:
- the builder
-
build
Builds theUpOptions.- Returns:
- the up options
-