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 |
Amazonka.Chime.BatchDeletePhoneNumber
Description
Moves phone numbers into the Deletion queue. Phone numbers must be disassociated from any users or Amazon Chime Voice Connectors before they can be deleted.
Phone numbers remain in the Deletion queue for 7 days before they are deleted permanently.
Synopsis
- data BatchDeletePhoneNumber = BatchDeletePhoneNumber' {}
- newBatchDeletePhoneNumber :: NonEmpty Text -> BatchDeletePhoneNumber
- batchDeletePhoneNumber_phoneNumberIds :: Lens' BatchDeletePhoneNumber (NonEmpty Text)
- data BatchDeletePhoneNumberResponse = BatchDeletePhoneNumberResponse' {}
- newBatchDeletePhoneNumberResponse :: Int -> BatchDeletePhoneNumberResponse
- batchDeletePhoneNumberResponse_phoneNumberErrors :: Lens' BatchDeletePhoneNumberResponse (Maybe [PhoneNumberError])
- batchDeletePhoneNumberResponse_httpStatus :: Lens' BatchDeletePhoneNumberResponse Int
Creating a Request
data BatchDeletePhoneNumber Source #
See: newBatchDeletePhoneNumber
smart constructor.
Constructors
BatchDeletePhoneNumber' | |
Fields
|
Instances
newBatchDeletePhoneNumber Source #
Create a value of BatchDeletePhoneNumber
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:phoneNumberIds:BatchDeletePhoneNumber'
, batchDeletePhoneNumber_phoneNumberIds
- List of phone number IDs.
Request Lenses
batchDeletePhoneNumber_phoneNumberIds :: Lens' BatchDeletePhoneNumber (NonEmpty Text) Source #
List of phone number IDs.
Destructuring the Response
data BatchDeletePhoneNumberResponse Source #
See: newBatchDeletePhoneNumberResponse
smart constructor.
Constructors
BatchDeletePhoneNumberResponse' | |
Fields
|
Instances
newBatchDeletePhoneNumberResponse Source #
Create a value of BatchDeletePhoneNumberResponse
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:BatchDeletePhoneNumberResponse'
, batchDeletePhoneNumberResponse_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:BatchDeletePhoneNumberResponse'
, batchDeletePhoneNumberResponse_httpStatus
- The response's http status code.
Response Lenses
batchDeletePhoneNumberResponse_phoneNumberErrors :: Lens' BatchDeletePhoneNumberResponse (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.
batchDeletePhoneNumberResponse_httpStatus :: Lens' BatchDeletePhoneNumberResponse Int Source #
The response's http status code.