AppSync Data Source

An AppSync Data Source in AWS represents the backend system that an AppSync GraphQL API connects to for retrieving or modifying data. It can link to services such as DynamoDB, Lambda, RDS, OpenSearch, or HTTP endpoints. Each data source defines how AppSync should interact with the underlying service, enabling flexible and secure integration of multiple backends into a single GraphQL API.

aws.appsync_data_source

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
data_source_arncorestringThe data source Amazon Resource Name (ARN).
descriptioncorestringThe description of the data source.
dynamodb_configcorejsonDynamoDB settings.
elasticsearch_configcorejsonAmazon OpenSearch Service settings.
event_bridge_configcorejsonAmazon EventBridge settings.
http_configcorejsonHTTP endpoint settings.
lambda_configcorejsonLambda settings.
metrics_configcorestringEnables or disables enhanced data source metrics for specified data sources. Note that metricsConfig won't be used unless the dataSourceLevelMetricsBehavior value is set to PER_DATA_SOURCE_METRICS. If the dataSourceLevelMetricsBehavior is set to FULL_REQUEST_DATA_SOURCE_METRICS instead, metricsConfig will be ignored. However, you can still set its value. metricsConfig can be ENABLED or DISABLED.
namecorestringThe name of the data source.
open_search_service_configcorejsonAmazon OpenSearch Service settings.
relational_database_configcorejsonRelational database settings.
service_role_arncorestringThe Identity and Access Management (IAM) service role Amazon Resource Name (ARN) for the data source. The system assumes this role when accessing the data source.
tagscorehstore
typecorestringThe type of the data source. AWS_LAMBDA: The data source is an Lambda function. AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table. AMAZON_ELASTICSEARCH: The data source is an Amazon OpenSearch Service domain. AMAZON_OPENSEARCH_SERVICE: The data source is an Amazon OpenSearch Service domain. AMAZON_EVENTBRIDGE: The data source is an Amazon EventBridge configuration. AMAZON_BEDROCK_RUNTIME: The data source is the Amazon Bedrock runtime. NONE: There is no data source. Use this type when you want to invoke a GraphQL operation without connecting to a data source, such as when you're performing data transformation with resolvers or invoking a subscription from a mutation. HTTP: The data source is an HTTP endpoint. RELATIONAL_DATABASE: The data source is a relational database.