Interface CfnComputeNodeGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnComputeNodeGroupProps.Jsii$Proxy
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")
.purchaseOption("purchaseOption")
.slurmConfiguration(SlurmConfigurationProperty.builder()
.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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnComputeNodeGroupPropsstatic final classAn implementation forCfnComputeNodeGroupProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringgetAmiId()The ID of the Amazon Machine Image (AMI) that AWS PCS uses to launch instances.The ID of the cluster of the compute node group.An Amazon EC2 launch template AWS PCS uses to launch compute nodes.The Amazon Resource Name (ARN) of the IAM instance profile used to pass an IAM role when launching EC2 instances.A 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.Specifies 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
-
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.- 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.- See Also:
-
getScalingConfiguration
Specifies the boundaries of the compute node group auto scaling.- 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:
-
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:
-
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:
-
getSlurmConfiguration
Additional options related to the Slurm scheduler.- See Also:
-
getSpotOptions
Additional configuration when you specifySPOTas thepurchaseOptionfor theCreateComputeNodeGroupAPI action.- 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
- Returns:
- a
CfnComputeNodeGroupProps.BuilderofCfnComputeNodeGroupProps
-