Menu
AWS AppSync
API Reference (API Version 2017-07-25)

DataSource

Describes a data source.

Contents

dataSourceArn

The data source ARN.

Type: String

Required: No

description

The description of the data source.

Type: String

Required: No

dynamodbConfig

Amazon DynamoDB settings.

Type: DynamodbDataSourceConfig object

Required: No

elasticsearchConfig

Amazon Elasticsearch settings.

Type: ElasticsearchDataSourceConfig object

Required: No

httpConfig

HTTP endpoint settings.

Type: HttpDataSourceConfig object

Required: No

lambdaConfig

AWS Lambda settings.

Type: LambdaDataSourceConfig object

Required: No

name

The name of the data source.

Type: String

Pattern: [_A-Za-z][_0-9A-Za-z]*

Required: No

serviceRoleArn

The AWS IAM service role ARN for the data source. The system assumes this role when accessing the data source.

Type: String

Required: No

type

The type of the data source.

  • AMAZON_DYNAMODB: The data source is an Amazon DynamoDB table.

  • AMAZON_ELASTICSEARCH: The data source is an Amazon Elasticsearch Service domain.

  • AWS_LAMBDA: The data source is an AWS Lambda function.

  • NONE: There is no data source. This type is used when you wish to invoke a GraphQL operation without connecting to a data source, such as performing data transformation with resolvers or triggering a subscription to be invoked from a mutation.

  • HTTP: The data source is an HTTP endpoint.

Type: String

Valid Values: AWS_LAMBDA | AMAZON_DYNAMODB | AMAZON_ELASTICSEARCH | NONE | HTTP

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: