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 |
Lists all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports.
Synopsis
- data ListVersions = ListVersions' {}
- newListVersions :: ListVersions
- listVersions_maxResults :: Lens' ListVersions (Maybe Int)
- listVersions_nextToken :: Lens' ListVersions (Maybe Text)
- data ListVersionsResponse = ListVersionsResponse' {}
- newListVersionsResponse :: Int -> ListVersionsResponse
- listVersionsResponse_nextToken :: Lens' ListVersionsResponse (Maybe Text)
- listVersionsResponse_versions :: Lens' ListVersionsResponse (Maybe [Text])
- listVersionsResponse_httpStatus :: Lens' ListVersionsResponse Int
Creating a Request
data ListVersions Source #
Container for the request parameters to the ListVersions
operation.
See: newListVersions
smart constructor.
ListVersions' | |
|
Instances
newListVersions :: ListVersions Source #
Create a value of ListVersions
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:maxResults:ListVersions'
, listVersions_maxResults
- An optional parameter that specifies the maximum number of results to
return. You can use nextToken
to get the next page of results.
ListVersions
, listVersions_nextToken
- If your initial ListVersions
operation returns a nextToken
, you can
include the returned nextToken
in subsequent ListVersions
operations, which returns results in the next page.
Request Lenses
listVersions_maxResults :: Lens' ListVersions (Maybe Int) Source #
An optional parameter that specifies the maximum number of results to
return. You can use nextToken
to get the next page of results.
listVersions_nextToken :: Lens' ListVersions (Maybe Text) Source #
If your initial ListVersions
operation returns a nextToken
, you can
include the returned nextToken
in subsequent ListVersions
operations, which returns results in the next page.
Destructuring the Response
data ListVersionsResponse Source #
Container for the parameters for response received from the
ListVersions
operation.
See: newListVersionsResponse
smart constructor.
ListVersionsResponse' | |
|
Instances
newListVersionsResponse Source #
Create a value of ListVersionsResponse
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:
ListVersions
, listVersionsResponse_nextToken
- When 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.
$sel:versions:ListVersionsResponse'
, listVersionsResponse_versions
- A list of all versions of OpenSearch and Elasticsearch that Amazon
OpenSearch Service supports.
$sel:httpStatus:ListVersionsResponse'
, listVersionsResponse_httpStatus
- The response's http status code.
Response Lenses
listVersionsResponse_nextToken :: Lens' ListVersionsResponse (Maybe Text) Source #
When 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.
listVersionsResponse_versions :: Lens' ListVersionsResponse (Maybe [Text]) Source #
A list of all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports.
listVersionsResponse_httpStatus :: Lens' ListVersionsResponse Int Source #
The response's http status code.