| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.AppSync.UpdateDataSource
Description
Updates a DataSource object.
Synopsis
- data UpdateDataSource = UpdateDataSource' {
- description :: Maybe Text
- dynamodbConfig :: Maybe DynamodbDataSourceConfig
- elasticsearchConfig :: Maybe ElasticsearchDataSourceConfig
- httpConfig :: Maybe HttpDataSourceConfig
- lambdaConfig :: Maybe LambdaDataSourceConfig
- openSearchServiceConfig :: Maybe OpenSearchServiceDataSourceConfig
- relationalDatabaseConfig :: Maybe RelationalDatabaseDataSourceConfig
- serviceRoleArn :: Maybe Text
- apiId :: Text
- name :: Text
- type' :: DataSourceType
- newUpdateDataSource :: Text -> Text -> DataSourceType -> UpdateDataSource
- updateDataSource_description :: Lens' UpdateDataSource (Maybe Text)
- updateDataSource_dynamodbConfig :: Lens' UpdateDataSource (Maybe DynamodbDataSourceConfig)
- updateDataSource_elasticsearchConfig :: Lens' UpdateDataSource (Maybe ElasticsearchDataSourceConfig)
- updateDataSource_httpConfig :: Lens' UpdateDataSource (Maybe HttpDataSourceConfig)
- updateDataSource_lambdaConfig :: Lens' UpdateDataSource (Maybe LambdaDataSourceConfig)
- updateDataSource_openSearchServiceConfig :: Lens' UpdateDataSource (Maybe OpenSearchServiceDataSourceConfig)
- updateDataSource_relationalDatabaseConfig :: Lens' UpdateDataSource (Maybe RelationalDatabaseDataSourceConfig)
- updateDataSource_serviceRoleArn :: Lens' UpdateDataSource (Maybe Text)
- updateDataSource_apiId :: Lens' UpdateDataSource Text
- updateDataSource_name :: Lens' UpdateDataSource Text
- updateDataSource_type :: Lens' UpdateDataSource DataSourceType
- data UpdateDataSourceResponse = UpdateDataSourceResponse' {}
- newUpdateDataSourceResponse :: Int -> UpdateDataSourceResponse
- updateDataSourceResponse_dataSource :: Lens' UpdateDataSourceResponse (Maybe DataSource)
- updateDataSourceResponse_httpStatus :: Lens' UpdateDataSourceResponse Int
Creating a Request
data UpdateDataSource Source #
See: newUpdateDataSource smart constructor.
Constructors
| UpdateDataSource' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DataSourceType | |
| -> UpdateDataSource |
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_dynamodbConfig :: Lens' UpdateDataSource (Maybe DynamodbDataSourceConfig) Source #
The new Amazon DynamoDB configuration.
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_httpConfig :: Lens' UpdateDataSource (Maybe HttpDataSourceConfig) Source #
The new HTTP endpoint configuration.
updateDataSource_lambdaConfig :: Lens' UpdateDataSource (Maybe LambdaDataSourceConfig) Source #
The new Lambda configuration.
updateDataSource_openSearchServiceConfig :: Lens' UpdateDataSource (Maybe OpenSearchServiceDataSourceConfig) Source #
The new OpenSearch configuration.
updateDataSource_relationalDatabaseConfig :: Lens' UpdateDataSource (Maybe RelationalDatabaseDataSourceConfig) Source #
The new relational database configuration.
updateDataSource_serviceRoleArn :: Lens' UpdateDataSource (Maybe Text) Source #
The new service role Amazon Resource Name (ARN) for the data source.
updateDataSource_apiId :: Lens' UpdateDataSource Text Source #
The API ID.
updateDataSource_name :: Lens' UpdateDataSource Text Source #
The new name for the data source.
updateDataSource_type :: Lens' UpdateDataSource DataSourceType Source #
The new data source type.
Destructuring the Response
data UpdateDataSourceResponse Source #
See: newUpdateDataSourceResponse smart constructor.
Constructors
| UpdateDataSourceResponse' | |
Fields
| |
Instances
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
updateDataSourceResponse_dataSource :: Lens' UpdateDataSourceResponse (Maybe DataSource) Source #
The updated DataSource object.
updateDataSourceResponse_httpStatus :: Lens' UpdateDataSourceResponse Int Source #
The response's http status code.