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

Description

Creates a DataSource object.

Synopsis

Creating a Request

data CreateDataSource Source #

See: newCreateDataSource smart constructor.

Constructors

CreateDataSource' 

Fields

Instances

Instances details
Eq CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Read CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Show CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Generic CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Associated Types

type Rep CreateDataSource :: Type -> Type #

NFData CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Methods

rnf :: CreateDataSource -> () #

Hashable CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

ToJSON CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

AWSRequest CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Associated Types

type AWSResponse 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

type Rep CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

type Rep CreateDataSource = D1 ('MetaData "CreateDataSource" "Amazonka.AppSync.CreateDataSource" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "CreateDataSource'" '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 "dynamodbConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DynamodbDataSourceConfig)) :*: (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 "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "elasticsearchConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ElasticsearchDataSourceConfig)))) :*: (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))))))
type AWSResponse CreateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

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:

$sel:serviceRoleArn:CreateDataSource', createDataSource_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:CreateDataSource', createDataSource_relationalDatabaseConfig - Relational database settings.

$sel:dynamodbConfig:CreateDataSource', createDataSource_dynamodbConfig - Amazon DynamoDB settings.

$sel:httpConfig:CreateDataSource', createDataSource_httpConfig - HTTP endpoint settings.

$sel:openSearchServiceConfig:CreateDataSource', createDataSource_openSearchServiceConfig - Amazon OpenSearch Service settings.

$sel:lambdaConfig:CreateDataSource', createDataSource_lambdaConfig - Amazon Web Services Lambda settings.

$sel:description:CreateDataSource', createDataSource_description - A description of the DataSource.

$sel:elasticsearchConfig: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.

$sel:apiId:CreateDataSource', createDataSource_apiId - The API ID for the GraphQL API for the DataSource.

$sel:name:CreateDataSource', createDataSource_name - A user-supplied name for the DataSource.

$sel:type':CreateDataSource', createDataSource_type - The type of the DataSource.

Request Lenses

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

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_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
Eq CreateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Read CreateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Show CreateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Generic CreateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.CreateDataSource

Associated Types

type Rep CreateDataSourceResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" '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