| 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.Chime.ListPhoneNumbers
Description
Lists the phone numbers for the specified Amazon Chime account, Amazon Chime user, Amazon Chime Voice Connector, or Amazon Chime Voice Connector group.
Synopsis
- data ListPhoneNumbers = ListPhoneNumbers' {}
- newListPhoneNumbers :: ListPhoneNumbers
- listPhoneNumbers_filterName :: Lens' ListPhoneNumbers (Maybe PhoneNumberAssociationName)
- listPhoneNumbers_filterValue :: Lens' ListPhoneNumbers (Maybe Text)
- listPhoneNumbers_maxResults :: Lens' ListPhoneNumbers (Maybe Natural)
- listPhoneNumbers_nextToken :: Lens' ListPhoneNumbers (Maybe Text)
- listPhoneNumbers_productType :: Lens' ListPhoneNumbers (Maybe PhoneNumberProductType)
- listPhoneNumbers_status :: Lens' ListPhoneNumbers (Maybe PhoneNumberStatus)
- data ListPhoneNumbersResponse = ListPhoneNumbersResponse' {
- nextToken :: Maybe Text
- phoneNumbers :: Maybe [PhoneNumber]
- httpStatus :: Int
- newListPhoneNumbersResponse :: Int -> ListPhoneNumbersResponse
- listPhoneNumbersResponse_nextToken :: Lens' ListPhoneNumbersResponse (Maybe Text)
- listPhoneNumbersResponse_phoneNumbers :: Lens' ListPhoneNumbersResponse (Maybe [PhoneNumber])
- listPhoneNumbersResponse_httpStatus :: Lens' ListPhoneNumbersResponse Int
Creating a Request
data ListPhoneNumbers Source #
See: newListPhoneNumbers smart constructor.
Constructors
| ListPhoneNumbers' | |
Fields
| |
Instances
newListPhoneNumbers :: ListPhoneNumbers Source #
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:filterName:ListPhoneNumbers', listPhoneNumbers_filterName - The filter to use to limit the number of results.
$sel:filterValue:ListPhoneNumbers', listPhoneNumbers_filterValue - The value to use for the filter.
$sel:maxResults:ListPhoneNumbers', listPhoneNumbers_maxResults - The maximum number of results to return in a single call.
ListPhoneNumbers, listPhoneNumbers_nextToken - The token to use to retrieve the next page of results.
ListPhoneNumbers, listPhoneNumbers_productType - The phone number product type.
ListPhoneNumbers, listPhoneNumbers_status - The phone number status.
Request Lenses
listPhoneNumbers_filterName :: Lens' ListPhoneNumbers (Maybe PhoneNumberAssociationName) Source #
The filter to use to limit the number of results.
listPhoneNumbers_filterValue :: Lens' ListPhoneNumbers (Maybe Text) Source #
The value to use for the filter.
listPhoneNumbers_maxResults :: Lens' ListPhoneNumbers (Maybe Natural) Source #
The maximum number of results to return in a single call.
listPhoneNumbers_nextToken :: Lens' ListPhoneNumbers (Maybe Text) Source #
The token to use to retrieve the next page of results.
listPhoneNumbers_productType :: Lens' ListPhoneNumbers (Maybe PhoneNumberProductType) Source #
The phone number product type.
listPhoneNumbers_status :: Lens' ListPhoneNumbers (Maybe PhoneNumberStatus) Source #
The phone number status.
Destructuring the Response
data ListPhoneNumbersResponse Source #
See: newListPhoneNumbersResponse smart constructor.
Constructors
| ListPhoneNumbersResponse' | |
Fields
| |
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 - The token to use to retrieve the next page of results.
$sel:phoneNumbers:ListPhoneNumbersResponse', listPhoneNumbersResponse_phoneNumbers - The phone number details.
$sel:httpStatus:ListPhoneNumbersResponse', listPhoneNumbersResponse_httpStatus - The response's http status code.
Response Lenses
listPhoneNumbersResponse_nextToken :: Lens' ListPhoneNumbersResponse (Maybe Text) Source #
The token to use to retrieve the next page of results.
listPhoneNumbersResponse_phoneNumbers :: Lens' ListPhoneNumbersResponse (Maybe [PhoneNumber]) Source #
The phone number details.
listPhoneNumbersResponse_httpStatus :: Lens' ListPhoneNumbersResponse Int Source #
The response's http status code.