Skip to content
v2.277.0

AppSyncRuntimeProperty Struct ​

Describes a runtime used by an AWS AppSync resolver or AWS AppSync function.

Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const appSyncRuntimeProperty: appsync.CfnFunctionConfiguration.AppSyncRuntimeProperty = {
  name: 'name',
  runtimeVersion: 'runtimeVersion',
};
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_appsync as appsync

app_sync_runtime_property = appsync.CfnFunctionConfiguration.AppSyncRuntimeProperty(
    name="name",
    runtime_version="runtimeVersion"
)
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.appsync.*;

AppSyncRuntimeProperty appSyncRuntimeProperty = AppSyncRuntimeProperty.builder()
        .name("name")
        .runtimeVersion("runtimeVersion")
        .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.AppSync;

var appSyncRuntimeProperty = new AppSyncRuntimeProperty {
    Name = "name",
    RuntimeVersion = "runtimeVersion"
};
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"

appSyncRuntimeProperty := &AppSyncRuntimeProperty{
	Name: jsii.String("name"),
	RuntimeVersion: jsii.String("runtimeVersion"),
}

Properties ​

namestringnamestrnameStringNamestringName*stringrequired#
The `name` of the runtime to use.

Currently, the only allowed value is APPSYNC_JS .

runtimeVersionstringruntime_versionstrruntimeVersionStringRuntimeVersionstringRuntimeVersion*stringrequired#
The `version` of the runtime to use.

Currently, the only allowed version is 1.0.0 .