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 |
Lists the data sources for a given API.
This operation returns paginated results.
Synopsis
- data ListDataSources = ListDataSources' {}
- newListDataSources :: Text -> ListDataSources
- listDataSources_nextToken :: Lens' ListDataSources (Maybe Text)
- listDataSources_maxResults :: Lens' ListDataSources (Maybe Natural)
- listDataSources_apiId :: Lens' ListDataSources Text
- data ListDataSourcesResponse = ListDataSourcesResponse' {
- dataSources :: Maybe [DataSource]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListDataSourcesResponse :: Int -> ListDataSourcesResponse
- listDataSourcesResponse_dataSources :: Lens' ListDataSourcesResponse (Maybe [DataSource])
- listDataSourcesResponse_nextToken :: Lens' ListDataSourcesResponse (Maybe Text)
- listDataSourcesResponse_httpStatus :: Lens' ListDataSourcesResponse Int
Creating a Request
data ListDataSources Source #
See: newListDataSources
smart constructor.
Instances
Create a value of ListDataSources
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:nextToken:ListDataSources'
, listDataSources_nextToken
- An identifier that was returned from the previous call to this
operation, which can be used to return the next set of items in the
list.
$sel:maxResults:ListDataSources'
, listDataSources_maxResults
- The maximum number of results you want the request to return.
$sel:apiId:ListDataSources'
, listDataSources_apiId
- The API ID.
Request Lenses
listDataSources_nextToken :: Lens' ListDataSources (Maybe Text) Source #
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
listDataSources_maxResults :: Lens' ListDataSources (Maybe Natural) Source #
The maximum number of results you want the request to return.
listDataSources_apiId :: Lens' ListDataSources Text Source #
The API ID.
Destructuring the Response
data ListDataSourcesResponse Source #
See: newListDataSourcesResponse
smart constructor.
ListDataSourcesResponse' | |
|
Instances
newListDataSourcesResponse Source #
Create a value of ListDataSourcesResponse
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:dataSources:ListDataSourcesResponse'
, listDataSourcesResponse_dataSources
- The DataSource
objects.
$sel:nextToken:ListDataSources'
, listDataSourcesResponse_nextToken
- An identifier to be passed in the next request to this operation to
return the next set of items in the list.
$sel:httpStatus:ListDataSourcesResponse'
, listDataSourcesResponse_httpStatus
- The response's http status code.
Response Lenses
listDataSourcesResponse_dataSources :: Lens' ListDataSourcesResponse (Maybe [DataSource]) Source #
The DataSource
objects.
listDataSourcesResponse_nextToken :: Lens' ListDataSourcesResponse (Maybe Text) Source #
An identifier to be passed in the next request to this operation to return the next set of items in the list.
listDataSourcesResponse_httpStatus :: Lens' ListDataSourcesResponse Int Source #
The response's http status code.