aws-cdk-lib.aws_ec2.CfnSpotFleet.AcceleratorCountRequestProperty

interface AcceleratorCountRequestProperty

LanguageType name
.NETAmazon.CDK.AWS.EC2.CfnSpotFleet.AcceleratorCountRequestProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#CfnSpotFleet_AcceleratorCountRequestProperty
Javasoftware.amazon.awscdk.services.ec2.CfnSpotFleet.AcceleratorCountRequestProperty
Pythonaws_cdk.aws_ec2.CfnSpotFleet.AcceleratorCountRequestProperty
TypeScript aws-cdk-lib » aws_ec2 » CfnSpotFleet » AcceleratorCountRequestProperty

The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.

To exclude accelerator-enabled instance types, set Max to 0 .

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const acceleratorCountRequestProperty: ec2.CfnSpotFleet.AcceleratorCountRequestProperty = {
  max: 123,
  min: 123,
};

Properties

NameTypeDescription
max?numberThe maximum number of accelerators.
min?numberThe 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.