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: