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 |
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.
The phone number Arn
value that is returned from each of the items in
the
PhoneNumberSummaryList
cannot be used to tag phone number resources. It will fail with a
ResourceNotFoundException
. Instead, use the
ListPhoneNumbersV2
API. It returns the new phone number ARN that can be used to tag phone
number resources.
This operation returns paginated results.
Synopsis
- data ListPhoneNumbers = ListPhoneNumbers' {}
- newListPhoneNumbers :: Text -> ListPhoneNumbers
- listPhoneNumbers_maxResults :: Lens' ListPhoneNumbers (Maybe Natural)
- listPhoneNumbers_nextToken :: Lens' ListPhoneNumbers (Maybe Text)
- listPhoneNumbers_phoneNumberCountryCodes :: Lens' ListPhoneNumbers (Maybe [PhoneNumberCountryCode])
- listPhoneNumbers_phoneNumberTypes :: Lens' ListPhoneNumbers (Maybe [PhoneNumberType])
- listPhoneNumbers_instanceId :: Lens' ListPhoneNumbers Text
- data ListPhoneNumbersResponse = ListPhoneNumbersResponse' {}
- newListPhoneNumbersResponse :: Int -> ListPhoneNumbersResponse
- listPhoneNumbersResponse_nextToken :: Lens' ListPhoneNumbersResponse (Maybe Text)
- listPhoneNumbersResponse_phoneNumberSummaryList :: Lens' ListPhoneNumbersResponse (Maybe [PhoneNumberSummary])
- 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:maxResults:ListPhoneNumbers'
, listPhoneNumbers_maxResults
- The maximum number of results to return per page. The default MaxResult
size is 100.
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:phoneNumberCountryCodes:ListPhoneNumbers'
, listPhoneNumbers_phoneNumberCountryCodes
- The ISO country code.
$sel:phoneNumberTypes:ListPhoneNumbers'
, listPhoneNumbers_phoneNumberTypes
- The type of phone number.
ListPhoneNumbers
, listPhoneNumbers_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
Request Lenses
listPhoneNumbers_maxResults :: Lens' ListPhoneNumbers (Maybe Natural) Source #
The maximum number of results to return per page. The default MaxResult size is 100.
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_phoneNumberCountryCodes :: Lens' ListPhoneNumbers (Maybe [PhoneNumberCountryCode]) Source #
The ISO country code.
listPhoneNumbers_phoneNumberTypes :: Lens' ListPhoneNumbers (Maybe [PhoneNumberType]) Source #
The type of phone number.
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:
ListPhoneNumbers
, listPhoneNumbersResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:phoneNumberSummaryList:ListPhoneNumbersResponse'
, listPhoneNumbersResponse_phoneNumberSummaryList
- Information about the phone numbers.
$sel:httpStatus:ListPhoneNumbersResponse'
, listPhoneNumbersResponse_httpStatus
- The response's http status code.
Response Lenses
listPhoneNumbersResponse_nextToken :: Lens' ListPhoneNumbersResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listPhoneNumbersResponse_phoneNumberSummaryList :: Lens' ListPhoneNumbersResponse (Maybe [PhoneNumberSummary]) Source #
Information about the phone numbers.
listPhoneNumbersResponse_httpStatus :: Lens' ListPhoneNumbersResponse Int Source #
The response's http status code.