libZSservicesZSamazonka-appsyncZSamazonka-appsync
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.AppSync.Types.DataSource

Description

 
Synopsis

Documentation

data DataSource Source #

Describes a data source.

See: newDataSource smart constructor.

Constructors

DataSource' 

Fields

Instances

Instances details
Eq DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

Read DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

Show DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

Generic DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

Associated Types

type Rep DataSource :: Type -> Type #

NFData DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

Methods

rnf :: DataSource -> () #

Hashable DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

FromJSON DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

type Rep DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

type Rep DataSource = D1 ('MetaData "DataSource" "Amazonka.AppSync.Types.DataSource" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "DataSource'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "serviceRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "relationalDatabaseConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RelationalDatabaseDataSourceConfig))) :*: (S1 ('MetaSel ('Just "dataSourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "dynamodbConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DynamodbDataSourceConfig)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "httpConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HttpDataSourceConfig)) :*: (S1 ('MetaSel ('Just "openSearchServiceConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OpenSearchServiceDataSourceConfig)) :*: S1 ('MetaSel ('Just "lambdaConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LambdaDataSourceConfig)))) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataSourceType)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "elasticsearchConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ElasticsearchDataSourceConfig)))))))

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_name :: Lens' DataSource (Maybe Text) Source #

The name of the data source.

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.