# CapacityProviderConfigProperty

Configuration for the capacity provider that manages compute resources for Lambda functions.

- Source: Generated at build time
- Type last changed: v2.231.0 · 1 Dec 2025

## 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 capacityProviderConfigProperty: lambda.CfnFunction.CapacityProviderConfigProperty = {
  lambdaManagedInstancesCapacityProviderConfig: {
    capacityProviderArn: 'capacityProviderArn',

    // the properties below are optional
    executionEnvironmentMemoryGiBPerVCpu: 123,
    perExecutionEnvironmentMaxConcurrency: 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_

capacity_provider_config_property = lambda.CfnFunction.CapacityProviderConfigProperty(
    lambda_managed_instances_capacity_provider_config=lambda.CfnFunction.LambdaManagedInstancesCapacityProviderConfigProperty(
        capacity_provider_arn="capacityProviderArn",

        # the properties below are optional
        execution_environment_memory_gi_b_per_v_cpu=123,
        per_execution_environment_max_concurrency=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.*;

CapacityProviderConfigProperty capacityProviderConfigProperty = CapacityProviderConfigProperty.builder()
        .lambdaManagedInstancesCapacityProviderConfig(LambdaManagedInstancesCapacityProviderConfigProperty.builder()
                .capacityProviderArn("capacityProviderArn")

                // the properties below are optional
                .executionEnvironmentMemoryGiBPerVCpu(123)
                .perExecutionEnvironmentMaxConcurrency(123)
                .build())
        .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 capacityProviderConfigProperty = new CapacityProviderConfigProperty {
    LambdaManagedInstancesCapacityProviderConfig = new LambdaManagedInstancesCapacityProviderConfigProperty {
        CapacityProviderArn = "capacityProviderArn",

        // the properties below are optional
        ExecutionEnvironmentMemoryGiBPerVCpu = 123,
        PerExecutionEnvironmentMaxConcurrency = 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"

capacityProviderConfigProperty := &CapacityProviderConfigProperty{
	LambdaManagedInstancesCapacityProviderConfig: &LambdaManagedInstancesCapacityProviderConfigProperty{
		CapacityProviderArn: jsii.String("capacityProviderArn"),

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

## Properties

- `lambdaManagedInstancesCapacityProviderConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFunction.LambdaManagedInstancesCapacityProviderConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.CfnFunction.LambdaManagedInstancesCapacityProviderConfigProperty.html) (required) — Configuration for Lambda-managed instances used by the capacity provider.
