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 |
Retrieves details for the specified phone number ID, such as associations, capabilities, and product type.
Synopsis
- data GetPhoneNumber = GetPhoneNumber' {}
- newGetPhoneNumber :: Text -> GetPhoneNumber
- getPhoneNumber_phoneNumberId :: Lens' GetPhoneNumber Text
- data GetPhoneNumberResponse = GetPhoneNumberResponse' {}
- newGetPhoneNumberResponse :: Int -> GetPhoneNumberResponse
- getPhoneNumberResponse_phoneNumber :: Lens' GetPhoneNumberResponse (Maybe PhoneNumber)
- getPhoneNumberResponse_httpStatus :: Lens' GetPhoneNumberResponse Int
Creating a Request
data GetPhoneNumber Source #
See: newGetPhoneNumber
smart constructor.
GetPhoneNumber' | |
|
Instances
Create a value of GetPhoneNumber
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:phoneNumberId:GetPhoneNumber'
, getPhoneNumber_phoneNumberId
- The phone number ID.
Request Lenses
getPhoneNumber_phoneNumberId :: Lens' GetPhoneNumber Text Source #
The phone number ID.
Destructuring the Response
data GetPhoneNumberResponse Source #
See: newGetPhoneNumberResponse
smart constructor.
GetPhoneNumberResponse' | |
|
Instances
newGetPhoneNumberResponse Source #
Create a value of GetPhoneNumberResponse
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:phoneNumber:GetPhoneNumberResponse'
, getPhoneNumberResponse_phoneNumber
- The phone number details.
$sel:httpStatus:GetPhoneNumberResponse'
, getPhoneNumberResponse_httpStatus
- The response's http status code.
Response Lenses
getPhoneNumberResponse_phoneNumber :: Lens' GetPhoneNumberResponse (Maybe PhoneNumber) Source #
The phone number details.
getPhoneNumberResponse_httpStatus :: Lens' GetPhoneNumberResponse Int Source #
The response's http status code.