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

Description

Creates a DataSource object.

Synopsis

Creating a Request

data CreateDataSource Source #

See: newCreateDataSource smart constructor.

Constructors

CreateDataSource' 

Fields

Instances

Instances details
ToJSON CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

ToHeaders CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

ToPath CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

ToQuery CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

AWSRequest CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Associated Types

type AWSResponse CreateDataSource #

Generic CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Associated Types

type Rep CreateDataSource :: Type -> Type #

Read CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Show CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

NFData CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Methods

rnf :: CreateDataSource -> () #

Eq CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Hashable CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

type AWSResponse CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

type Rep CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

type Rep CreateDataSource = D1 ('MetaData "CreateDataSource" "Amazonka.AppSync.CreateDataSource" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "CreateDataSource'" 'PrefixI 'True) (((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 "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 "apiId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DataSourceType))))))

newCreateDataSource Source #

Create a value of CreateDataSource 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:

CreateDataSource, createDataSource_description - A description of the DataSource.

CreateDataSource, createDataSource_dynamodbConfig - Amazon DynamoDB settings.

CreateDataSource, createDataSource_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.

CreateDataSource, createDataSource_httpConfig - HTTP endpoint settings.

CreateDataSource, createDataSource_lambdaConfig - Lambda settings.

CreateDataSource, createDataSource_openSearchServiceConfig - Amazon OpenSearch Service settings.

CreateDataSource, createDataSource_relationalDatabaseConfig - Relational database settings.

CreateDataSource, createDataSource_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.

CreateDataSource, createDataSource_apiId - The API ID for the GraphQL API for the DataSource.

CreateDataSource, createDataSource_name - A user-supplied name for the DataSource.

CreateDataSource, createDataSource_type - The type of the DataSource.

Request Lenses

createDataSource_elasticsearchConfig :: Lens' CreateDataSource (Maybe ElasticsearchDataSourceConfig) Source #

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.

createDataSource_serviceRoleArn :: Lens' CreateDataSource (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.

createDataSource_apiId :: Lens' CreateDataSource Text Source #

The API ID for the GraphQL API for the DataSource.

createDataSource_name :: Lens' CreateDataSource Text Source #

A user-supplied name for the DataSource.

Destructuring the Response

data CreateDataSourceResponse Source #

See: newCreateDataSourceResponse smart constructor.

Constructors

CreateDataSourceResponse' 

Fields

Instances

Instances details
Generic CreateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Associated Types

type Rep CreateDataSourceResponse :: Type -> Type #

Read CreateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Show CreateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

NFData CreateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Eq CreateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

type Rep CreateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

type Rep CreateDataSourceResponse = D1 ('MetaData "CreateDataSourceResponse" "Amazonka.AppSync.CreateDataSource" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "CreateDataSourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataSource)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateDataSourceResponse Source #

Create a value of CreateDataSourceResponse 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:dataSource:CreateDataSourceResponse', createDataSourceResponse_dataSource - The DataSource object.

$sel:httpStatus:CreateDataSourceResponse', createDataSourceResponse_httpStatus - The response's http status code.

Response Lenses