aws-cdk-lib.aws_stepfunctions_tasks.AcceleratorType

class AcceleratorType

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.AcceleratorType
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#AcceleratorType
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.AcceleratorType
Pythonaws_cdk.aws_stepfunctions_tasks.AcceleratorType
TypeScript (source)aws-cdk-lib » aws_stepfunctions_tasks » AcceleratorType

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

EI instances provide on-demand GPU computing for inference

See also: https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html

Example

// 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');

Initializer

new AcceleratorType(instanceTypeIdentifier: string)

Parameters

  • instanceTypeIdentifier string

Methods

NameDescription
toString()Return the accelerator type as a dotted string.
static of(acceleratorClass, instanceSize)AcceleratorType.

toString()

public toString(): string

Returns

  • string

Return the accelerator type as a dotted string.


static of(acceleratorClass, instanceSize)

public static of(acceleratorClass: AcceleratorClass, instanceSize: InstanceSize): AcceleratorType

Parameters

  • acceleratorClass AcceleratorClass
  • instanceSize InstanceSize

Returns

  • AcceleratorType

AcceleratorType.

This class takes a combination of a class and size.