| 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.MachineLearning.UpdateDataSource
Description
Updates the DataSourceName of a DataSource.
You can use the GetDataSource operation to view the contents of the
updated data element.
Synopsis
- data UpdateDataSource = UpdateDataSource' {}
- newUpdateDataSource :: Text -> Text -> UpdateDataSource
- updateDataSource_dataSourceId :: Lens' UpdateDataSource Text
- updateDataSource_dataSourceName :: Lens' UpdateDataSource Text
- data UpdateDataSourceResponse = UpdateDataSourceResponse' {
- dataSourceId :: Maybe Text
- httpStatus :: Int
- newUpdateDataSourceResponse :: Int -> UpdateDataSourceResponse
- updateDataSourceResponse_dataSourceId :: Lens' UpdateDataSourceResponse (Maybe Text)
- updateDataSourceResponse_httpStatus :: Lens' UpdateDataSourceResponse Int
Creating a Request
data UpdateDataSource Source #
See: newUpdateDataSource smart constructor.
Constructors
| UpdateDataSource' | |
Fields
| |
Instances
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_dataSourceId - The ID assigned to the DataSource during creation.
$sel:dataSourceName:UpdateDataSource', updateDataSource_dataSourceName - A new user-supplied name or description of the DataSource that will
replace the current description.
Request Lenses
updateDataSource_dataSourceId :: Lens' UpdateDataSource Text Source #
The ID assigned to the DataSource during creation.
updateDataSource_dataSourceName :: Lens' UpdateDataSource Text Source #
A new user-supplied name or description of the DataSource that will
replace the current description.
Destructuring the Response
data UpdateDataSourceResponse Source #
Represents the output of an UpdateDataSource operation.
You can see the updated content by using the GetBatchPrediction
operation.
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:
UpdateDataSource, updateDataSourceResponse_dataSourceId - The ID assigned to the DataSource during creation. This value should
be identical to the value of the DataSourceID in the request.
$sel:httpStatus:UpdateDataSourceResponse', updateDataSourceResponse_httpStatus - The response's http status code.
Response Lenses
updateDataSourceResponse_dataSourceId :: Lens' UpdateDataSourceResponse (Maybe Text) Source #
The ID assigned to the DataSource during creation. This value should
be identical to the value of the DataSourceID in the request.
updateDataSourceResponse_httpStatus :: Lens' UpdateDataSourceResponse Int Source #
The response's http status code.