Interface CfnComputeNodeGroupProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnComputeNodeGroupProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-08-13T16:20:10.602Z") @Stability(Stable) public interface CfnComputeNodeGroupProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnComputeNodeGroup.

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.*;
 CfnComputeNodeGroupProps cfnComputeNodeGroupProps = CfnComputeNodeGroupProps.builder()
         .clusterId("clusterId")
         .customLaunchTemplate(CustomLaunchTemplateProperty.builder()
                 .version("version")
                 // the properties below are optional
                 .templateId("templateId")
                 .build())
         .iamInstanceProfileArn("iamInstanceProfileArn")
         .instanceConfigs(List.of(InstanceConfigProperty.builder()
                 .instanceType("instanceType")
                 .build()))
         .scalingConfiguration(ScalingConfigurationProperty.builder()
                 .maxInstanceCount(123)
                 .minInstanceCount(123)
                 .build())
         .subnetIds(List.of("subnetIds"))
         // the properties below are optional
         .amiId("amiId")
         .name("name")
         .nodeLifecycleActions(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())
         .purchaseOption("purchaseOption")
         .slurmConfiguration(SlurmConfigurationProperty.builder()
                 .scaleDownIdleTimeInSeconds(123)
                 .slurmCustomSettings(List.of(SlurmCustomSettingProperty.builder()
                         .parameterName("parameterName")
                         .parameterValue("parameterValue")
                         .build()))
                 .build())
         .spotOptions(SpotOptionsProperty.builder()
                 .allocationStrategy("allocationStrategy")
                 .build())
         .tags(Map.of(
                 "tagsKey", "tags"))
         .build();
 

See Also: