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 |
Provides information about the phone numbers for the specified Amazon Connect instance.
For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.
This operation returns paginated results.
Synopsis
- data ListPhoneNumbers = ListPhoneNumbers' {}
- newListPhoneNumbers :: Text -> ListPhoneNumbers
- listPhoneNumbers_phoneNumberTypes :: Lens' ListPhoneNumbers (Maybe [PhoneNumberType])
- listPhoneNumbers_phoneNumberCountryCodes :: Lens' ListPhoneNumbers (Maybe [PhoneNumberCountryCode])
- listPhoneNumbers_nextToken :: Lens' ListPhoneNumbers (Maybe Text)
- listPhoneNumbers_maxResults :: Lens' ListPhoneNumbers (Maybe Natural)
- listPhoneNumbers_instanceId :: Lens' ListPhoneNumbers Text
- data ListPhoneNumbersResponse = ListPhoneNumbersResponse' {}
- newListPhoneNumbersResponse :: Int -> ListPhoneNumbersResponse
- listPhoneNumbersResponse_phoneNumberSummaryList :: Lens' ListPhoneNumbersResponse (Maybe [PhoneNumberSummary])
- listPhoneNumbersResponse_nextToken :: Lens' ListPhoneNumbersResponse (Maybe Text)
- listPhoneNumbersResponse_httpStatus :: Lens' ListPhoneNumbersResponse Int
Creating a Request
data ListPhoneNumbers Source #
See: newListPhoneNumbers
smart constructor.
ListPhoneNumbers' | |
|
Instances
Create a value of ListPhoneNumbers
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:phoneNumberTypes:ListPhoneNumbers'
, listPhoneNumbers_phoneNumberTypes
- The type of phone number.
$sel:phoneNumberCountryCodes:ListPhoneNumbers'
, listPhoneNumbers_phoneNumberCountryCodes
- The ISO country code.
$sel:nextToken:ListPhoneNumbers'
, listPhoneNumbers_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:ListPhoneNumbers'
, listPhoneNumbers_maxResults
- The maximum number of results to return per page.
$sel:instanceId:ListPhoneNumbers'
, listPhoneNumbers_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
Request Lenses
listPhoneNumbers_phoneNumberTypes :: Lens' ListPhoneNumbers (Maybe [PhoneNumberType]) Source #
The type of phone number.
listPhoneNumbers_phoneNumberCountryCodes :: Lens' ListPhoneNumbers (Maybe [PhoneNumberCountryCode]) Source #
The ISO country code.
listPhoneNumbers_nextToken :: Lens' ListPhoneNumbers (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.
listPhoneNumbers_maxResults :: Lens' ListPhoneNumbers (Maybe Natural) Source #
The maximum number of results to return per page.
listPhoneNumbers_instanceId :: Lens' ListPhoneNumbers Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
Destructuring the Response
data ListPhoneNumbersResponse Source #
See: newListPhoneNumbersResponse
smart constructor.
ListPhoneNumbersResponse' | |
|
Instances
newListPhoneNumbersResponse Source #
Create a value of ListPhoneNumbersResponse
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:phoneNumberSummaryList:ListPhoneNumbersResponse'
, listPhoneNumbersResponse_phoneNumberSummaryList
- Information about the phone numbers.
$sel:nextToken:ListPhoneNumbers'
, listPhoneNumbersResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:httpStatus:ListPhoneNumbersResponse'
, listPhoneNumbersResponse_httpStatus
- The response's http status code.
Response Lenses
listPhoneNumbersResponse_phoneNumberSummaryList :: Lens' ListPhoneNumbersResponse (Maybe [PhoneNumberSummary]) Source #
Information about the phone numbers.
listPhoneNumbersResponse_nextToken :: Lens' ListPhoneNumbersResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listPhoneNumbersResponse_httpStatus :: Lens' ListPhoneNumbersResponse Int Source #
The response's http status code.