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 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.
UpdateDataSource' | |
|
Instances
:: Text | |
-> Text | |
-> 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:dataSourceId: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.
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:dataSourceId: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.