# AcceleratorType

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

EI instances provide on-demand GPU computing for inference

Obtainable from: AcceleratorType.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#L823)

## 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 acceleratorType = new stepfunctions_tasks.AcceleratorType('instanceTypeIdentifier');
```

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_type = stepfunctions_tasks.AcceleratorType("instanceTypeIdentifier")
```

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

AcceleratorType acceleratorType = new AcceleratorType("instanceTypeIdentifier");
```

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 acceleratorType = new AcceleratorType("instanceTypeIdentifier");
```

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"

acceleratorType := awscdk.Aws_stepfunctions_tasks.NewAcceleratorType(jsii.String("instanceTypeIdentifier"))
```

## Initializer

TypeScript:

```ts
new AcceleratorType(instanceTypeIdentifier: string)
```

Python:

```python
AcceleratorType(instance_type_identifier: str)
```

Java:

```java
new AcceleratorType(String instanceTypeIdentifier)
```

C# / .NET:

```csharp
new AcceleratorType(string instanceTypeIdentifier)
```

Golang:

```go
NewAcceleratorType(InstanceTypeIdentifier *string)
```

## Methods

- `of(acceleratorClass: AcceleratorClass, instanceSize: InstanceSize): AcceleratorType // chainable` (static) — AcceleratorType.

  This class takes a combination of a class and size.

- `toString(): string` — Return the accelerator type as a dotted string.
