# AcceleratorClass

The generation of Elastic Inference (EI) instance.

Obtainable from: AcceleratorClass.EIA1, AcceleratorClass.EIA2, AcceleratorClass.of
Used as argument in: [AcceleratorType.of](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.AcceleratorType.html#of)

- Source: [`aws-stepfunctions-tasks/lib/sagemaker/base-types.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/sagemaker/base-types.ts#L797)

## Example

TypeScript:

```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 acceleratorClass = stepfunctions_tasks.AcceleratorClass.of('version');
```

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_stepfunctions_tasks as stepfunctions_tasks

accelerator_class = stepfunctions_tasks.AcceleratorClass.of("version")
```

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.stepfunctions.tasks.*;

AcceleratorClass acceleratorClass = AcceleratorClass.of("version");
```

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.StepFunctions.Tasks;

var acceleratorClass = AcceleratorClass.Of("version");
```

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"

acceleratorClass := awscdk.Aws_stepfunctions_tasks.AcceleratorClass_Of(jsii.String("version"))
```

## Properties

- `EIA1`: [AcceleratorClass](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.AcceleratorClass.html) (static) — Elastic Inference accelerator 1st generation.

- `EIA2`: [AcceleratorClass](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_stepfunctions_tasks.AcceleratorClass.html) (static) — Elastic Inference accelerator 2nd generation.

- `version`: string — - Elastic Inference accelerator generation.

## Methods

- `of(version: string): AcceleratorClass // chainable` (static) — Custom AcceleratorType.

  **Parameters**

  - `version` — - Elastic Inference accelerator generation.
