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 hosts associated with your account.
Synopsis
- data ListHosts = ListHosts' {}
- newListHosts :: ListHosts
- listHosts_maxResults :: Lens' ListHosts (Maybe Natural)
- listHosts_nextToken :: Lens' ListHosts (Maybe Text)
- data ListHostsResponse = ListHostsResponse' {}
- newListHostsResponse :: Int -> ListHostsResponse
- listHostsResponse_hosts :: Lens' ListHostsResponse (Maybe [Host])
- listHostsResponse_nextToken :: Lens' ListHostsResponse (Maybe Text)
- listHostsResponse_httpStatus :: Lens' ListHostsResponse Int
Creating a Request
See: newListHosts
smart constructor.
ListHosts' | |
|
Instances
newListHosts :: ListHosts Source #
Create a value of ListHosts
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:ListHosts'
, listHosts_maxResults
- The maximum number of results to return in a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
ListHosts
, listHosts_nextToken
- The token that was returned from the previous ListHosts
call, which
can be used to return the next set of hosts in the list.
Request Lenses
listHosts_maxResults :: Lens' ListHosts (Maybe Natural) Source #
The maximum number of results to return in a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
listHosts_nextToken :: Lens' ListHosts (Maybe Text) Source #
The token that was returned from the previous ListHosts
call, which
can be used to return the next set of hosts in the list.
Destructuring the Response
data ListHostsResponse Source #
See: newListHostsResponse
smart constructor.
ListHostsResponse' | |
|
Instances
Create a value of ListHostsResponse
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:hosts:ListHostsResponse'
, listHostsResponse_hosts
- A list of hosts and the details for each host, such as status, endpoint,
and provider type.
ListHosts
, listHostsResponse_nextToken
- A token that can be used in the next ListHosts
call. To view all items
in the list, continue to call this operation with each subsequent token
until no more nextToken
values are returned.
$sel:httpStatus:ListHostsResponse'
, listHostsResponse_httpStatus
- The response's http status code.
Response Lenses
listHostsResponse_hosts :: Lens' ListHostsResponse (Maybe [Host]) Source #
A list of hosts and the details for each host, such as status, endpoint, and provider type.
listHostsResponse_nextToken :: Lens' ListHostsResponse (Maybe Text) Source #
A token that can be used in the next ListHosts
call. To view all items
in the list, continue to call this operation with each subsequent token
until no more nextToken
values are returned.
listHostsResponse_httpStatus :: Lens' ListHostsResponse Int Source #
The response's http status code.