Class CfnComputeNodeGroup.NodeLifecycleScriptProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pcs.CfnComputeNodeGroup.NodeLifecycleScriptProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeNodeGroup.NodeLifecycleScriptProperty>
- Enclosing interface:
CfnComputeNodeGroup.NodeLifecycleScriptProperty
@Stability(Stable)
public static final class CfnComputeNodeGroup.NodeLifecycleScriptProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeNodeGroup.NodeLifecycleScriptProperty>
A builder for
CfnComputeNodeGroup.NodeLifecycleScriptProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getArguments()build()Builds the configured instance.executionPolicy(String executionPolicy) Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getExecutionPolicy()Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getName()Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getOnError()scriptSource(IResolvable scriptSource) Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getScriptSource()scriptSource(CfnComputeNodeGroup.ScriptSourceProperty scriptSource) Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getScriptSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getName()- Parameters:
name- A human-readable name that identifies the script. This parameter is required.- Returns:
this
-
scriptSource
@Stability(Stable) public CfnComputeNodeGroup.NodeLifecycleScriptProperty.Builder scriptSource(IResolvable scriptSource) Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getScriptSource()- Parameters:
scriptSource- The external location of a lifecycle script. This parameter is required.- Returns:
this
-
scriptSource
@Stability(Stable) public CfnComputeNodeGroup.NodeLifecycleScriptProperty.Builder scriptSource(CfnComputeNodeGroup.ScriptSourceProperty scriptSource) Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getScriptSource()- Parameters:
scriptSource- The external location of a lifecycle script. This parameter is required.- Returns:
this
-
arguments
@Stability(Stable) public CfnComputeNodeGroup.NodeLifecycleScriptProperty.Builder arguments(List<String> arguments) Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getArguments()- Parameters:
arguments- An ordered list of arguments passed to the script.- Returns:
this
-
executionPolicy
@Stability(Stable) public CfnComputeNodeGroup.NodeLifecycleScriptProperty.Builder executionPolicy(String executionPolicy) Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getExecutionPolicy()- Parameters:
executionPolicy- Whether the script runs only on the node's first boot (FIRST_BOOT_ONLY) or on every boot including reboots (EVERY_BOOT). Defaults to FIRST_BOOT_ONLY.- Returns:
this
-
onError
@Stability(Stable) public CfnComputeNodeGroup.NodeLifecycleScriptProperty.Builder onError(String onError) Sets the value ofCfnComputeNodeGroup.NodeLifecycleScriptProperty.getOnError()- Parameters:
onError- The behavior when the script exits with an error. Defaults to TERMINATE.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeNodeGroup.NodeLifecycleScriptProperty>- Returns:
- a new instance of
CfnComputeNodeGroup.NodeLifecycleScriptProperty - Throws:
NullPointerException- if any required attribute was not provided
-