Skip to content
v2.278.0

CompatibilityProperty Struct Added in v2.278.0 ​

Compatibility matrix for the runtime version: supported integration models, architectures, and feature policies.

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 compatibilityProperty: lambda.CfnRuntimeVersion.CompatibilityProperty = {
  architectures: ['architectures'],
  integrationModels: ['integrationModels'],
  managedInstances: 'managedInstances',
};
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_

compatibility_property = lambda.CfnRuntimeVersion.CompatibilityProperty(
    architectures=["architectures"],
    integration_models=["integrationModels"],
    managed_instances="managedInstances"
)
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.*;

CompatibilityProperty compatibilityProperty = CompatibilityProperty.builder()
        .architectures(List.of("architectures"))
        .integrationModels(List.of("integrationModels"))
        .managedInstances("managedInstances")
        .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 compatibilityProperty = new CompatibilityProperty {
    Architectures = new [] { "architectures" },
    IntegrationModels = new [] { "integrationModels" },
    ManagedInstances = "managedInstances"
};
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"

compatibilityProperty := &CompatibilityProperty{
	Architectures: []*string{
		jsii.String("architectures"),
	},
	IntegrationModels: []*string{
		jsii.String("integrationModels"),
	},
	ManagedInstances: jsii.String("managedInstances"),
}

Properties ​

architecturesoptionalstring[]architecturesoptionaltyping.List[str]architecturesoptionalList<String>Architecturesoptionalstring[]Architecturesoptional*[]*string #
Supported CPU architectures for the runtime version.
integrationModelsoptionalstring[]integration_modelsoptionaltyping.List[str]integrationModelsoptionalList<String>IntegrationModelsoptionalstring[]IntegrationModelsoptional*[]*string #
Supported integration models for the runtime version.
managedInstancesoptionalstringmanaged_instancesoptionalstrmanagedInstancesoptionalStringManagedInstancesoptionalstringManagedInstancesoptional*string #
Whether the runtime version supports managed instances.