| 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.ListContacts
Description
Lists all contacts and escalation plans in Incident Manager.
This operation returns paginated results.
Synopsis
- data ListContacts = ListContacts' {}
- newListContacts :: ListContacts
- listContacts_aliasPrefix :: Lens' ListContacts (Maybe Text)
- listContacts_maxResults :: Lens' ListContacts (Maybe Natural)
- listContacts_nextToken :: Lens' ListContacts (Maybe Text)
- listContacts_type :: Lens' ListContacts (Maybe ContactType)
- data ListContactsResponse = ListContactsResponse' {}
- newListContactsResponse :: Int -> ListContactsResponse
- listContactsResponse_contacts :: Lens' ListContactsResponse (Maybe [Contact])
- listContactsResponse_nextToken :: Lens' ListContactsResponse (Maybe Text)
- listContactsResponse_httpStatus :: Lens' ListContactsResponse Int
Creating a Request
data ListContacts Source #
See: newListContacts smart constructor.
Constructors
| ListContacts' | |
Fields
| |
Instances
newListContacts :: ListContacts Source #
Create a value of ListContacts 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:aliasPrefix:ListContacts', listContacts_aliasPrefix - Used to list only contacts who's aliases start with the specified
prefix.
$sel:maxResults:ListContacts', listContacts_maxResults - The maximum number of contacts and escalation plans per page of results.
ListContacts, listContacts_nextToken - The pagination token to continue to the next page of results.
ListContacts, listContacts_type - The type of contact. A contact is type PERSONAL and an escalation plan
is type ESCALATION.
Request Lenses
listContacts_aliasPrefix :: Lens' ListContacts (Maybe Text) Source #
Used to list only contacts who's aliases start with the specified prefix.
listContacts_maxResults :: Lens' ListContacts (Maybe Natural) Source #
The maximum number of contacts and escalation plans per page of results.
listContacts_nextToken :: Lens' ListContacts (Maybe Text) Source #
The pagination token to continue to the next page of results.
listContacts_type :: Lens' ListContacts (Maybe ContactType) Source #
The type of contact. A contact is type PERSONAL and an escalation plan
is type ESCALATION.
Destructuring the Response
data ListContactsResponse Source #
See: newListContactsResponse smart constructor.
Constructors
| ListContactsResponse' | |
Instances
newListContactsResponse Source #
Arguments
| :: Int | |
| -> ListContactsResponse |
Create a value of ListContactsResponse 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:contacts:ListContactsResponse', listContactsResponse_contacts - A list of the contacts and escalation plans in your Incident Manager
account.
ListContacts, listContactsResponse_nextToken - The pagination token to continue to the next page of results.
$sel:httpStatus:ListContactsResponse', listContactsResponse_httpStatus - The response's http status code.
Response Lenses
listContactsResponse_contacts :: Lens' ListContactsResponse (Maybe [Contact]) Source #
A list of the contacts and escalation plans in your Incident Manager account.
listContactsResponse_nextToken :: Lens' ListContactsResponse (Maybe Text) Source #
The pagination token to continue to the next page of results.
listContactsResponse_httpStatus :: Lens' ListContactsResponse Int Source #
The response's http status code.