TenancyConfig Class
Specify the tenant isolation mode for Lambda functions.
This is incompatible with:
- SnapStart
- Provisioned Concurrency
- Function URLs
- Most Event sources (only API Gateway is supported)
Example
ts
const fn = new lambda.Function(this, 'MyFunction', {
runtime: lambda.Runtime.NODEJS_LATEST,
handler: 'index.handler',
code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),
tenancyConfig: lambda.TenancyConfig.PER_TENANT,
});
Properties
PER_TENANTTenancyConfigper_tenantTenancyConfigPER_TENANTTenancyConfigPER_TENANTTenancyConfigPER_TENANTTenancyConfigstatic#Each tenant gets a dedicated execution environment.
Execution environments are not shared between different tenants, but can be reused for the same tenant to avoid cold starts.
tenancyConfigPropertyCfnFunction.TenancyConfigPropertytenancy_config_propertyTenancyConfigPropertytenancyConfigPropertyTenancyConfigPropertyTenancyConfigPropertyTenancyConfigPropertyTenancyConfigPropertyTenancyConfigProperty#The CloudFormation property for tenancy configuration.