Skip to content
v2.278.0

AcceleratorCountRequestProperty Struct ​

The minimum and maximum number of accelerators (such as GPUs) for instance type selection.

This is used for workloads that require specific numbers of accelerators.

Example ​

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

accelerator_count_request_property = ecs.CfnCapacityProvider.AcceleratorCountRequestProperty(
    max=123,
    min=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;

AcceleratorCountRequestProperty acceleratorCountRequestProperty = AcceleratorCountRequestProperty.builder()
        .max(123)
        .min(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;

var acceleratorCountRequestProperty = new AcceleratorCountRequestProperty {
    Max = 123,
    Min = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

acceleratorCountRequestProperty := &AcceleratorCountRequestProperty{
	Max: jsii.Number(123),
	Min: jsii.Number(123),
}

Properties ​

maxoptionalnumbermaxoptionalint | floatmaxoptionalNumberMaxoptionaldoubleMaxoptional*float64 #
The maximum number of accelerators.

Instance types with more accelerators are excluded from selection.

minoptionalnumberminoptionalint | floatminoptionalNumberMinoptionaldoubleMinoptional*float64 #
The minimum number of accelerators.

Instance types with fewer accelerators are excluded from selection.