AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Describes a data source.

Inheritance Hierarchy

System.Object
  Amazon.AppSync.Model.DataSource

Namespace: Amazon.AppSync.Model
Assembly: AWSSDK.AppSync.dll
Version: 3.x.y.z

Syntax

C#
public class DataSource

The DataSource type exposes the following members

Constructors

NameDescription
Public Method DataSource()

Properties

NameTypeDescription
Public Property DataSourceArn System.String

Gets and sets the property DataSourceArn.

The data source Amazon Resource Name (ARN).

Public Property Description System.String

Gets and sets the property Description.

The description of the data source.

Public Property DynamodbConfig Amazon.AppSync.Model.DynamodbDataSourceConfig

Gets and sets the property DynamodbConfig.

DynamoDB settings.

Public Property ElasticsearchConfig Amazon.AppSync.Model.ElasticsearchDataSourceConfig

Gets and sets the property ElasticsearchConfig.

Amazon OpenSearch Service settings.

Public Property EventBridgeConfig Amazon.AppSync.Model.EventBridgeDataSourceConfig

Gets and sets the property EventBridgeConfig.

Amazon EventBridge settings.

Public Property HttpConfig Amazon.AppSync.Model.HttpDataSourceConfig

Gets and sets the property HttpConfig.

HTTP endpoint settings.

Public Property LambdaConfig Amazon.AppSync.Model.LambdaDataSourceConfig

Gets and sets the property LambdaConfig.

Lambda settings.

Public Property MetricsConfig Amazon.AppSync.DataSourceLevelMetricsConfig

Gets and sets the property MetricsConfig.

Enables 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.

Public Property Name System.String

Gets and sets the property Name.

The name of the data source.

Public Property OpenSearchServiceConfig Amazon.AppSync.Model.OpenSearchServiceDataSourceConfig

Gets and sets the property OpenSearchServiceConfig.

Amazon OpenSearch Service settings.

Public Property RelationalDatabaseConfig Amazon.AppSync.Model.RelationalDatabaseDataSourceConfig

Gets and sets the property RelationalDatabaseConfig.

Relational database settings.

Public Property ServiceRoleArn System.String

Gets and sets the property ServiceRoleArn.

The 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.

Public Property Type Amazon.AppSync.DataSourceType

Gets and sets the property Type.

The 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.

  • 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.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5