Package com.pulumi.automation
Class UpdateOptions.Builder<B extends UpdateOptions.Builder<B>>
java.lang.Object
com.pulumi.automation.UpdateOptions.Builder<B>
- Direct Known Subclasses:
DestroyOptions.Builder,PreviewOptions.Builder,RefreshOptions.Builder,UpOptions.Builder
- Enclosing class:
- UpdateOptions
public abstract static class UpdateOptions.Builder<B extends UpdateOptions.Builder<B>>
extends Object
Base builder for all update options.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionColorize output.debug(boolean debug) Print detailed debugging output during resource operationsA list of resource URNs to exclude during the operation.json(boolean json) Format standard output as JSON not text.logFlow(boolean logFlow) Flow log settings to child processes (like plugins)logToStdErr(boolean logToStdErr) Log to stderr instead of to fileslogVerbosity(Integer logVerbosity) Enable verbose logging (e.g., v=3); anything >3 is very verboseOptional message to associate with the operation.onEvent(Consumer<EngineEvent> onEvent) Optional callback which is invoked with the engine events.onStandardError(Consumer<String> onStandardError) Optional callback which is invoked whenever StandardError is written into.onStandardOutput(Consumer<String> onStandardOutput) Optional callback which is invoked whenever StandardOutput is written into.Allow resource operations to run in parallel at once.policyPackConfigs(List<String> policyPackConfigs) A list of paths to policy pack JSON configuration files to use during the operation.policyPacks(List<String> policyPacks) A list of paths to policy packs to run during the operation.A list of resource URNs to target during the operation.Emit tracing to the specified endpoint.
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
parallel
Allow resource operations to run in parallel at once. Specify 1 for no parallelism.- Parameters:
parallel- the number of resource operations to run in parallel- Returns:
- the builder
-
message
Optional message to associate with the operation.- Parameters:
message- the message- Returns:
- the builder
-
excludes
A list of resource URNs to exclude during the operation. Wildcards (*, **) are also supported.- Parameters:
excludes- the list of excluded resource URNs- Returns:
- the builder
-
targets
A list of resource URNs to target during the operation. Wildcards (*, **) are also supported.- Parameters:
targets- the list of target resource URNs- Returns:
- the builder
-
policyPacks
A list of paths to policy packs to run during the operation.- Parameters:
policyPacks- the list of paths to policy packs- Returns:
- the builder
-
policyPackConfigs
A list of paths to policy pack JSON configuration files to use during the operation.- Parameters:
policyPackConfigs- the list of paths to policy pack JSON configuration files- Returns:
- the builder
-
onStandardOutput
Optional callback which is invoked whenever StandardOutput is written into.- Parameters:
onStandardOutput- the callback- Returns:
- the builder
-
onStandardError
Optional callback which is invoked whenever StandardError is written into.- Parameters:
onStandardError- the callback- Returns:
- the builder
-
onEvent
Optional callback which is invoked with the engine events.- Parameters:
onEvent- the callback- Returns:
- the builder
-
color
Colorize output. Choices are: always, never, raw, auto (default "auto")- Parameters:
color- the colorize output setting- Returns:
- the builder
-
logFlow
Flow log settings to child processes (like plugins)- Parameters:
logFlow- the flow log settings- Returns:
- the builder
-
logVerbosity
Enable verbose logging (e.g., v=3); anything >3 is very verbose- Parameters:
logVerbosity- the log verbosity- Returns:
- the builder
-
logToStdErr
Log to stderr instead of to files- Parameters:
logToStdErr- the log to stderr setting- Returns:
- the builder
-
tracing
Emit tracing to the specified endpoint. Use the file: scheme to write tracing data to a local file- Parameters:
tracing- the tracing endpoint- Returns:
- the builder
-
debug
Print detailed debugging output during resource operations- Parameters:
debug- the debug setting- Returns:
- the builder
-
json
Format standard output as JSON not text.- Parameters:
json- the JSON output setting- Returns:
- the builder
-