| 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.AppSync.ListDataSources
Description
Lists the data sources for a given API.
This operation returns paginated results.
Synopsis
- data ListDataSources = ListDataSources' {}
- newListDataSources :: Text -> ListDataSources
- listDataSources_maxResults :: Lens' ListDataSources (Maybe Natural)
- listDataSources_nextToken :: Lens' ListDataSources (Maybe Text)
- 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.
Constructors
| ListDataSources' | |
Instances
Arguments
| :: Text | |
| -> ListDataSources |
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:maxResults:ListDataSources', listDataSources_maxResults - The maximum number of results that you want the request to return.
ListDataSources, listDataSources_nextToken - An identifier that was returned from the previous call to this
operation, which you can use to return the next set of items in the
list.
ListDataSources, listDataSources_apiId - The API ID.
Request Lenses
listDataSources_maxResults :: Lens' ListDataSources (Maybe Natural) Source #
The maximum number of results that you want the request to return.
listDataSources_nextToken :: Lens' ListDataSources (Maybe Text) Source #
An identifier that was returned from the previous call to this operation, which you can use to return the next set of items in the list.
listDataSources_apiId :: Lens' ListDataSources Text Source #
The API ID.
Destructuring the Response
data ListDataSourcesResponse Source #
See: newListDataSourcesResponse smart constructor.
Constructors
| ListDataSourcesResponse' | |
Fields
| |
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.
ListDataSources, listDataSourcesResponse_nextToken - An identifier to pass 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 pass 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.