Skip to content
v2.275.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',
};

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 .