Using phone number deletion protection in AWS End User Messaging SMS
When you turn on deletion protection you will not be able to release the phone number until deletion protection is disabled. By default deletion protection is turned off.
- Enable deletion protection (Console)
-
To change deletion protection using the AWS End User Messaging SMS console, follow these steps:
Enable deletion protection (Console)
Open the AWS End User Messaging SMS console at https://console.aws.amazon.com/sms-voice/
. -
In the navigation pane, under Configurations, choose Phone numbers.
-
On the Phone numbers page, choose the phone number that will have deletion protection enabled.
On the Deletion protection tab, choose the Edit settings button.
-
Choose Enable deletion protection and then Save changes.
- Disable deletion protection (Console)
-
To change deletion protection using the AWS End User Messaging SMS console, follow these steps:
Enable deletion protection (Console)
Open the AWS End User Messaging SMS console at https://console.aws.amazon.com/sms-voice/
. -
In the navigation pane, under Configurations, choose Phone numbers.
-
On the Phone numbers page, choose the phone number that will have deletion protection enabled.
On the Deletion protection tab, choose the Edit settings button.
-
Clear Enable deletion protection and then Save changes.
- Enable deletion protection (AWS CLI)
-
You can use the update-phone-number command to enable deletion protection the phone number.
At the command line, enter the following command:
$
aws pinpoint-sms-voice-v2 update-phone-number --phonenumber-idPhoneNumberid
--deletion-protection-enabledIn the preceding command, make the following changes:
-
Replace
PhoneNumberid
with the PhoneNumberID or Amazon Resource Name (ARN) of the phone number.
-