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 |
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.
BatchDeletePhoneNumber' | |
|
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.
BatchDeletePhoneNumberResponse' | |
|
Instances
Eq BatchDeletePhoneNumberResponse Source # | |
Read BatchDeletePhoneNumberResponse Source # | |
Show BatchDeletePhoneNumberResponse Source # | |
Defined in Amazonka.Chime.BatchDeletePhoneNumber | |
Generic BatchDeletePhoneNumberResponse Source # | |
NFData BatchDeletePhoneNumberResponse Source # | |
Defined in Amazonka.Chime.BatchDeletePhoneNumber rnf :: BatchDeletePhoneNumberResponse -> () # | |
type Rep BatchDeletePhoneNumberResponse Source # | |
Defined in Amazonka.Chime.BatchDeletePhoneNumber type Rep BatchDeletePhoneNumberResponse = D1 ('MetaData "BatchDeletePhoneNumberResponse" "Amazonka.Chime.BatchDeletePhoneNumber" "libZSservicesZSamazonka-chimeZSamazonka-chime" 'False) (C1 ('MetaCons "BatchDeletePhoneNumberResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "phoneNumberErrors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PhoneNumberError])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.