Interface CfnComputeNodeGroup.NodeLifecycleActionsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnComputeNodeGroup.NodeLifecycleActionsProperty.Jsii$Proxy
- Enclosing class:
CfnComputeNodeGroup
@Stability(Stable)
public static interface CfnComputeNodeGroup.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.services.pcs.*;
NodeLifecycleActionsProperty nodeLifecycleActionsProperty = NodeLifecycleActionsProperty.builder()
.stages(NodeLifecycleStagesProperty.builder()
.nodeBootstrapped(List.of(NodeLifecycleScriptProperty.builder()
.name("name")
.scriptSource(ScriptSourceProperty.builder()
.scriptLocation("scriptLocation")
// the properties below are optional
.checksum("checksum")
.s3VersionId("s3VersionId")
.build())
// the properties below are optional
.arguments(List.of("arguments"))
.executionPolicy("executionPolicy")
.onError("onError")
.build()))
.nodeReady(List.of(NodeLifecycleScriptProperty.builder()
.name("name")
.scriptSource(ScriptSourceProperty.builder()
.scriptLocation("scriptLocation")
// the properties below are optional
.checksum("checksum")
.s3VersionId("s3VersionId")
.build())
// the properties below are optional
.arguments(List.of("arguments"))
.executionPolicy("executionPolicy")
.onError("onError")
.build()))
.build())
// the properties below are optional
.scriptCachingPolicy("scriptCachingPolicy")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnComputeNodeGroup.NodeLifecycleActionsPropertystatic final classAn implementation forCfnComputeNodeGroup.NodeLifecycleActionsProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStages
The ordered scripts to run at each compute node lifecycle stage.Returns union: either
IResolvableorCfnComputeNodeGroup.NodeLifecycleStagesProperty- See Also:
-
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:
-
builder
-