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 |
Lists the mail domains in a given Amazon WorkMail organization.
Synopsis
- data ListMailDomains = ListMailDomains' {}
- newListMailDomains :: Text -> ListMailDomains
- listMailDomains_nextToken :: Lens' ListMailDomains (Maybe Text)
- listMailDomains_maxResults :: Lens' ListMailDomains (Maybe Natural)
- listMailDomains_organizationId :: Lens' ListMailDomains Text
- data ListMailDomainsResponse = ListMailDomainsResponse' {
- nextToken :: Maybe Text
- mailDomains :: Maybe [MailDomainSummary]
- httpStatus :: Int
- newListMailDomainsResponse :: Int -> ListMailDomainsResponse
- listMailDomainsResponse_nextToken :: Lens' ListMailDomainsResponse (Maybe Text)
- listMailDomainsResponse_mailDomains :: Lens' ListMailDomainsResponse (Maybe [MailDomainSummary])
- listMailDomainsResponse_httpStatus :: Lens' ListMailDomainsResponse Int
Creating a Request
data ListMailDomains Source #
See: newListMailDomains
smart constructor.
ListMailDomains' | |
|
Instances
Create a value of ListMailDomains
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:ListMailDomains'
, listMailDomains_nextToken
- The token to use to retrieve the next page of results. The first call
does not require a token.
$sel:maxResults:ListMailDomains'
, listMailDomains_maxResults
- The maximum number of results to return in a single call.
$sel:organizationId:ListMailDomains'
, listMailDomains_organizationId
- The Amazon WorkMail organization for which to list domains.
Request Lenses
listMailDomains_nextToken :: Lens' ListMailDomains (Maybe Text) Source #
The token to use to retrieve the next page of results. The first call does not require a token.
listMailDomains_maxResults :: Lens' ListMailDomains (Maybe Natural) Source #
The maximum number of results to return in a single call.
listMailDomains_organizationId :: Lens' ListMailDomains Text Source #
The Amazon WorkMail organization for which to list domains.
Destructuring the Response
data ListMailDomainsResponse Source #
See: newListMailDomainsResponse
smart constructor.
ListMailDomainsResponse' | |
|
Instances
newListMailDomainsResponse Source #
Create a value of ListMailDomainsResponse
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:ListMailDomains'
, listMailDomainsResponse_nextToken
- The token to use to retrieve the next page of results. The value becomes
null
when there are no more results to return.
$sel:mailDomains:ListMailDomainsResponse'
, listMailDomainsResponse_mailDomains
- The list of mail domain summaries, specifying domains that exist in the
specified Amazon WorkMail organization, along with the information about
whether the domain is or isn't the default.
$sel:httpStatus:ListMailDomainsResponse'
, listMailDomainsResponse_httpStatus
- The response's http status code.
Response Lenses
listMailDomainsResponse_nextToken :: Lens' ListMailDomainsResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. The value becomes
null
when there are no more results to return.
listMailDomainsResponse_mailDomains :: Lens' ListMailDomainsResponse (Maybe [MailDomainSummary]) Source #
The list of mail domain summaries, specifying domains that exist in the specified Amazon WorkMail organization, along with the information about whether the domain is or isn't the default.
listMailDomainsResponse_httpStatus :: Lens' ListMailDomainsResponse Int Source #
The response's http status code.