Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates a DataSource
object.
Synopsis
- data UpdateDataSource = UpdateDataSource' {
- serviceRoleArn :: Maybe Text
- relationalDatabaseConfig :: Maybe RelationalDatabaseDataSourceConfig
- dynamodbConfig :: Maybe DynamodbDataSourceConfig
- httpConfig :: Maybe HttpDataSourceConfig
- openSearchServiceConfig :: Maybe OpenSearchServiceDataSourceConfig
- lambdaConfig :: Maybe LambdaDataSourceConfig
- description :: Maybe Text
- elasticsearchConfig :: Maybe ElasticsearchDataSourceConfig
- apiId :: Text
- name :: Text
- type' :: DataSourceType
- newUpdateDataSource :: Text -> Text -> DataSourceType -> UpdateDataSource
- updateDataSource_serviceRoleArn :: Lens' UpdateDataSource (Maybe Text)
- updateDataSource_relationalDatabaseConfig :: Lens' UpdateDataSource (Maybe RelationalDatabaseDataSourceConfig)
- updateDataSource_dynamodbConfig :: Lens' UpdateDataSource (Maybe DynamodbDataSourceConfig)
- updateDataSource_httpConfig :: Lens' UpdateDataSource (Maybe HttpDataSourceConfig)
- updateDataSource_openSearchServiceConfig :: Lens' UpdateDataSource (Maybe OpenSearchServiceDataSourceConfig)
- updateDataSource_lambdaConfig :: Lens' UpdateDataSource (Maybe LambdaDataSourceConfig)
- updateDataSource_description :: Lens' UpdateDataSource (Maybe Text)
- updateDataSource_elasticsearchConfig :: Lens' UpdateDataSource (Maybe ElasticsearchDataSourceConfig)
- 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.
UpdateDataSource' | |
|
Instances
:: 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:
$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_relationalDatabaseConfig :: Lens' UpdateDataSource (Maybe RelationalDatabaseDataSourceConfig) Source #
The new relational database configuration.
updateDataSource_dynamodbConfig :: Lens' UpdateDataSource (Maybe DynamodbDataSourceConfig) Source #
The new Amazon DynamoDB configuration.
updateDataSource_httpConfig :: Lens' UpdateDataSource (Maybe HttpDataSourceConfig) Source #
The new HTTP endpoint configuration.
updateDataSource_openSearchServiceConfig :: Lens' UpdateDataSource (Maybe OpenSearchServiceDataSourceConfig) Source #
The new OpenSearch configuration.
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_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.
UpdateDataSourceResponse' | |
|
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.