Class CfnComputeNodeGroupPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.pcs.CfnComputeNodeGroupPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:02.231Z")
@Stability(Stable)
public class CfnComputeNodeGroupPropsMixin
extends Mixin
implements software.constructs.IMixin
Creates an AWS PCS compute node group resource.
For more information, see Creating a compute node group in AWS PCS in the AWS PCS User Guide .
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.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnComputeNodeGroupPropsMixin cfnComputeNodeGroupPropsMixin = CfnComputeNodeGroupPropsMixin.Builder.create(CfnComputeNodeGroupMixinProps.builder()
.amiId("amiId")
.clusterId("clusterId")
.customLaunchTemplate(CustomLaunchTemplateProperty.builder()
.templateId("templateId")
.version("version")
.build())
.iamInstanceProfileArn("iamInstanceProfileArn")
.instanceConfigs(List.of(InstanceConfigProperty.builder()
.instanceType("instanceType")
.build()))
.name("name")
.purchaseOption("purchaseOption")
.scalingConfiguration(ScalingConfigurationProperty.builder()
.maxInstanceCount(123)
.minInstanceCount(123)
.build())
.slurmConfiguration(SlurmConfigurationProperty.builder()
.slurmCustomSettings(List.of(SlurmCustomSettingProperty.builder()
.parameterName("parameterName")
.parameterValue("parameterValue")
.build()))
.build())
.spotOptions(SpotOptionsProperty.builder()
.allocationStrategy("allocationStrategy")
.build())
.subnetIds(List.of("subnetIds"))
.tags(Map.of(
"tagsKey", "tags"))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnComputeNodeGroupPropsMixin.static interfaceAn Amazon EC2 launch template AWS PCS uses to launch compute nodes.static interfaceAn error that occurred during resource creation.static interfaceAn EC2 instance configuration AWS PCS uses to launch compute nodes.static interfaceSpecifies the boundaries of the compute node group auto scaling.static interfaceAdditional options related to the Slurm scheduler.static interfaceAdditional settings that directly map to Slurm settings.static interfaceAdditional configuration when you specifySPOTas thepurchaseOptionfor theCreateComputeNodeGroupAPI action.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::PCS::ComputeNodeGroup.Create a mixin to apply properties toAWS::PCS::ComputeNodeGroup.protectedCfnComputeNodeGroupPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnComputeNodeGroupPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnComputeNodeGroupMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnComputeNodeGroupPropsMixin
protected CfnComputeNodeGroupPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnComputeNodeGroupPropsMixin
protected CfnComputeNodeGroupPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnComputeNodeGroupPropsMixin
@Stability(Stable) public CfnComputeNodeGroupPropsMixin(@NotNull CfnComputeNodeGroupMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::PCS::ComputeNodeGroup.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnComputeNodeGroupPropsMixin
@Stability(Stable) public CfnComputeNodeGroupPropsMixin(@NotNull CfnComputeNodeGroupMixinProps props) Create a mixin to apply properties toAWS::PCS::ComputeNodeGroup.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-