---
type: resource-type
title: AppSyncDataSource
description: aws resource type AWS::AppSync::DataSource
name: AppSyncDataSource
lexicon: aws
resource_type: AWS::AppSync::DataSource
---
`AWS::AppSync::DataSource`, a resource type of the aws lexicon.

## Properties

- `ApiId` (`string`, required): Unique AWS AppSync GraphQL API identifier where this data source will be created.
- `Name` (`string`, required): Friendly name for you to identify your AppSync data source after creation.
- `Type` (`string`, required): The type of the data source.
- `DataSourceArn` (`string`, optional): The Amazon Resource Name (ARN) of the API key, such as arn:aws:appsync:us-east-1:123456789012:apis/graphqlapiid/datasources/datasourcename.
- `Description` (`string`, optional): The description of the data source.
- `DynamoDBConfig` (`AppSyncDataSource_DynamoDBConfig`, optional): AWS Region and TableName for an Amazon DynamoDB table in your account.
- `ElasticsearchConfig` (`AppSyncDataSource_ElasticsearchConfig`, optional): AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account. As of September 2021, Amazon Elasticsearch Service is Amazon OpenSearch Service. This property is deprecated. For new data sources, use OpenSearchServiceConfig to specify an OpenSearch Service data source.
- `EventBridgeConfig` (`AppSyncDataSource_EventBridgeConfig`, optional): ARN for the EventBridge bus.
- `HttpConfig` (`AppSyncDataSource_HttpConfig`, optional): Endpoints for an HTTP data source.
- `LambdaConfig` (`AppSyncDataSource_LambdaConfig`, optional): An ARN of a Lambda function in valid ARN format. This can be the ARN of a Lambda function that exists in the current account or in another account.
- `MetricsConfig` (`"DISABLED" | "ENABLED"`, optional)
- `OpenSearchServiceConfig` (`AppSyncDataSource_OpenSearchServiceConfig`, optional): AWS Region and Endpoints for an Amazon OpenSearch Service domain in your account.
- `RelationalDatabaseConfig` (`AppSyncDataSource_RelationalDatabaseConfig`, optional): Relational Database configuration of the relational database data source.
- `ServiceRoleArn` (`string`, optional): The AWS Identity and Access Management service role ARN for the data source. The system assumes this role when accessing the data source.

## Attributes

- `DataSourceArn`
