| 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.GetPhoneNumber
Description
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.
Constructors
| GetPhoneNumber' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetPhoneNumber |
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:
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.
Constructors
| GetPhoneNumberResponse' | |
Fields
| |
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:
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.