An AppSync datasource backed by a Lambda function.
import { AppSyncLambdaDataSource } from 'aws-cdk-lib/aws-appsync';Or use the module namespace:
import * as appsync from 'aws-cdk-lib/aws-appsync';
// appsync.AppSyncLambdaDataSourceConfiguration passed to the constructor as AppSyncLambdaDataSourceProps.
lambdaFunctionRequiredIFunctionThe Lambda function to call to interact with this data source.
AppSyncBackedDataSourcePropsserviceRoleOptionalinherited from AppSyncBackedDataSourcePropsIRoleThe IAM service role to be assumed by AppSync to interact with the data source.
Default: - Create a new role
AppSyncBaseDataSourcePropsapiRequiredinherited from AppSyncBaseDataSourcePropsIApiRefThe API to attach this data source to.
descriptionOptionalinherited from AppSyncBaseDataSourcePropsstringThe description of the data source.
Default: - None
nameOptionalinherited from AppSyncBaseDataSourcePropsstringThe name of the data source. The only allowed pattern is: {[_A-Za-z][_0-9A-Za-z]*}. Any invalid characters will be automatically removed.
Default: - id of data source
Everything you need to know about AWS AppSync on one page. HD quality, print-friendly.
Download Free Infographicaws-appsync