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 |
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_status :: Lens' ListPhoneNumbers (Maybe PhoneNumberStatus)
- listPhoneNumbers_filterName :: Lens' ListPhoneNumbers (Maybe PhoneNumberAssociationName)
- listPhoneNumbers_productType :: Lens' ListPhoneNumbers (Maybe PhoneNumberProductType)
- listPhoneNumbers_nextToken :: Lens' ListPhoneNumbers (Maybe Text)
- listPhoneNumbers_filterValue :: Lens' ListPhoneNumbers (Maybe Text)
- listPhoneNumbers_maxResults :: Lens' ListPhoneNumbers (Maybe Natural)
- 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.
ListPhoneNumbers' | |
|
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:status:ListPhoneNumbers'
, listPhoneNumbers_status
- The phone number status.
$sel:filterName:ListPhoneNumbers'
, listPhoneNumbers_filterName
- The filter to use to limit the number of results.
$sel:productType:ListPhoneNumbers'
, listPhoneNumbers_productType
- The phone number product type.
$sel:nextToken:ListPhoneNumbers'
, listPhoneNumbers_nextToken
- The token to use to retrieve the next page 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.
Request Lenses
listPhoneNumbers_status :: Lens' ListPhoneNumbers (Maybe PhoneNumberStatus) Source #
The phone number status.
listPhoneNumbers_filterName :: Lens' ListPhoneNumbers (Maybe PhoneNumberAssociationName) Source #
The filter to use to limit the number of results.
listPhoneNumbers_productType :: Lens' ListPhoneNumbers (Maybe PhoneNumberProductType) Source #
The phone number product type.
listPhoneNumbers_nextToken :: Lens' ListPhoneNumbers (Maybe Text) Source #
The token to use to retrieve the next page 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.
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:nextToken: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.