| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.AppSync.ListDataSources
Description
Lists the data sources for a given API.
- listDataSources :: Text -> ListDataSources
- data ListDataSources
- ldsNextToken :: Lens' ListDataSources (Maybe Text)
- ldsMaxResults :: Lens' ListDataSources (Maybe Natural)
- ldsApiId :: Lens' ListDataSources Text
- listDataSourcesResponse :: Int -> ListDataSourcesResponse
- data ListDataSourcesResponse
- ldsrsDataSources :: Lens' ListDataSourcesResponse [DataSource]
- ldsrsNextToken :: Lens' ListDataSourcesResponse (Maybe Text)
- ldsrsResponseStatus :: Lens' ListDataSourcesResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ListDataSources |
Creates a value of ListDataSources with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldsNextToken- 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.ldsMaxResults- The maximum number of results you want the request to return.ldsApiId- The API ID.
data ListDataSources Source #
See: listDataSources smart constructor.
Instances
Request Lenses
ldsNextToken :: 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.
ldsMaxResults :: Lens' ListDataSources (Maybe Natural) Source #
The maximum number of results you want the request to return.
Destructuring the Response
listDataSourcesResponse Source #
Arguments
| :: Int | |
| -> ListDataSourcesResponse |
Creates a value of ListDataSourcesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldsrsDataSources- TheDataSourceobjects.ldsrsNextToken- An identifier to be passed in the next request to this operation to return the next set of items in the list.ldsrsResponseStatus- -- | The response status code.
data ListDataSourcesResponse Source #
See: listDataSourcesResponse smart constructor.
Response Lenses
ldsrsDataSources :: Lens' ListDataSourcesResponse [DataSource] Source #
The DataSource objects.
ldsrsNextToken :: 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.
ldsrsResponseStatus :: Lens' ListDataSourcesResponse Int Source #
- - | The response status code.