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 |
Updates phone number details, such as product type or calling name, for the specified phone number ID. You can update one phone number detail at a time. For example, you can update either the product type or the calling name in one action.
For toll-free numbers, you cannot use the Amazon Chime Business Calling product type. For numbers outside the U.S., you must use the Amazon Chime SIP Media Application Dial-In product type.
Updates to outbound calling names can take 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update.
Synopsis
- data UpdatePhoneNumber = UpdatePhoneNumber' {}
- newUpdatePhoneNumber :: Text -> UpdatePhoneNumber
- updatePhoneNumber_productType :: Lens' UpdatePhoneNumber (Maybe PhoneNumberProductType)
- updatePhoneNumber_callingName :: Lens' UpdatePhoneNumber (Maybe Text)
- updatePhoneNumber_phoneNumberId :: Lens' UpdatePhoneNumber Text
- data UpdatePhoneNumberResponse = UpdatePhoneNumberResponse' {}
- newUpdatePhoneNumberResponse :: Int -> UpdatePhoneNumberResponse
- updatePhoneNumberResponse_phoneNumber :: Lens' UpdatePhoneNumberResponse (Maybe PhoneNumber)
- updatePhoneNumberResponse_httpStatus :: Lens' UpdatePhoneNumberResponse Int
Creating a Request
data UpdatePhoneNumber Source #
See: newUpdatePhoneNumber
smart constructor.
UpdatePhoneNumber' | |
|
Instances
Create a value of UpdatePhoneNumber
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:productType:UpdatePhoneNumber'
, updatePhoneNumber_productType
- The product type.
$sel:callingName:UpdatePhoneNumber'
, updatePhoneNumber_callingName
- The outbound calling name associated with the phone number.
$sel:phoneNumberId:UpdatePhoneNumber'
, updatePhoneNumber_phoneNumberId
- The phone number ID.
Request Lenses
updatePhoneNumber_productType :: Lens' UpdatePhoneNumber (Maybe PhoneNumberProductType) Source #
The product type.
updatePhoneNumber_callingName :: Lens' UpdatePhoneNumber (Maybe Text) Source #
The outbound calling name associated with the phone number.
updatePhoneNumber_phoneNumberId :: Lens' UpdatePhoneNumber Text Source #
The phone number ID.
Destructuring the Response
data UpdatePhoneNumberResponse Source #
See: newUpdatePhoneNumberResponse
smart constructor.
UpdatePhoneNumberResponse' | |
|
Instances
newUpdatePhoneNumberResponse Source #
Create a value of UpdatePhoneNumberResponse
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:UpdatePhoneNumberResponse'
, updatePhoneNumberResponse_phoneNumber
- The updated phone number details.
$sel:httpStatus:UpdatePhoneNumberResponse'
, updatePhoneNumberResponse_httpStatus
- The response's http status code.
Response Lenses
updatePhoneNumberResponse_phoneNumber :: Lens' UpdatePhoneNumberResponse (Maybe PhoneNumber) Source #
The updated phone number details.
updatePhoneNumberResponse_httpStatus :: Lens' UpdatePhoneNumberResponse Int Source #
The response's http status code.