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 list of source locations.
This operation returns paginated results.
Synopsis
- data ListSourceLocations = ListSourceLocations' {}
- newListSourceLocations :: ListSourceLocations
- listSourceLocations_nextToken :: Lens' ListSourceLocations (Maybe Text)
- listSourceLocations_maxResults :: Lens' ListSourceLocations (Maybe Natural)
- data ListSourceLocationsResponse = ListSourceLocationsResponse' {
- items :: Maybe [SourceLocation]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListSourceLocationsResponse :: Int -> ListSourceLocationsResponse
- listSourceLocationsResponse_items :: Lens' ListSourceLocationsResponse (Maybe [SourceLocation])
- listSourceLocationsResponse_nextToken :: Lens' ListSourceLocationsResponse (Maybe Text)
- listSourceLocationsResponse_httpStatus :: Lens' ListSourceLocationsResponse Int
Creating a Request
data ListSourceLocations Source #
See: newListSourceLocations
smart constructor.
Instances
newListSourceLocations :: ListSourceLocations Source #
Create a value of ListSourceLocations
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:ListSourceLocations'
, listSourceLocations_nextToken
- Pagination token from the GET list request. Use the token to fetch the
next page of results.
$sel:maxResults:ListSourceLocations'
, listSourceLocations_maxResults
- Upper bound on number of records to return. The maximum number of
results is 100.
Request Lenses
listSourceLocations_nextToken :: Lens' ListSourceLocations (Maybe Text) Source #
Pagination token from the GET list request. Use the token to fetch the next page of results.
listSourceLocations_maxResults :: Lens' ListSourceLocations (Maybe Natural) Source #
Upper bound on number of records to return. The maximum number of results is 100.
Destructuring the Response
data ListSourceLocationsResponse Source #
See: newListSourceLocationsResponse
smart constructor.
ListSourceLocationsResponse' | |
|
Instances
newListSourceLocationsResponse Source #
Create a value of ListSourceLocationsResponse
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:items:ListSourceLocationsResponse'
, listSourceLocationsResponse_items
- An array of source locations.
$sel:nextToken:ListSourceLocations'
, listSourceLocationsResponse_nextToken
- Pagination token from the list request. Use the token to fetch the next
page of results.
$sel:httpStatus:ListSourceLocationsResponse'
, listSourceLocationsResponse_httpStatus
- The response's http status code.
Response Lenses
listSourceLocationsResponse_items :: Lens' ListSourceLocationsResponse (Maybe [SourceLocation]) Source #
An array of source locations.
listSourceLocationsResponse_nextToken :: Lens' ListSourceLocationsResponse (Maybe Text) Source #
Pagination token from the list request. Use the token to fetch the next page of results.
listSourceLocationsResponse_httpStatus :: Lens' ListSourceLocationsResponse Int Source #
The response's http status code.