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

Description

Updates a DataSource object.

Synopsis

Creating a Request

data UpdateDataSource Source #

See: newUpdateDataSource smart constructor.

Constructors

UpdateDataSource' 

Fields

Instances

Instances details
Eq UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Read UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Show UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Generic UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Associated Types

type Rep UpdateDataSource :: Type -> Type #

NFData UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Methods

rnf :: UpdateDataSource -> () #

Hashable UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

ToJSON UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

AWSRequest UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Associated Types

type AWSResponse UpdateDataSource #

ToHeaders UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

ToPath UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

ToQuery UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

type Rep UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

type Rep UpdateDataSource = D1 ('MetaData "UpdateDataSource" "Amazonka.AppSync.UpdateDataSource" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "UpdateDataSource'" '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 UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

newUpdateDataSource Source #

Create a value of UpdateDataSource 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:UpdateDataSource', updateDataSource_serviceRoleArn - The new service role ARN for the data source.

$sel:relationalDatabaseConfig:UpdateDataSource', updateDataSource_relationalDatabaseConfig - The new relational database configuration.

$sel:dynamodbConfig:UpdateDataSource', updateDataSource_dynamodbConfig - The new Amazon DynamoDB configuration.

$sel:httpConfig:UpdateDataSource', updateDataSource_httpConfig - The new HTTP endpoint configuration.

$sel:openSearchServiceConfig:UpdateDataSource', updateDataSource_openSearchServiceConfig - The new OpenSearch configuration.

$sel:lambdaConfig:UpdateDataSource', updateDataSource_lambdaConfig - The new Amazon Web Services Lambda configuration.

$sel:description:UpdateDataSource', updateDataSource_description - The new description for the data source.

$sel:elasticsearchConfig:UpdateDataSource', updateDataSource_elasticsearchConfig - The new OpenSearch configuration.

As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.

$sel:apiId:UpdateDataSource', updateDataSource_apiId - The API ID.

$sel:name:UpdateDataSource', updateDataSource_name - The new name for the data source.

$sel:type':UpdateDataSource', updateDataSource_type - The new data source type.

Request Lenses

updateDataSource_serviceRoleArn :: Lens' UpdateDataSource (Maybe Text) Source #

The new service role ARN for the data source.

updateDataSource_lambdaConfig :: Lens' UpdateDataSource (Maybe LambdaDataSourceConfig) Source #

The new Amazon Web Services Lambda configuration.

updateDataSource_description :: Lens' UpdateDataSource (Maybe Text) Source #

The new description for the data source.

updateDataSource_elasticsearchConfig :: Lens' UpdateDataSource (Maybe ElasticsearchDataSourceConfig) Source #

The new OpenSearch configuration.

As of September 2021, Amazon Elasticsearch service is Amazon OpenSearch Service. This configuration is deprecated. Instead, use UpdateDataSourceRequest$openSearchServiceConfig to update an OpenSearch data source.

updateDataSource_name :: Lens' UpdateDataSource Text Source #

The new name for the data source.

Destructuring the Response

data UpdateDataSourceResponse Source #

See: newUpdateDataSourceResponse smart constructor.

Constructors

UpdateDataSourceResponse' 

Fields

Instances

Instances details
Eq UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Read UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Show UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Generic UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Associated Types

type Rep UpdateDataSourceResponse :: Type -> Type #

NFData UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

type Rep UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

type Rep UpdateDataSourceResponse = D1 ('MetaData "UpdateDataSourceResponse" "Amazonka.AppSync.UpdateDataSource" "libZSservicesZSamazonka-appsyncZSamazonka-appsync" 'False) (C1 ('MetaCons "UpdateDataSourceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataSource)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateDataSourceResponse Source #

Create a value of UpdateDataSourceResponse 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:UpdateDataSourceResponse', updateDataSourceResponse_dataSource - The updated DataSource object.

$sel:httpStatus:UpdateDataSourceResponse', updateDataSourceResponse_httpStatus - The response's http status code.

Response Lenses