# TenancyConfigProperty

Specifies the tenant isolation mode configuration for a Lambda function.

This allows you to configure specific tenant isolation strategies for your function invocations. Tenant isolation configuration cannot be modified after function creation.

- Source: Generated at build time
- Type last changed: v2.226.0 · 20 Nov 2025

## Example

TypeScript:

```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 tenancyConfigProperty: lambda.CfnFunction.TenancyConfigProperty = {
  tenantIsolationMode: 'tenantIsolationMode',
};
```

Python:

```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_

tenancy_config_property = lambda.CfnFunction.TenancyConfigProperty(
    tenant_isolation_mode="tenantIsolationMode"
)
```

Java:

```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.*;

TenancyConfigProperty tenancyConfigProperty = TenancyConfigProperty.builder()
        .tenantIsolationMode("tenantIsolationMode")
        .build();
```

C# / .NET:

```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 tenancyConfigProperty = new TenancyConfigProperty {
    TenantIsolationMode = "tenantIsolationMode"
};
```

Golang:

```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"

tenancyConfigProperty := &TenancyConfigProperty{
	TenantIsolationMode: jsii.String("tenantIsolationMode"),
}
```

## Properties

- `tenantIsolationMode`: string (required) — Tenant isolation mode allows for invocation to be sent to a corresponding execution environment dedicated to a specific tenant ID.
