Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Updates the DataSourceName
of a DataSource
.
You can use the GetDataSource operation to view the contents of the updated data element.
See: AWS API Reference for UpdateDataSource.
- updateDataSource :: Text -> Text -> UpdateDataSource
- data UpdateDataSource
- udsDataSourceId :: Lens' UpdateDataSource Text
- udsDataSourceName :: Lens' UpdateDataSource Text
- updateDataSourceResponse :: Int -> UpdateDataSourceResponse
- data UpdateDataSourceResponse
- udsrsDataSourceId :: Lens' UpdateDataSourceResponse (Maybe Text)
- udsrsResponseStatus :: Lens' UpdateDataSourceResponse Int
Creating a Request
Creates a value of UpdateDataSource
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateDataSource Source
See: updateDataSource
smart constructor.
Request Lenses
udsDataSourceId :: Lens' UpdateDataSource Text Source
The ID assigned to the DataSource
during creation.
udsDataSourceName :: Lens' UpdateDataSource Text Source
A new user-supplied name or description of the DataSource
that will
replace the current description.
Destructuring the Response
updateDataSourceResponse Source
Creates a value of UpdateDataSourceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UpdateDataSourceResponse Source
Represents the output of an UpdateDataSource operation.
You can see the updated content by using the GetBatchPrediction operation.
See: updateDataSourceResponse
smart constructor.
Response Lenses
udsrsDataSourceId :: 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.
udsrsResponseStatus :: Lens' UpdateDataSourceResponse Int Source
The response status code.