Class CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pcs.CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty>
- Enclosing interface:
CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty
@Stability(Stable)
public static final class CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.scriptCachingPolicy(String scriptCachingPolicy) Sets the value ofCfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.getStages()stages(IResolvable stages) Sets the value ofCfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.getStages()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scriptCachingPolicy
@Stability(Stable) public CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.Builder scriptCachingPolicy(String scriptCachingPolicy) Sets the value ofCfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.getScriptCachingPolicy()- Parameters:
scriptCachingPolicy- Controls whether lifecycle scripts are downloaded once at first boot (CACHE_ONCE) or re-downloaded on every reboot (REFRESH_ON_REBOOT). Defaults to CACHE_ONCE.- Returns:
this
-
stages
@Stability(Stable) public CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.Builder stages(IResolvable stages) Sets the value ofCfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.getStages()- Parameters:
stages- The ordered scripts to run at each compute node lifecycle stage.- Returns:
this
-
stages
@Stability(Stable) public CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.Builder stages(CfnComputeNodeGroupPropsMixin.NodeLifecycleStagesProperty stages) Sets the value ofCfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.getStages()- Parameters:
stages- The ordered scripts to run at each compute node lifecycle stage.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty>- Returns:
- a new instance of
CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-