An AppSync datasource backed by RDS.
import { AppSyncRdsDataSource } from 'aws-cdk-lib/aws-appsync';Or use the module namespace:
import * as appsync from 'aws-cdk-lib/aws-appsync';
// appsync.AppSyncRdsDataSourceConfiguration passed to the constructor as AppSyncRdsDataSourceProps.
secretStoreRequiredISecretThe secret containing the credentials for the database.
serverlessClusterRequiredIServerlessClusterThe serverless cluster to call to interact with this data source.
databaseNameOptionalstringThe name of the database to use within the cluster.
Default: - None
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