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 the Amazon resource names (ARNs) of the views available in the Amazon Web Services Region in which you call this operation.
Always check the NextToken
response parameter for a null
value when
calling a paginated operation. These operations can occasionally return
an empty set of results even when there are more results available. The
NextToken
response parameter value is null
only when there are no
more results to display.
This operation returns paginated results.
Synopsis
- data ListViews = ListViews' {}
- newListViews :: ListViews
- listViews_maxResults :: Lens' ListViews (Maybe Natural)
- listViews_nextToken :: Lens' ListViews (Maybe Text)
- data ListViewsResponse = ListViewsResponse' {}
- newListViewsResponse :: Int -> ListViewsResponse
- listViewsResponse_nextToken :: Lens' ListViewsResponse (Maybe Text)
- listViewsResponse_views :: Lens' ListViewsResponse (Maybe [Text])
- listViewsResponse_httpStatus :: Lens' ListViewsResponse Int
Creating a Request
See: newListViews
smart constructor.
ListViews' | |
|
Instances
newListViews :: ListViews Source #
Create a value of ListViews
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:ListViews'
, listViews_maxResults
- The maximum number of results that you want included on each page of the
response. If you do not include this parameter, it defaults to a value
appropriate to the operation. If additional items exist beyond those
included in the current response, the NextToken
response element is
present and has a value (is not null). Include that value as the
NextToken
request parameter in the next call to the operation to get
the next part of the results.
An API operation can return fewer results than the maximum even when
there are more results available. You should check NextToken
after
every operation to ensure that you receive all of the results.
ListViews
, listViews_nextToken
- The parameter for receiving additional results if you receive a
NextToken
response in a previous request. A NextToken
response
indicates that more output is available. Set this parameter to the value
of the previous call's NextToken
response to indicate where the
output should continue from.
Request Lenses
listViews_maxResults :: Lens' ListViews (Maybe Natural) Source #
The maximum number of results that you want included on each page of the
response. If you do not include this parameter, it defaults to a value
appropriate to the operation. If additional items exist beyond those
included in the current response, the NextToken
response element is
present and has a value (is not null). Include that value as the
NextToken
request parameter in the next call to the operation to get
the next part of the results.
An API operation can return fewer results than the maximum even when
there are more results available. You should check NextToken
after
every operation to ensure that you receive all of the results.
listViews_nextToken :: Lens' ListViews (Maybe Text) Source #
The parameter for receiving additional results if you receive a
NextToken
response in a previous request. A NextToken
response
indicates that more output is available. Set this parameter to the value
of the previous call's NextToken
response to indicate where the
output should continue from.
Destructuring the Response
data ListViewsResponse Source #
See: newListViewsResponse
smart constructor.
ListViewsResponse' | |
|
Instances
Create a value of ListViewsResponse
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:
ListViews
, listViewsResponse_nextToken
- If present, indicates that more output is available than is included in
the current response. Use this value in the NextToken
request
parameter in a subsequent call to the operation to get the next part of
the output. You should repeat this until the NextToken
response
element comes back as null
.
$sel:views:ListViewsResponse'
, listViewsResponse_views
- The list of views available in the Amazon Web Services Region in which
you called this operation.
$sel:httpStatus:ListViewsResponse'
, listViewsResponse_httpStatus
- The response's http status code.
Response Lenses
listViewsResponse_nextToken :: Lens' ListViewsResponse (Maybe Text) Source #
If present, indicates that more output is available than is included in
the current response. Use this value in the NextToken
request
parameter in a subsequent call to the operation to get the next part of
the output. You should repeat this until the NextToken
response
element comes back as null
.
listViewsResponse_views :: Lens' ListViewsResponse (Maybe [Text]) Source #
The list of views available in the Amazon Web Services Region in which you called this operation.
listViewsResponse_httpStatus :: Lens' ListViewsResponse Int Source #
The response's http status code.