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 product types or calling names. You can update one
attribute at a time for each UpdatePhoneNumberRequestItem
. For
example, you can update the product type or the calling name.
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 up to 72 hours to complete. Pending updates to outbound calling names must be complete before you can request another update.
Synopsis
- data BatchUpdatePhoneNumber = BatchUpdatePhoneNumber' {}
- newBatchUpdatePhoneNumber :: BatchUpdatePhoneNumber
- batchUpdatePhoneNumber_updatePhoneNumberRequestItems :: Lens' BatchUpdatePhoneNumber [UpdatePhoneNumberRequestItem]
- data BatchUpdatePhoneNumberResponse = BatchUpdatePhoneNumberResponse' {}
- newBatchUpdatePhoneNumberResponse :: Int -> BatchUpdatePhoneNumberResponse
- batchUpdatePhoneNumberResponse_phoneNumberErrors :: Lens' BatchUpdatePhoneNumberResponse (Maybe [PhoneNumberError])
- batchUpdatePhoneNumberResponse_httpStatus :: Lens' BatchUpdatePhoneNumberResponse Int
Creating a Request
data BatchUpdatePhoneNumber Source #
See: newBatchUpdatePhoneNumber
smart constructor.
BatchUpdatePhoneNumber' | |
|
Instances
newBatchUpdatePhoneNumber :: BatchUpdatePhoneNumber Source #
Create a value of BatchUpdatePhoneNumber
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:updatePhoneNumberRequestItems:BatchUpdatePhoneNumber'
, batchUpdatePhoneNumber_updatePhoneNumberRequestItems
- The request containing the phone number IDs and product types or calling
names to update.
Request Lenses
batchUpdatePhoneNumber_updatePhoneNumberRequestItems :: Lens' BatchUpdatePhoneNumber [UpdatePhoneNumberRequestItem] Source #
The request containing the phone number IDs and product types or calling names to update.
Destructuring the Response
data BatchUpdatePhoneNumberResponse Source #
See: newBatchUpdatePhoneNumberResponse
smart constructor.
BatchUpdatePhoneNumberResponse' | |
|
Instances
Eq BatchUpdatePhoneNumberResponse Source # | |
Read BatchUpdatePhoneNumberResponse Source # | |
Show BatchUpdatePhoneNumberResponse Source # | |
Defined in Amazonka.Chime.BatchUpdatePhoneNumber | |
Generic BatchUpdatePhoneNumberResponse Source # | |
NFData BatchUpdatePhoneNumberResponse Source # | |
Defined in Amazonka.Chime.BatchUpdatePhoneNumber rnf :: BatchUpdatePhoneNumberResponse -> () # | |
type Rep BatchUpdatePhoneNumberResponse Source # | |
Defined in Amazonka.Chime.BatchUpdatePhoneNumber type Rep BatchUpdatePhoneNumberResponse = D1 ('MetaData "BatchUpdatePhoneNumberResponse" "Amazonka.Chime.BatchUpdatePhoneNumber" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "BatchUpdatePhoneNumberResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "phoneNumberErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PhoneNumberError])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newBatchUpdatePhoneNumberResponse Source #
Create a value of BatchUpdatePhoneNumberResponse
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:phoneNumberErrors:BatchUpdatePhoneNumberResponse'
, batchUpdatePhoneNumberResponse_phoneNumberErrors
- If the action fails for one or more of the phone numbers in the request,
a list of the phone numbers is returned, along with error codes and
error messages.
$sel:httpStatus:BatchUpdatePhoneNumberResponse'
, batchUpdatePhoneNumberResponse_httpStatus
- The response's http status code.
Response Lenses
batchUpdatePhoneNumberResponse_phoneNumberErrors :: Lens' BatchUpdatePhoneNumberResponse (Maybe [PhoneNumberError]) Source #
If the action fails for one or more of the phone numbers in the request, a list of the phone numbers is returned, along with error codes and error messages.
batchUpdatePhoneNumberResponse_httpStatus :: Lens' BatchUpdatePhoneNumberResponse Int Source #
The response's http status code.