| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.SageMaker.ListContexts
Description
Lists the contexts in your account and their properties.
This operation returns paginated results.
Synopsis
- data ListContexts = ListContexts' {}
 - newListContexts :: ListContexts
 - listContexts_contextType :: Lens' ListContexts (Maybe Text)
 - listContexts_createdAfter :: Lens' ListContexts (Maybe UTCTime)
 - listContexts_createdBefore :: Lens' ListContexts (Maybe UTCTime)
 - listContexts_maxResults :: Lens' ListContexts (Maybe Natural)
 - listContexts_nextToken :: Lens' ListContexts (Maybe Text)
 - listContexts_sortBy :: Lens' ListContexts (Maybe SortContextsBy)
 - listContexts_sortOrder :: Lens' ListContexts (Maybe SortOrder)
 - listContexts_sourceUri :: Lens' ListContexts (Maybe Text)
 - 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.
Constructors
| ListContexts' | |
Fields 
  | |
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:
ListContexts, listContexts_contextType - A filter that returns only contexts of the specified type.
ListContexts, listContexts_createdAfter - A filter that returns only contexts created on or after the specified
 time.
ListContexts, listContexts_createdBefore - A filter that returns only contexts created on or before the specified
 time.
$sel:maxResults:ListContexts', listContexts_maxResults - The maximum number of contexts to return in the response. The default
 value is 10.
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:sortBy:ListContexts', listContexts_sortBy - The property used to sort results. The default value is CreationTime.
$sel:sortOrder:ListContexts', listContexts_sortOrder - The sort order. The default value is Descending.
ListContexts, listContexts_sourceUri - A filter that returns only contexts with the specified source URI.
Request Lenses
listContexts_contextType :: Lens' ListContexts (Maybe Text) Source #
A filter that returns only contexts of the specified type.
listContexts_createdAfter :: Lens' ListContexts (Maybe UTCTime) Source #
A filter that returns only contexts created on or after the specified time.
listContexts_createdBefore :: Lens' ListContexts (Maybe UTCTime) Source #
A filter that returns only contexts created on or before the specified time.
listContexts_maxResults :: Lens' ListContexts (Maybe Natural) Source #
The maximum number of contexts to return in the response. The default value is 10.
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_sortBy :: Lens' ListContexts (Maybe SortContextsBy) Source #
The property used to sort results. The default value is CreationTime.
listContexts_sortOrder :: Lens' ListContexts (Maybe SortOrder) Source #
The sort order. The default value is Descending.
listContexts_sourceUri :: Lens' ListContexts (Maybe Text) Source #
A filter that returns only contexts with the specified source URI.
Destructuring the Response
data ListContextsResponse Source #
See: newListContextsResponse smart constructor.
Constructors
| ListContextsResponse' | |
Fields 
  | |
Instances
newListContextsResponse Source #
Arguments
| :: Int | |
| -> ListContextsResponse | 
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.
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.