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 contexts in your account and their properties.
This operation returns paginated results.
Synopsis
- data ListContexts = ListContexts' {}
- newListContexts :: ListContexts
- listContexts_createdAfter :: Lens' ListContexts (Maybe UTCTime)
- listContexts_nextToken :: Lens' ListContexts (Maybe Text)
- listContexts_sortOrder :: Lens' ListContexts (Maybe SortOrder)
- listContexts_contextType :: Lens' ListContexts (Maybe Text)
- listContexts_sourceUri :: Lens' ListContexts (Maybe Text)
- listContexts_maxResults :: Lens' ListContexts (Maybe Natural)
- listContexts_createdBefore :: Lens' ListContexts (Maybe UTCTime)
- listContexts_sortBy :: Lens' ListContexts (Maybe SortContextsBy)
- data ListContextsResponse = ListContextsResponse' {}
- newListContextsResponse :: Int -> ListContextsResponse
- listContextsResponse_contextSummaries :: Lens' ListContextsResponse (Maybe [ContextSummary])
- listContextsResponse_nextToken :: Lens' ListContextsResponse (Maybe Text)
- listContextsResponse_httpStatus :: Lens' ListContextsResponse Int
Creating a Request
data ListContexts Source #
See: newListContexts
smart constructor.
ListContexts' | |
|
Instances
newListContexts :: ListContexts Source #
Create a value of ListContexts
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:createdAfter:ListContexts'
, listContexts_createdAfter
- A filter that returns only contexts created on or after the specified
time.
$sel:nextToken:ListContexts'
, listContexts_nextToken
- If the previous call to ListContexts
didn't return the full set of
contexts, the call returns a token for getting the next set of contexts.
$sel:sortOrder:ListContexts'
, listContexts_sortOrder
- The sort order. The default value is Descending
.
$sel:contextType:ListContexts'
, listContexts_contextType
- A filter that returns only contexts of the specified type.
$sel:sourceUri:ListContexts'
, listContexts_sourceUri
- A filter that returns only contexts with the specified source URI.
$sel:maxResults:ListContexts'
, listContexts_maxResults
- The maximum number of contexts to return in the response. The default
value is 10.
$sel:createdBefore:ListContexts'
, listContexts_createdBefore
- A filter that returns only contexts created on or before the specified
time.
$sel:sortBy:ListContexts'
, listContexts_sortBy
- The property used to sort results. The default value is CreationTime
.
Request Lenses
listContexts_createdAfter :: Lens' ListContexts (Maybe UTCTime) Source #
A filter that returns only contexts created on or after the specified time.
listContexts_nextToken :: Lens' ListContexts (Maybe Text) Source #
If the previous call to ListContexts
didn't return the full set of
contexts, the call returns a token for getting the next set of contexts.
listContexts_sortOrder :: Lens' ListContexts (Maybe SortOrder) Source #
The sort order. The default value is Descending
.
listContexts_contextType :: Lens' ListContexts (Maybe Text) Source #
A filter that returns only contexts of the specified type.
listContexts_sourceUri :: Lens' ListContexts (Maybe Text) Source #
A filter that returns only contexts with the specified source URI.
listContexts_maxResults :: Lens' ListContexts (Maybe Natural) Source #
The maximum number of contexts to return in the response. The default value is 10.
listContexts_createdBefore :: Lens' ListContexts (Maybe UTCTime) Source #
A filter that returns only contexts created on or before the specified time.
listContexts_sortBy :: Lens' ListContexts (Maybe SortContextsBy) Source #
The property used to sort results. The default value is CreationTime
.
Destructuring the Response
data ListContextsResponse Source #
See: newListContextsResponse
smart constructor.
ListContextsResponse' | |
|
Instances
newListContextsResponse Source #
Create a value of ListContextsResponse
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:contextSummaries:ListContextsResponse'
, listContextsResponse_contextSummaries
- A list of contexts and their properties.
$sel:nextToken:ListContexts'
, listContextsResponse_nextToken
- A token for getting the next set of contexts, if there are any.
$sel:httpStatus:ListContextsResponse'
, listContextsResponse_httpStatus
- The response's http status code.
Response Lenses
listContextsResponse_contextSummaries :: Lens' ListContextsResponse (Maybe [ContextSummary]) Source #
A list of contexts and their properties.
listContextsResponse_nextToken :: Lens' ListContextsResponse (Maybe Text) Source #
A token for getting the next set of contexts, if there are any.
listContextsResponse_httpStatus :: Lens' ListContextsResponse Int Source #
The response's http status code.