Skip to content
v2.275.0

AcceleratorType Class ​

The size of the Elastic Inference (EI) instance to use for the production variant.

EI instances provide on-demand GPU computing for inference

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const acceleratorType = new stepfunctions_tasks.AcceleratorType('instanceTypeIdentifier');
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_stepfunctions_tasks as stepfunctions_tasks

accelerator_type = stepfunctions_tasks.AcceleratorType("instanceTypeIdentifier")
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.stepfunctions.tasks.*;

AcceleratorType acceleratorType = new AcceleratorType("instanceTypeIdentifier");
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.StepFunctions.Tasks;

var acceleratorType = new AcceleratorType("instanceTypeIdentifier");
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"

acceleratorType := awscdk.Aws_stepfunctions_tasks.NewAcceleratorType(jsii.String("instanceTypeIdentifier"))

Initializer ​

ts
new AcceleratorType(instanceTypeIdentifier: string)
python
AcceleratorType(instance_type_identifier: str)
java
new AcceleratorType(String instanceTypeIdentifier)
csharp
new AcceleratorType(string instanceTypeIdentifier)
go
NewAcceleratorType(InstanceTypeIdentifier *string)

Methods ​

of(acceleratorClass: AcceleratorClass, instanceSize: InstanceSize): AcceleratorType // chainable@staticmethod def of(accelerator_class: AcceleratorClass, instance_size: InstanceSize) -> AcceleratorTypepublic static AcceleratorType of(AcceleratorClass acceleratorClass, InstanceSize instanceSize)public static AcceleratorType Of(AcceleratorClass acceleratorClass, InstanceSize instanceSize)func Of(AcceleratorClass AcceleratorClass, InstanceSize InstanceSize) AcceleratorTypestatic#
AcceleratorType.

This class takes a combination of a class and size.

toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#
Return the accelerator type as a dotted string.