# FunctionScalingConfigProperty

Configuration that defines the scaling behavior for a Lambda Managed Instances function, including the minimum and maximum number of execution environments that can be provisioned.

- 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 functionScalingConfigProperty: lambda.CfnVersion.FunctionScalingConfigProperty = {
  maxExecutionEnvironments: 123,
  minExecutionEnvironments: 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_

function_scaling_config_property = lambda.CfnVersion.FunctionScalingConfigProperty(
    max_execution_environments=123,
    min_execution_environments=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.*;

FunctionScalingConfigProperty functionScalingConfigProperty = FunctionScalingConfigProperty.builder()
        .maxExecutionEnvironments(123)
        .minExecutionEnvironments(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 functionScalingConfigProperty = new FunctionScalingConfigProperty {
    MaxExecutionEnvironments = 123,
    MinExecutionEnvironments = 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"

functionScalingConfigProperty := &FunctionScalingConfigProperty{
	MaxExecutionEnvironments: jsii.Number(123),
	MinExecutionEnvironments: jsii.Number(123),
}
```

## Properties

- `maxExecutionEnvironments`: number — The maximum number of execution environments that can be provisioned for the function.

- `minExecutionEnvironments`: number — The minimum number of execution environments to maintain for the function.
