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 existing activities.
If nextToken
is returned, there are more results available. The value
of nextToken
is a unique pagination token for each page. Make the call
again using the returned token to retrieve the next page. Keep all other
arguments unchanged. Each pagination token expires after 24 hours. Using
an expired pagination token will return an HTTP 400 InvalidToken
error.
This operation is eventually consistent. The results are best effort and may not reflect very recent updates and changes.
This operation returns paginated results.
Synopsis
- data ListActivities = ListActivities' {}
- newListActivities :: ListActivities
- listActivities_nextToken :: Lens' ListActivities (Maybe Text)
- listActivities_maxResults :: Lens' ListActivities (Maybe Natural)
- data ListActivitiesResponse = ListActivitiesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- activities :: [ActivityListItem]
- newListActivitiesResponse :: Int -> ListActivitiesResponse
- listActivitiesResponse_nextToken :: Lens' ListActivitiesResponse (Maybe Text)
- listActivitiesResponse_httpStatus :: Lens' ListActivitiesResponse Int
- listActivitiesResponse_activities :: Lens' ListActivitiesResponse [ActivityListItem]
Creating a Request
data ListActivities Source #
See: newListActivities
smart constructor.
ListActivities' | |
|
Instances
newListActivities :: ListActivities Source #
Create a value of ListActivities
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:ListActivities'
, listActivities_nextToken
- If nextToken
is returned, there are more results available. The value
of nextToken
is a unique pagination token for each page. Make the call
again using the returned token to retrieve the next page. Keep all other
arguments unchanged. Each pagination token expires after 24 hours. Using
an expired pagination token will return an HTTP 400 InvalidToken
error.
$sel:maxResults:ListActivities'
, listActivities_maxResults
- The maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 100 and
the maximum allowed page size is 1000. A value of 0 uses the default.
This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
Request Lenses
listActivities_nextToken :: Lens' ListActivities (Maybe Text) Source #
If nextToken
is returned, there are more results available. The value
of nextToken
is a unique pagination token for each page. Make the call
again using the returned token to retrieve the next page. Keep all other
arguments unchanged. Each pagination token expires after 24 hours. Using
an expired pagination token will return an HTTP 400 InvalidToken
error.
listActivities_maxResults :: Lens' ListActivities (Maybe Natural) Source #
The maximum number of results that are returned per call. You can use
nextToken
to obtain further pages of results. The default is 100 and
the maximum allowed page size is 1000. A value of 0 uses the default.
This is only an upper limit. The actual number of results returned per call might be fewer than the specified maximum.
Destructuring the Response
data ListActivitiesResponse Source #
See: newListActivitiesResponse
smart constructor.
ListActivitiesResponse' | |
|
Instances
newListActivitiesResponse Source #
Create a value of ListActivitiesResponse
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:ListActivities'
, listActivitiesResponse_nextToken
- If nextToken
is returned, there are more results available. The value
of nextToken
is a unique pagination token for each page. Make the call
again using the returned token to retrieve the next page. Keep all other
arguments unchanged. Each pagination token expires after 24 hours. Using
an expired pagination token will return an HTTP 400 InvalidToken
error.
$sel:httpStatus:ListActivitiesResponse'
, listActivitiesResponse_httpStatus
- The response's http status code.
$sel:activities:ListActivitiesResponse'
, listActivitiesResponse_activities
- The list of activities.
Response Lenses
listActivitiesResponse_nextToken :: Lens' ListActivitiesResponse (Maybe Text) Source #
If nextToken
is returned, there are more results available. The value
of nextToken
is a unique pagination token for each page. Make the call
again using the returned token to retrieve the next page. Keep all other
arguments unchanged. Each pagination token expires after 24 hours. Using
an expired pagination token will return an HTTP 400 InvalidToken
error.
listActivitiesResponse_httpStatus :: Lens' ListActivitiesResponse Int Source #
The response's http status code.
listActivitiesResponse_activities :: Lens' ListActivitiesResponse [ActivityListItem] Source #
The list of activities.