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 calling account's dedicated origination numbers and their metadata. For more information about origination numbers, see Origination numbers in the Amazon SNS Developer Guide.
This operation returns paginated results.
Synopsis
- data ListOriginationNumbers = ListOriginationNumbers' {}
- newListOriginationNumbers :: ListOriginationNumbers
- listOriginationNumbers_nextToken :: Lens' ListOriginationNumbers (Maybe Text)
- listOriginationNumbers_maxResults :: Lens' ListOriginationNumbers (Maybe Natural)
- data ListOriginationNumbersResponse = ListOriginationNumbersResponse' {}
- newListOriginationNumbersResponse :: Int -> ListOriginationNumbersResponse
- listOriginationNumbersResponse_nextToken :: Lens' ListOriginationNumbersResponse (Maybe Text)
- listOriginationNumbersResponse_phoneNumbers :: Lens' ListOriginationNumbersResponse (Maybe [PhoneNumberInformation])
- listOriginationNumbersResponse_httpStatus :: Lens' ListOriginationNumbersResponse Int
Creating a Request
data ListOriginationNumbers Source #
See: newListOriginationNumbers
smart constructor.
Instances
newListOriginationNumbers :: ListOriginationNumbers Source #
Create a value of ListOriginationNumbers
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:ListOriginationNumbers'
, listOriginationNumbers_nextToken
- Token that the previous ListOriginationNumbers
request returns.
$sel:maxResults:ListOriginationNumbers'
, listOriginationNumbers_maxResults
- The maximum number of origination numbers to return.
Request Lenses
listOriginationNumbers_nextToken :: Lens' ListOriginationNumbers (Maybe Text) Source #
Token that the previous ListOriginationNumbers
request returns.
listOriginationNumbers_maxResults :: Lens' ListOriginationNumbers (Maybe Natural) Source #
The maximum number of origination numbers to return.
Destructuring the Response
data ListOriginationNumbersResponse Source #
See: newListOriginationNumbersResponse
smart constructor.
ListOriginationNumbersResponse' | |
|
Instances
newListOriginationNumbersResponse Source #
Create a value of ListOriginationNumbersResponse
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:ListOriginationNumbers'
, listOriginationNumbersResponse_nextToken
- A NextToken
string is returned when you call the
ListOriginationNumbers
operation if additional pages of records are
available.
$sel:phoneNumbers:ListOriginationNumbersResponse'
, listOriginationNumbersResponse_phoneNumbers
- A list of the calling account's verified and pending origination
numbers.
$sel:httpStatus:ListOriginationNumbersResponse'
, listOriginationNumbersResponse_httpStatus
- The response's http status code.
Response Lenses
listOriginationNumbersResponse_nextToken :: Lens' ListOriginationNumbersResponse (Maybe Text) Source #
A NextToken
string is returned when you call the
ListOriginationNumbers
operation if additional pages of records are
available.
listOriginationNumbersResponse_phoneNumbers :: Lens' ListOriginationNumbersResponse (Maybe [PhoneNumberInformation]) Source #
A list of the calling account's verified and pending origination numbers.
listOriginationNumbersResponse_httpStatus :: Lens' ListOriginationNumbersResponse Int Source #
The response's http status code.