Skip to content
v2.276.0

CapacityProviderConfigProperty Struct ​

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

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

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

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
// 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();
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
    }
};
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 ​

lambdaManagedInstancesCapacityProviderConfigIResolvable | CfnFunction.LambdaManagedInstancesCapacityProviderConfigPropertylambda_managed_instances_capacity_provider_configtyping.Union[IResolvable, LambdaManagedInstancesCapacityProviderConfigProperty]lambdaManagedInstancesCapacityProviderConfigIResolvableLambdaManagedInstancesCapacityProviderConfigIResolvableLambdaManagedInstancesCapacityProviderConfiginterface{}required#
Configuration for Lambda-managed instances used by the capacity provider.