AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Lambda::CapacityProvider

CfnCapacityProvider

Creates a capacity provider that manages compute resources for Lambda functions.

Import

import { CfnCapacityProvider } from 'aws-cdk-lib/aws-lambda';

Or use the module namespace:

import * as lambda from 'aws-cdk-lib/aws-lambda';
// lambda.CfnCapacityProvider

Properties

Configuration passed to the constructor as CfnCapacityProviderProps.

permissionsConfigRequired
IResolvable | CapacityProviderPermissionsConfigProperty

The permissions configuration for the capacity provider.

vpcConfigRequired
IResolvable | CapacityProviderVpcConfigProperty

The VPC configuration for the capacity provider.

capacityProviderNameOptional
string
capacityProviderScalingConfigOptional
IResolvable | CapacityProviderScalingConfigProperty

The scaling configuration for the capacity provider.

instanceRequirementsOptional
IResolvable | InstanceRequirementsProperty

The instance requirements for compute resources managed by the capacity provider.

kmsKeyArnOptional
string

The ARN of the KMS key used to encrypt the capacity provider's resources.

tagsOptional
CfnTag[]

A key-value pair that provides metadata for the capacity provider.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the AWS Lambda Cheat Sheet

Everything you need to know about AWS Lambda on one page. HD quality, print-friendly.

Download Free Infographic