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

Description

Updates a DataSource object.

Synopsis

Creating a Request

data UpdateDataSource Source #

See: newUpdateDataSource smart constructor.

Constructors

UpdateDataSource' 

Fields

Instances

Instances details
ToJSON UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.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

AWSRequest UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Associated Types

type AWSResponse UpdateDataSource #

Generic UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Associated Types

type Rep UpdateDataSource :: Type -> Type #

Read UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Show UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

NFData UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Methods

rnf :: UpdateDataSource -> () #

Eq UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Hashable UpdateDataSource Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

type AWSResponse 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" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" 'False) (C1 ('MetaCons "UpdateDataSource'" '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))))))

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:

UpdateDataSource, updateDataSource_description - The new description for the data source.

UpdateDataSource, updateDataSource_dynamodbConfig - The new Amazon DynamoDB configuration.

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.

UpdateDataSource, updateDataSource_httpConfig - The new HTTP endpoint configuration.

UpdateDataSource, updateDataSource_lambdaConfig - The new Lambda configuration.

UpdateDataSource, updateDataSource_openSearchServiceConfig - The new OpenSearch configuration.

UpdateDataSource, updateDataSource_relationalDatabaseConfig - The new relational database configuration.

UpdateDataSource, updateDataSource_serviceRoleArn - The new service role Amazon Resource Name (ARN) for the data source.

UpdateDataSource, updateDataSource_apiId - The API ID.

UpdateDataSource, updateDataSource_name - The new name for the data source.

UpdateDataSource, updateDataSource_type - The new data source type.

Request Lenses

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

The new service role Amazon Resource Name (ARN) for the 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
Generic UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Associated Types

type Rep UpdateDataSourceResponse :: Type -> Type #

Read UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Show UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

NFData UpdateDataSourceResponse Source # 
Instance details

Defined in Amazonka.AppSync.UpdateDataSource

Eq 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" "amazonka-appsync-2.0-4Pb6UqteLv1I9NIWaj90bg" '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