interface AcceleratorCountProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EC2.CfnLaunchTemplate.AcceleratorCountProperty |
Java | software.amazon.awscdk.services.ec2.CfnLaunchTemplate.AcceleratorCountProperty |
Python | aws_cdk.aws_ec2.CfnLaunchTemplate.AcceleratorCountProperty |
TypeScript | @aws-cdk/aws-ec2 » CfnLaunchTemplate » AcceleratorCountProperty |
The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as ec2 from '@aws-cdk/aws-ec2';
const acceleratorCountProperty: ec2.CfnLaunchTemplate.AcceleratorCountProperty = {
max: 123,
min: 123,
};
Properties
Name | Type | Description |
---|---|---|
max? | number | The maximum number of accelerators. |
min? | number | The minimum number of accelerators. |
max?
Type:
number
(optional)
The maximum number of accelerators.
To specify no maximum limit, omit this parameter. To exclude accelerator-enabled instance types, set Max
to 0
.
min?
Type:
number
(optional)
The minimum number of accelerators.
To specify no minimum limit, omit this parameter.