FunctionScalingConfigProperty Struct
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.
Example
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
# 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
// 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();
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
};
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
maxExecutionEnvironmentsoptionalnumbermax_execution_environmentsoptionalint | floatmaxExecutionEnvironmentsoptionalNumberMaxExecutionEnvironmentsoptionaldoubleMaxExecutionEnvironmentsoptional*float64#The maximum number of execution environments that can be provisioned for the function.
minExecutionEnvironmentsoptionalnumbermin_execution_environmentsoptionalint | floatminExecutionEnvironmentsoptionalNumberMinExecutionEnvironmentsoptionaldoubleMinExecutionEnvironmentsoptional*float64#The minimum number of execution environments to maintain for the function.