Interface NodeLifecycleScript.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<NodeLifecycleScript.Builder,,NodeLifecycleScript> SdkBuilder<NodeLifecycleScript.Builder,,NodeLifecycleScript> SdkPojo
- Enclosing class:
NodeLifecycleScript
-
Method Summary
Modifier and TypeMethodDescriptionThe command-line arguments to pass to the script.arguments(Collection<String> arguments) The command-line arguments to pass to the script.executionPolicy(String executionPolicy) The policy that determines when the script runs.executionPolicy(ExecutionPolicy executionPolicy) The policy that determines when the script runs.A unique name for the script.The behavior when the script fails.The behavior when the script fails.default NodeLifecycleScript.BuilderscriptSource(Consumer<ScriptSource.Builder> scriptSource) The source location and integrity information for the script.scriptSource(ScriptSource scriptSource) The source location and integrity information for the script.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
name
A unique name for the script. The name can be up to 64 characters long. Valid characters are letters, numbers, spaces, underscores (
_), and hyphens (-). The first character must be a letter or a number.- Parameters:
name- A unique name for the script. The name can be up to 64 characters long. Valid characters are letters, numbers, spaces, underscores (_), and hyphens (-). The first character must be a letter or a number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scriptSource
The source location and integrity information for the script.
- Parameters:
scriptSource- The source location and integrity information for the script.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scriptSource
The source location and integrity information for the script.
This is a convenience method that creates an instance of theScriptSource.Builderavoiding the need to create one manually viaScriptSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscriptSource(ScriptSource).- Parameters:
scriptSource- a consumer that will call methods onScriptSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arguments
The command-line arguments to pass to the script. You can specify up to 20 arguments, and each argument can be up to 256 characters long.
- Parameters:
arguments- The command-line arguments to pass to the script. You can specify up to 20 arguments, and each argument can be up to 256 characters long.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arguments
The command-line arguments to pass to the script. You can specify up to 20 arguments, and each argument can be up to 256 characters long.
- Parameters:
arguments- The command-line arguments to pass to the script. You can specify up to 20 arguments, and each argument can be up to 256 characters long.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
onError
The behavior when the script fails. The default value is
TERMINATE. Valid values:-
TERMINATE– Terminates the compute node. -
STOP_SEQUENCE– Stops running subsequent scripts in the sequence but doesn't terminate the compute node. -
CONTINUE– Ignores the error and continues running the next script.
- Parameters:
onError- The behavior when the script fails. The default value isTERMINATE. Valid values:-
TERMINATE– Terminates the compute node. -
STOP_SEQUENCE– Stops running subsequent scripts in the sequence but doesn't terminate the compute node. -
CONTINUE– Ignores the error and continues running the next script.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
onError
The behavior when the script fails. The default value is
TERMINATE. Valid values:-
TERMINATE– Terminates the compute node. -
STOP_SEQUENCE– Stops running subsequent scripts in the sequence but doesn't terminate the compute node. -
CONTINUE– Ignores the error and continues running the next script.
- Parameters:
onError- The behavior when the script fails. The default value isTERMINATE. Valid values:-
TERMINATE– Terminates the compute node. -
STOP_SEQUENCE– Stops running subsequent scripts in the sequence but doesn't terminate the compute node. -
CONTINUE– Ignores the error and continues running the next script.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
executionPolicy
The policy that determines when the script runs. The default value is
FIRST_BOOT_ONLY. Valid values:-
FIRST_BOOT_ONLY– Runs the script only the first time the compute node boots. -
EVERY_BOOT– Runs the script every time the compute node boots, including reboots.
- Parameters:
executionPolicy- The policy that determines when the script runs. The default value isFIRST_BOOT_ONLY. Valid values:-
FIRST_BOOT_ONLY– Runs the script only the first time the compute node boots. -
EVERY_BOOT– Runs the script every time the compute node boots, including reboots.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
executionPolicy
The policy that determines when the script runs. The default value is
FIRST_BOOT_ONLY. Valid values:-
FIRST_BOOT_ONLY– Runs the script only the first time the compute node boots. -
EVERY_BOOT– Runs the script every time the compute node boots, including reboots.
- Parameters:
executionPolicy- The policy that determines when the script runs. The default value isFIRST_BOOT_ONLY. Valid values:-
FIRST_BOOT_ONLY– Runs the script only the first time the compute node boots. -
EVERY_BOOT– Runs the script every time the compute node boots, including reboots.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-