Interface CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.Jsii$Proxy
- Enclosing class:
CfnComputeNodeGroupPropsMixin
@Stability(Stable)
public static interface CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty
extends software.amazon.jsii.JsiiSerializable
Custom scripts that run at defined points in a compute node's lifecycle.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.pcs.*;
NodeLifecycleActionsProperty nodeLifecycleActionsProperty = NodeLifecycleActionsProperty.builder()
.scriptCachingPolicy("scriptCachingPolicy")
.stages(NodeLifecycleStagesProperty.builder()
.nodeBootstrapped(List.of(NodeLifecycleScriptProperty.builder()
.arguments(List.of("arguments"))
.executionPolicy("executionPolicy")
.name("name")
.onError("onError")
.scriptSource(ScriptSourceProperty.builder()
.checksum("checksum")
.s3VersionId("s3VersionId")
.scriptLocation("scriptLocation")
.build())
.build()))
.nodeReady(List.of(NodeLifecycleScriptProperty.builder()
.arguments(List.of("arguments"))
.executionPolicy("executionPolicy")
.name("name")
.onError("onError")
.scriptSource(ScriptSourceProperty.builder()
.checksum("checksum")
.s3VersionId("s3VersionId")
.scriptLocation("scriptLocation")
.build())
.build()))
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getScriptCachingPolicy
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.
- See Also:
-
getStages
The ordered scripts to run at each compute node lifecycle stage.Returns union: either
IResolvableorCfnComputeNodeGroupPropsMixin.NodeLifecycleStagesProperty- See Also:
-
builder
@Stability(Stable) static CfnComputeNodeGroupPropsMixin.NodeLifecycleActionsProperty.Builder builder()
-