# InferenceAccelerator

Elastic Inference Accelerator.

For more information, see [Elastic Inference Basics](https://docs.aws.amazon.com/elastic-inference/latest/developerguide/basics.html)

- Source: [`aws-ecs/lib/base/task-definition.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-ecs/lib/base/task-definition.ts#L1114)

## 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

- `deviceName`: string = empty — The Elastic Inference accelerator device name.

- `deviceType`: string = empty — The Elastic Inference accelerator type to use.

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