An AppSync datasource backed by a DynamoDB table.
import { AppSyncDynamoDbDataSource } from 'aws-cdk-lib/aws-appsync';Or use the module namespace:
import * as appsync from 'aws-cdk-lib/aws-appsync';
// appsync.AppSyncDynamoDbDataSourceConfiguration passed to the constructor as AppSyncDynamoDbDataSourceProps.
tableRequiredITableThe DynamoDB table backing this data source.
readOnlyAccessOptionalbooleanSpecify whether this Data Source is read only or has read and write permissions to the DynamoDB table.
Default: false
useCallerCredentialsOptionalbooleanUse credentials of caller to access DynamoDB.
Default: false
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