| 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.SSMContacts.ListContactChannels
Description
Lists all contact channels for the specified contact.
This operation returns paginated results.
Synopsis
- data ListContactChannels = ListContactChannels' {}
- newListContactChannels :: Text -> ListContactChannels
- listContactChannels_maxResults :: Lens' ListContactChannels (Maybe Natural)
- listContactChannels_nextToken :: Lens' ListContactChannels (Maybe Text)
- 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.
Constructors
| ListContactChannels' | |
Instances
newListContactChannels Source #
Arguments
| :: Text | |
| -> ListContactChannels |
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:maxResults:ListContactChannels', listContactChannels_maxResults - The maximum number of contact channels per page.
ListContactChannels, listContactChannels_nextToken - The pagination token to continue to the next page of results.
ListContactChannels, listContactChannels_contactId - The Amazon Resource Name (ARN) of the contact.
Request Lenses
listContactChannels_maxResults :: Lens' ListContactChannels (Maybe Natural) Source #
The maximum number of contact channels per page.
listContactChannels_nextToken :: Lens' ListContactChannels (Maybe Text) Source #
The pagination token to continue to the next page of results.
listContactChannels_contactId :: Lens' ListContactChannels Text Source #
The Amazon Resource Name (ARN) of the contact.
Destructuring the Response
data ListContactChannelsResponse Source #
See: newListContactChannelsResponse smart constructor.
Constructors
| ListContactChannelsResponse' | |
Fields
| |
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:
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.