Skip to content
v2.276.0

LambdaManagedInstancesCapacityProviderConfigProperty Struct ​

Configuration for Lambda-managed instances used by the capacity provider.

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 lambdaManagedInstancesCapacityProviderConfigProperty: lambda.CfnFunction.LambdaManagedInstancesCapacityProviderConfigProperty = {
  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_

lambda_managed_instances_capacity_provider_config_property = 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.*;

LambdaManagedInstancesCapacityProviderConfigProperty lambdaManagedInstancesCapacityProviderConfigProperty = LambdaManagedInstancesCapacityProviderConfigProperty.builder()
        .capacityProviderArn("capacityProviderArn")

        // the properties below are optional
        .executionEnvironmentMemoryGiBPerVCpu(123)
        .perExecutionEnvironmentMaxConcurrency(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 lambdaManagedInstancesCapacityProviderConfigProperty = 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"

lambdaManagedInstancesCapacityProviderConfigProperty := &LambdaManagedInstancesCapacityProviderConfigProperty{
	CapacityProviderArn: jsii.String("capacityProviderArn"),

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

Properties ​

capacityProviderArnstringcapacity_provider_arnstrcapacityProviderArnStringCapacityProviderArnstringCapacityProviderArn*stringrequired#
The Amazon Resource Name (ARN) of the capacity provider.
executionEnvironmentMemoryGiBPerVCpuoptionalnumberexecution_environment_memory_gi_b_per_v_cpuoptionalint | floatexecutionEnvironmentMemoryGiBPerVCpuoptionalNumberExecutionEnvironmentMemoryGiBPerVCpuoptionaldoubleExecutionEnvironmentMemoryGiBPerVCpuoptional*float64#
The amount of memory in GiB allocated per vCPU for execution environments.
perExecutionEnvironmentMaxConcurrencyoptionalnumberper_execution_environment_max_concurrencyoptionalint | floatperExecutionEnvironmentMaxConcurrencyoptionalNumberPerExecutionEnvironmentMaxConcurrencyoptionaldoublePerExecutionEnvironmentMaxConcurrencyoptional*float64#
The maximum number of concurrent executions that can run on each execution environment.