AppSync Functions are local functions that perform certain operations onto a backend data source. Developers can compose operations (Functions) and execute them in sequence with Pipeline Resolvers.
import { AppsyncFunction } from 'aws-cdk-lib/aws-appsync';Or use the module namespace:
import * as appsync from 'aws-cdk-lib/aws-appsync';
// appsync.AppsyncFunctionConfiguration passed to the constructor as AppsyncFunctionProps.
apiRequiredIGraphqlApithe GraphQL Api linked to this AppSync Function.
dataSourceRequiredBaseDataSourcethe data source linked to this AppSync Function.
BaseAppsyncFunctionPropsnameRequiredinherited from BaseAppsyncFunctionPropsstringthe name of the AppSync Function.
codeOptionalinherited from BaseAppsyncFunctionPropsCodeThe function code.
Default: - no code is used
descriptionOptionalinherited from BaseAppsyncFunctionPropsstringthe description for this AppSync Function.
Default: - no description
maxBatchSizeOptionalinherited from BaseAppsyncFunctionPropsnumberThe maximum number of resolver request inputs that will be sent to a single AWS Lambda function in a BatchInvoke operation. Can only be set when using LambdaDataSource.
Default: - No max batch size
requestMappingTemplateOptionalinherited from BaseAppsyncFunctionPropsMappingTemplatethe request mapping template for the AppSync Function.
Default: - no request mapping template
responseMappingTemplateOptionalinherited from BaseAppsyncFunctionPropsMappingTemplatethe response mapping template for the AppSync Function.
Default: - no response mapping template
runtimeOptionalinherited from BaseAppsyncFunctionPropsFunctionRuntimeThe functions runtime.
Default: - no function runtime, VTL mapping templates used
Everything you need to know about AWS AppSync on one page. HD quality, print-friendly.
Download Free Infographicaws-appsync