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 data sources in current Amazon Web Services Region that belong to this Amazon Web Services account.
This operation returns paginated results.
Synopsis
- data ListDataSources = ListDataSources' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- awsAccountId :: Text
- newListDataSources :: Text -> ListDataSources
- listDataSources_nextToken :: Lens' ListDataSources (Maybe Text)
- listDataSources_maxResults :: Lens' ListDataSources (Maybe Natural)
- listDataSources_awsAccountId :: Lens' ListDataSources Text
- data ListDataSourcesResponse = ListDataSourcesResponse' {}
- newListDataSourcesResponse :: Int -> ListDataSourcesResponse
- listDataSourcesResponse_requestId :: Lens' ListDataSourcesResponse (Maybe Text)
- listDataSourcesResponse_dataSources :: Lens' ListDataSourcesResponse (Maybe [DataSource])
- listDataSourcesResponse_nextToken :: Lens' ListDataSourcesResponse (Maybe Text)
- listDataSourcesResponse_status :: Lens' ListDataSourcesResponse Int
Creating a Request
data ListDataSources Source #
See: newListDataSources
smart constructor.
ListDataSources' | |
|
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
- The token for the next set of results, or null if there are no more
results.
$sel:maxResults:ListDataSources'
, listDataSources_maxResults
- The maximum number of results to be returned per request.
$sel:awsAccountId:ListDataSources'
, listDataSources_awsAccountId
- The Amazon Web Services account ID.
Request Lenses
listDataSources_nextToken :: Lens' ListDataSources (Maybe Text) Source #
The token for the next set of results, or null if there are no more results.
listDataSources_maxResults :: Lens' ListDataSources (Maybe Natural) Source #
The maximum number of results to be returned per request.
listDataSources_awsAccountId :: Lens' ListDataSources Text Source #
The Amazon Web Services account ID.
Destructuring the Response
data ListDataSourcesResponse Source #
See: newListDataSourcesResponse
smart constructor.
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:requestId:ListDataSourcesResponse'
, listDataSourcesResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:dataSources:ListDataSourcesResponse'
, listDataSourcesResponse_dataSources
- A list of data sources.
$sel:nextToken:ListDataSources'
, listDataSourcesResponse_nextToken
- The token for the next set of results, or null if there are no more
results.
$sel:status:ListDataSourcesResponse'
, listDataSourcesResponse_status
- The HTTP status of the request.
Response Lenses
listDataSourcesResponse_requestId :: Lens' ListDataSourcesResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
listDataSourcesResponse_dataSources :: Lens' ListDataSourcesResponse (Maybe [DataSource]) Source #
A list of data sources.
listDataSourcesResponse_nextToken :: Lens' ListDataSourcesResponse (Maybe Text) Source #
The token for the next set of results, or null if there are no more results.
listDataSourcesResponse_status :: Lens' ListDataSourcesResponse Int Source #
The HTTP status of the request.