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 |
Retrieves a DataSource
object.
Synopsis
- data GetDataSource = GetDataSource' {}
- newGetDataSource :: Text -> Text -> GetDataSource
- getDataSource_apiId :: Lens' GetDataSource Text
- getDataSource_name :: Lens' GetDataSource Text
- data GetDataSourceResponse = GetDataSourceResponse' {}
- newGetDataSourceResponse :: Int -> GetDataSourceResponse
- getDataSourceResponse_dataSource :: Lens' GetDataSourceResponse (Maybe DataSource)
- getDataSourceResponse_httpStatus :: Lens' GetDataSourceResponse Int
Creating a Request
data GetDataSource Source #
See: newGetDataSource
smart constructor.
Instances
Create a value of GetDataSource
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:apiId:GetDataSource'
, getDataSource_apiId
- The API ID.
$sel:name:GetDataSource'
, getDataSource_name
- The name of the data source.
Request Lenses
getDataSource_apiId :: Lens' GetDataSource Text Source #
The API ID.
getDataSource_name :: Lens' GetDataSource Text Source #
The name of the data source.
Destructuring the Response
data GetDataSourceResponse Source #
See: newGetDataSourceResponse
smart constructor.
GetDataSourceResponse' | |
|
Instances
newGetDataSourceResponse Source #
Create a value of GetDataSourceResponse
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:GetDataSourceResponse'
, getDataSourceResponse_dataSource
- The DataSource
object.
$sel:httpStatus:GetDataSourceResponse'
, getDataSourceResponse_httpStatus
- The response's http status code.
Response Lenses
getDataSourceResponse_dataSource :: Lens' GetDataSourceResponse (Maybe DataSource) Source #
The DataSource
object.
getDataSourceResponse_httpStatus :: Lens' GetDataSourceResponse Int Source #
The response's http status code.