Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data DataSource = DataSource' {
- serviceRoleArn :: Maybe Text
- relationalDatabaseConfig :: Maybe RelationalDatabaseDataSourceConfig
- dataSourceArn :: Maybe Text
- dynamodbConfig :: Maybe DynamodbDataSourceConfig
- name :: Maybe Text
- httpConfig :: Maybe HttpDataSourceConfig
- openSearchServiceConfig :: Maybe OpenSearchServiceDataSourceConfig
- lambdaConfig :: Maybe LambdaDataSourceConfig
- type' :: Maybe DataSourceType
- description :: Maybe Text
- elasticsearchConfig :: Maybe ElasticsearchDataSourceConfig
- newDataSource :: DataSource
- dataSource_serviceRoleArn :: Lens' DataSource (Maybe Text)
- dataSource_relationalDatabaseConfig :: Lens' DataSource (Maybe RelationalDatabaseDataSourceConfig)
- dataSource_dataSourceArn :: Lens' DataSource (Maybe Text)
- dataSource_dynamodbConfig :: Lens' DataSource (Maybe DynamodbDataSourceConfig)
- dataSource_name :: Lens' DataSource (Maybe Text)
- dataSource_httpConfig :: Lens' DataSource (Maybe HttpDataSourceConfig)
- dataSource_openSearchServiceConfig :: Lens' DataSource (Maybe OpenSearchServiceDataSourceConfig)
- dataSource_lambdaConfig :: Lens' DataSource (Maybe LambdaDataSourceConfig)
- dataSource_type :: Lens' DataSource (Maybe DataSourceType)
- dataSource_description :: Lens' DataSource (Maybe Text)
- dataSource_elasticsearchConfig :: Lens' DataSource (Maybe ElasticsearchDataSourceConfig)
Documentation
data DataSource Source #
Describes a data source.
See: newDataSource
smart constructor.
DataSource' | |
|
Instances
newDataSource :: DataSource Source #
Create a value of DataSource
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:serviceRoleArn:DataSource'
, dataSource_serviceRoleArn
- The Identity and Access Management service role ARN for the data source.
The system assumes this role when accessing the data source.
$sel:relationalDatabaseConfig:DataSource'
, dataSource_relationalDatabaseConfig
- Relational database settings.
$sel:dataSourceArn:DataSource'
, dataSource_dataSourceArn
- The data source ARN.
$sel:dynamodbConfig:DataSource'
, dataSource_dynamodbConfig
- Amazon DynamoDB settings.
$sel:name:DataSource'
, dataSource_name
- The name of the data source.
$sel:httpConfig:DataSource'
, dataSource_httpConfig
- HTTP endpoint settings.
$sel:openSearchServiceConfig:DataSource'
, dataSource_openSearchServiceConfig
- Amazon OpenSearch Service settings.
$sel:lambdaConfig:DataSource'
, dataSource_lambdaConfig
- Amazon Web Services Lambda settings.
$sel:type':DataSource'
, dataSource_type
- The type of the data source.
- AWS_LAMBDA: The data source is an Amazon Web Services 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.
- 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.
- RELATIONAL_DATABASE: The data source is a relational database.
$sel:description:DataSource'
, dataSource_description
- The description of the data source.
$sel:elasticsearchConfig:DataSource'
, dataSource_elasticsearchConfig
- Amazon OpenSearch Service settings.
dataSource_serviceRoleArn :: Lens' DataSource (Maybe Text) Source #
The Identity and Access Management service role ARN for the data source. The system assumes this role when accessing the data source.
dataSource_relationalDatabaseConfig :: Lens' DataSource (Maybe RelationalDatabaseDataSourceConfig) Source #
Relational database settings.
dataSource_dataSourceArn :: Lens' DataSource (Maybe Text) Source #
The data source ARN.
dataSource_dynamodbConfig :: Lens' DataSource (Maybe DynamodbDataSourceConfig) Source #
Amazon DynamoDB settings.
dataSource_name :: Lens' DataSource (Maybe Text) Source #
The name of the data source.
dataSource_httpConfig :: Lens' DataSource (Maybe HttpDataSourceConfig) Source #
HTTP endpoint settings.
dataSource_openSearchServiceConfig :: Lens' DataSource (Maybe OpenSearchServiceDataSourceConfig) Source #
Amazon OpenSearch Service settings.
dataSource_lambdaConfig :: Lens' DataSource (Maybe LambdaDataSourceConfig) Source #
Amazon Web Services Lambda settings.
dataSource_type :: Lens' DataSource (Maybe DataSourceType) Source #
The type of the data source.
- AWS_LAMBDA: The data source is an Amazon Web Services 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.
- 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.
- RELATIONAL_DATABASE: The data source is a relational database.
dataSource_description :: Lens' DataSource (Maybe Text) Source #
The description of the data source.
dataSource_elasticsearchConfig :: Lens' DataSource (Maybe ElasticsearchDataSourceConfig) Source #
Amazon OpenSearch Service settings.