# AcceleratorConfigProperty

- Source: Generated at build time
- Type last changed: v2.278.0 · 20 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const acceleratorConfigProperty: lambda.CfnFunction.AcceleratorConfigProperty = {
  acceleratorMemorySize: 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_lambda as lambda_

accelerator_config_property = lambda.CfnFunction.AcceleratorConfigProperty(
    accelerator_memory_size=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.lambda.*;

AcceleratorConfigProperty acceleratorConfigProperty = AcceleratorConfigProperty.builder()
        .acceleratorMemorySize(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.Lambda;

var acceleratorConfigProperty = new AcceleratorConfigProperty {
    AcceleratorMemorySize = 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"

acceleratorConfigProperty := &AcceleratorConfigProperty{
	AcceleratorMemorySize: jsii.Number(123),
}
```

## Properties

- `acceleratorMemorySize`: number (required) — The minimum amount of memory (in GB) of each accelerator device exposed to the execution environment.

  Lambda might allocate more, depending on the accelerator instance types available. Valid values: 3, 6, 12, 16, 24, 48.
