# ElasticInferenceAcceleratorProperty

> Amazon Elastic Inference is no longer available.

Specifies the Elastic Inference Accelerator for the instance.

`ElasticInferenceAccelerator` is a property of the [AWS::EC2::Instance](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html) resource.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const elasticInferenceAcceleratorProperty: ec2.CfnInstance.ElasticInferenceAcceleratorProperty = {
  type: 'type',

  // the properties below are optional
  count: 123,
};
```

Python:

```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_ec2 as ec2

elastic_inference_accelerator_property = ec2.CfnInstance.ElasticInferenceAcceleratorProperty(
    type="type",

    # the properties below are optional
    count=123
)
```

Java:

```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.ec2.*;

ElasticInferenceAcceleratorProperty elasticInferenceAcceleratorProperty = ElasticInferenceAcceleratorProperty.builder()
        .type("type")

        // the properties below are optional
        .count(123)
        .build();
```

C# / .NET:

```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.EC2;

var elasticInferenceAcceleratorProperty = new ElasticInferenceAcceleratorProperty {
    Type = "type",

    // the properties below are optional
    Count = 123
};
```

Golang:

```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"

elasticInferenceAcceleratorProperty := &ElasticInferenceAcceleratorProperty{
	Type: jsii.String("type"),

	// the properties below are optional
	Count: jsii.Number(123),
}
```

## Properties

- `count`: number — The number of elastic inference accelerators to attach to the instance.

- `type`: string (required) — The type of elastic inference accelerator.

  The possible values are `eia1.medium` , `eia1.large` , `eia1.xlarge` , `eia2.medium` , `eia2.large` , and `eia2.xlarge` .
