Interface CfnComputeNodeGroupMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnComputeNodeGroupMixinProps.Jsii$Proxy
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.*;
CfnComputeNodeGroupMixinProps cfnComputeNodeGroupMixinProps = 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnComputeNodeGroupMixinPropsstatic final classAn implementation forCfnComputeNodeGroupMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringgetAmiId()The ID of the Amazon Machine Image (AMI) that AWS PCS uses to launch instances.default StringThe ID of the cluster of the compute node group.default ObjectAn Amazon EC2 launch template AWS PCS uses to launch compute nodes.default StringThe Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances.default ObjectA list of EC2 instance configurations that AWS PCS can provision in the compute node group.default StringgetName()The name that identifies the compute node group.default StringSpecifies how EC2 instances are purchased on your behalf.default ObjectSpecifies the boundaries of the compute node group auto scaling.default ObjectAdditional options related to the Slurm scheduler.default ObjectAdditional configuration when you specifySPOTas thepurchaseOptionfor theCreateComputeNodeGroupAPI action.The list of subnet IDs where instances are provisioned by the compute node group.getTags()1 or more tags added to the resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAmiId
The ID of the Amazon Machine Image (AMI) that AWS PCS uses to launch instances.If not provided, AWS PCS uses the AMI ID specified in the custom launch template.
- See Also:
-
getClusterId
The ID of the cluster of the compute node group.- See Also:
-
getCustomLaunchTemplate
An Amazon EC2 launch template AWS PCS uses to launch compute nodes.Returns union: either
IResolvableorCfnComputeNodeGroupPropsMixin.CustomLaunchTemplateProperty- See Also:
-
getIamInstanceProfileArn
The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances.The role contained in your instance profile must have the
pcs:RegisterComputeNodeGroupInstancepermission and the role name must start withAWSPCSor must have the path/aws-pcs/. For more information, see IAM instance profiles for AWS PCS in the AWS PCS User Guide .- See Also:
-
getInstanceConfigs
A list of EC2 instance configurations that AWS PCS can provision in the compute node group.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnComputeNodeGroupPropsMixin.InstanceConfigProperty>- See Also:
-
getName
The name that identifies the compute node group.- See Also:
-
getPurchaseOption
Specifies how EC2 instances are purchased on your behalf.AWS PCS supports On-Demand Instances, Spot Instances, and Amazon EC2 Capacity Blocks for ML. For more information, see Amazon EC2 billing and purchasing options in the Amazon Elastic Compute Cloud User Guide . For more information about AWS PCS support for Capacity Blocks, see Using Amazon EC2 Capacity Blocks for ML with AWS PCS in the AWS PCS User Guide . If you don't provide this option, it defaults to On-Demand.
- See Also:
-
getScalingConfiguration
Specifies the boundaries of the compute node group auto scaling.Returns union: either
IResolvableorCfnComputeNodeGroupPropsMixin.ScalingConfigurationProperty- See Also:
-
getSlurmConfiguration
Additional options related to the Slurm scheduler.Returns union: either
IResolvableorCfnComputeNodeGroupPropsMixin.SlurmConfigurationProperty- See Also:
-
getSpotOptions
Additional configuration when you specifySPOTas thepurchaseOptionfor theCreateComputeNodeGroupAPI action.Returns union: either
IResolvableorCfnComputeNodeGroupPropsMixin.SpotOptionsProperty- See Also:
-
getSubnetIds
The list of subnet IDs where instances are provisioned by the compute node group.The subnets must be in the same VPC as the cluster.
- See Also:
-
getTags
1 or more tags added to the resource.Each tag consists of a tag key and tag value. The tag value is optional and can be an empty string.
- See Also:
-
builder
-