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 all contact channels for the specified contact.
This operation returns paginated results.
Synopsis
- data ListContactChannels = ListContactChannels' {}
- newListContactChannels :: Text -> ListContactChannels
- listContactChannels_nextToken :: Lens' ListContactChannels (Maybe Text)
- listContactChannels_maxResults :: Lens' ListContactChannels (Maybe Natural)
- listContactChannels_contactId :: Lens' ListContactChannels Text
- data ListContactChannelsResponse = ListContactChannelsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- contactChannels :: [ContactChannel]
- newListContactChannelsResponse :: Int -> ListContactChannelsResponse
- listContactChannelsResponse_nextToken :: Lens' ListContactChannelsResponse (Maybe Text)
- listContactChannelsResponse_httpStatus :: Lens' ListContactChannelsResponse Int
- listContactChannelsResponse_contactChannels :: Lens' ListContactChannelsResponse [ContactChannel]
Creating a Request
data ListContactChannels Source #
See: newListContactChannels
smart constructor.
Instances
newListContactChannels Source #
Create a value of ListContactChannels
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:ListContactChannels'
, listContactChannels_nextToken
- The pagination token to continue to the next page of results.
$sel:maxResults:ListContactChannels'
, listContactChannels_maxResults
- The maximum number of contact channels per page.
$sel:contactId:ListContactChannels'
, listContactChannels_contactId
- The Amazon Resource Name (ARN) of the contact.
Request Lenses
listContactChannels_nextToken :: Lens' ListContactChannels (Maybe Text) Source #
The pagination token to continue to the next page of results.
listContactChannels_maxResults :: Lens' ListContactChannels (Maybe Natural) Source #
The maximum number of contact channels per page.
listContactChannels_contactId :: Lens' ListContactChannels Text Source #
The Amazon Resource Name (ARN) of the contact.
Destructuring the Response
data ListContactChannelsResponse Source #
See: newListContactChannelsResponse
smart constructor.
ListContactChannelsResponse' | |
|
Instances
newListContactChannelsResponse Source #
Create a value of ListContactChannelsResponse
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:ListContactChannels'
, listContactChannelsResponse_nextToken
- The pagination token to continue to the next page of results.
$sel:httpStatus:ListContactChannelsResponse'
, listContactChannelsResponse_httpStatus
- The response's http status code.
$sel:contactChannels:ListContactChannelsResponse'
, listContactChannelsResponse_contactChannels
- A list of contact channels related to the specified contact.
Response Lenses
listContactChannelsResponse_nextToken :: Lens' ListContactChannelsResponse (Maybe Text) Source #
The pagination token to continue to the next page of results.
listContactChannelsResponse_httpStatus :: Lens' ListContactChannelsResponse Int Source #
The response's http status code.
listContactChannelsResponse_contactChannels :: Lens' ListContactChannelsResponse [ContactChannel] Source #
A list of contact channels related to the specified contact.