An AppSync datasource backed by a DynamoDB table.
import { DynamoDbDataSource } from 'aws-cdk-lib/aws-appsync';Or use the module namespace:
import * as appsync from 'aws-cdk-lib/aws-appsync';
// appsync.DynamoDbDataSourceConfiguration passed to the constructor as DynamoDbDataSourceProps.
tableRequiredITableThe DynamoDB table backing this data source.
readOnlyAccessOptionalbooleanSpecify whether this DS is read only or has read and write permissions to the DynamoDB table.
Default: false
useCallerCredentialsOptionalbooleanuse credentials of caller to access DynamoDB.
Default: false
BackedDataSourcePropsserviceRoleOptionalinherited from BackedDataSourcePropsIRoleThe IAM service role to be assumed by AppSync to interact with the data source.
Default: - Create a new role
BaseDataSourcePropsapiRequiredinherited from BaseDataSourcePropsIGraphQLApiRefThe API to attach this data source to.
descriptionOptionalinherited from BaseDataSourcePropsstringthe description of the data source.
Default: - None
metricsConfigOptionalinherited from BaseDataSourcePropsDataSourceMetricsConfigWhether to enable enhanced metrics of the data source Value will be ignored, if `enhancedMetricsConfig.dataSourceLevelMetricsBehavior` on AppSync GraphqlApi construct is set to `FULL_REQUEST_DATA_SOURCE_METRICS`.
Default: - no metrics configuration
nameOptionalinherited from BaseDataSourcePropsstringThe name of the data source.
Default: - id of data source
Everything you need to know about AWS AppSync on one page. HD quality, print-friendly.
Download Free Infographicaws-appsync