Skip to content
v2.275.0

InferenceAccelerator Struct ​

Elastic Inference Accelerator.

For more information, see Elastic Inference Basics

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 inferenceAccelerator: ecs.InferenceAccelerator = {
  deviceName: 'deviceName',
  deviceType: 'deviceType',
};

Properties ​

deviceNameoptionalstringdevice_nameoptionalstrdeviceNameoptionalStringDeviceNameoptionalstringDeviceNameoptional*string= empty#
The Elastic Inference accelerator device name.
deviceTypeoptionalstringdevice_typeoptionalstrdeviceTypeoptionalStringDeviceTypeoptionalstringDeviceTypeoptional*string= empty#
The Elastic Inference accelerator type to use.

The allowed values are: eia2.medium, eia2.large and eia2.xlarge.