amazonka-appsync-2.0: Amazon AppSync SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AppSync.Types.DataSource

Description

 
Synopsis

Documentation

data DataSource Source #

Describes a data source.

See: newDataSource smart constructor.

Constructors

DataSource' 

Fields

Instances

Instances details
FromJSON 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 #

Read DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

Show DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

NFData DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

Methods

rnf :: DataSource -> () #

Eq DataSource Source # 
Instance details

Defined in Amazonka.AppSync.Types.DataSource

Hashable 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" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "DataSource'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "dataSourceArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "dynamodbConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DynamodbDataSourceConfig)) :*: (S1 ('MetaSel ('Just "elasticsearchConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ElasticsearchDataSourceConfig)) :*: S1 ('MetaSel ('Just "httpConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HttpDataSourceConfig))))) :*: ((S1 ('MetaSel ('Just "lambdaConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe LambdaDataSourceConfig)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "openSearchServiceConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OpenSearchServiceDataSourceConfig)))) :*: (S1 ('MetaSel ('Just "relationalDatabaseConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RelationalDatabaseDataSourceConfig)) :*: (S1 ('MetaSel ('Just "serviceRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataSourceType)))))))

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:dataSourceArn:DataSource', dataSource_dataSourceArn - The data source Amazon Resource Name (ARN).

$sel:description:DataSource', dataSource_description - The description of the data source.

$sel:dynamodbConfig:DataSource', dataSource_dynamodbConfig - DynamoDB settings.

$sel:elasticsearchConfig:DataSource', dataSource_elasticsearchConfig - Amazon OpenSearch Service settings.

$sel:httpConfig:DataSource', dataSource_httpConfig - HTTP endpoint settings.

$sel:lambdaConfig:DataSource', dataSource_lambdaConfig - Lambda settings.

$sel:name:DataSource', dataSource_name - The name of the data source.

$sel:openSearchServiceConfig:DataSource', dataSource_openSearchServiceConfig - Amazon OpenSearch Service settings.

$sel:relationalDatabaseConfig:DataSource', dataSource_relationalDatabaseConfig - Relational database settings.

$sel:serviceRoleArn:DataSource', dataSource_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.

$sel:type':DataSource', dataSource_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.
  • 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.

dataSource_dataSourceArn :: Lens' DataSource (Maybe Text) Source #

The data source Amazon Resource Name (ARN).

dataSource_description :: Lens' DataSource (Maybe Text) Source #

The description of the data source.

dataSource_name :: Lens' DataSource (Maybe Text) Source #

The name of the data source.

dataSource_serviceRoleArn :: Lens' DataSource (Maybe Text) Source #

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.

dataSource_type :: Lens' DataSource (Maybe DataSourceType) Source #

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