Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns a list of
DomainSummary
objects for all domains owned by the AWS account that makes this call.
Each returned DomainSummary
object contains information about a
domain.
This operation returns paginated results.
Synopsis
- data ListDomains = ListDomains' {}
- newListDomains :: ListDomains
- listDomains_nextToken :: Lens' ListDomains (Maybe Text)
- listDomains_maxResults :: Lens' ListDomains (Maybe Natural)
- data ListDomainsResponse = ListDomainsResponse' {
- nextToken :: Maybe Text
- domains :: Maybe [DomainSummary]
- httpStatus :: Int
- newListDomainsResponse :: Int -> ListDomainsResponse
- listDomainsResponse_nextToken :: Lens' ListDomainsResponse (Maybe Text)
- listDomainsResponse_domains :: Lens' ListDomainsResponse (Maybe [DomainSummary])
- listDomainsResponse_httpStatus :: Lens' ListDomainsResponse Int
Creating a Request
data ListDomains Source #
See: newListDomains
smart constructor.
Instances
newListDomains :: ListDomains Source #
Create a value of ListDomains
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:nextToken:ListDomains'
, listDomains_nextToken
- The token for the next set of results. Use the value returned in the
previous response in the next request to retrieve the next set of
results.
$sel:maxResults:ListDomains'
, listDomains_maxResults
- The maximum number of results to return per page.
Request Lenses
listDomains_nextToken :: Lens' ListDomains (Maybe Text) Source #
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
listDomains_maxResults :: Lens' ListDomains (Maybe Natural) Source #
The maximum number of results to return per page.
Destructuring the Response
data ListDomainsResponse Source #
See: newListDomainsResponse
smart constructor.
ListDomainsResponse' | |
|
Instances
newListDomainsResponse Source #
Create a value of ListDomainsResponse
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:nextToken:ListDomains'
, listDomainsResponse_nextToken
- The token for the next set of results. Use the value returned in the
previous response in the next request to retrieve the next set of
results.
$sel:domains:ListDomainsResponse'
, listDomainsResponse_domains
- The returned list of
DomainSummary
objects.
$sel:httpStatus:ListDomainsResponse'
, listDomainsResponse_httpStatus
- The response's http status code.
Response Lenses
listDomainsResponse_nextToken :: Lens' ListDomainsResponse (Maybe Text) Source #
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
listDomainsResponse_domains :: Lens' ListDomainsResponse (Maybe [DomainSummary]) Source #
The returned list of DomainSummary objects.
listDomainsResponse_httpStatus :: Lens' ListDomainsResponse Int Source #
The response's http status code.