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.BackupGateway.ListHypervisors
Description
Lists your hypervisors.
This operation returns paginated results.
Synopsis
- data ListHypervisors = ListHypervisors' {}
- newListHypervisors :: ListHypervisors
- listHypervisors_maxResults :: Lens' ListHypervisors (Maybe Natural)
- listHypervisors_nextToken :: Lens' ListHypervisors (Maybe Text)
- data ListHypervisorsResponse = ListHypervisorsResponse' {
- hypervisors :: Maybe [Hypervisor]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListHypervisorsResponse :: Int -> ListHypervisorsResponse
- listHypervisorsResponse_hypervisors :: Lens' ListHypervisorsResponse (Maybe [Hypervisor])
- listHypervisorsResponse_nextToken :: Lens' ListHypervisorsResponse (Maybe Text)
- listHypervisorsResponse_httpStatus :: Lens' ListHypervisorsResponse Int
Creating a Request
data ListHypervisors Source #
See: newListHypervisors
smart constructor.
Constructors
ListHypervisors' | |
Fields
|
Instances
newListHypervisors :: ListHypervisors Source #
Create a value of ListHypervisors
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:ListHypervisors'
, listHypervisors_maxResults
- The maximum number of hypervisors to list.
ListHypervisors
, listHypervisors_nextToken
- The next item following a partial list of returned resources. For
example, if a request is made to return maxResults
number of
resources, NextToken
allows you to return more items in your list
starting at the location pointed to by the next token.
Request Lenses
listHypervisors_maxResults :: Lens' ListHypervisors (Maybe Natural) Source #
The maximum number of hypervisors to list.
listHypervisors_nextToken :: Lens' ListHypervisors (Maybe Text) Source #
The next item following a partial list of returned resources. For
example, if a request is made to return maxResults
number of
resources, NextToken
allows you to return more items in your list
starting at the location pointed to by the next token.
Destructuring the Response
data ListHypervisorsResponse Source #
See: newListHypervisorsResponse
smart constructor.
Constructors
ListHypervisorsResponse' | |
Fields
|
Instances
newListHypervisorsResponse Source #
Create a value of ListHypervisorsResponse
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:hypervisors:ListHypervisorsResponse'
, listHypervisorsResponse_hypervisors
- A list of your Hypervisor
objects, ordered by their Amazon Resource
Names (ARNs).
ListHypervisors
, listHypervisorsResponse_nextToken
- The next item following a partial list of returned resources. For
example, if a request is made to return maxResults
number of
resources, NextToken
allows you to return more items in your list
starting at the location pointed to by the next token.
$sel:httpStatus:ListHypervisorsResponse'
, listHypervisorsResponse_httpStatus
- The response's http status code.
Response Lenses
listHypervisorsResponse_hypervisors :: Lens' ListHypervisorsResponse (Maybe [Hypervisor]) Source #
A list of your Hypervisor
objects, ordered by their Amazon Resource
Names (ARNs).
listHypervisorsResponse_nextToken :: Lens' ListHypervisorsResponse (Maybe Text) Source #
The next item following a partial list of returned resources. For
example, if a request is made to return maxResults
number of
resources, NextToken
allows you to return more items in your list
starting at the location pointed to by the next token.
listHypervisorsResponse_httpStatus :: Lens' ListHypervisorsResponse Int Source #
The response's http status code.