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.

Container for the parameters to the CreateDataSource operation. Creates a DataSource object.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.AppSync.AmazonAppSyncRequest
      Amazon.AppSync.Model.CreateDataSourceRequest

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

Syntax

C#
public class CreateDataSourceRequest : AmazonAppSyncRequest
         IAmazonWebServiceRequest

The CreateDataSourceRequest type exposes the following members

Constructors

NameDescription
Public Method CreateDataSourceRequest()

Properties

NameTypeDescription
Public Property ApiId System.String

Gets and sets the property ApiId.

The API ID for the GraphQL API for the DataSource.

Public Property Description System.String

Gets and sets the property Description.

A description of the DataSource.

Public Property DynamodbConfig Amazon.AppSync.Model.DynamodbDataSourceConfig

Gets and sets the property DynamodbConfig.

Amazon DynamoDB settings.

Public Property ElasticsearchConfig Amazon.AppSync.Model.ElasticsearchDataSourceConfig

Gets and sets the property ElasticsearchConfig.

Amazon OpenSearch Service settings.

As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. For new data sources, use CreateDataSourceRequest$openSearchServiceConfig to create an OpenSearch data source.

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.

A user-supplied name for the DataSource.

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

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