Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Change a protect configuration country rules in AWS End User Messaging SMS

Focus mode
Change a protect configuration country rules in AWS End User Messaging SMS - AWS End User Messaging SMS

Protect configuration country rules either allow or block messages for each destination country. To update protect configuration country rules, you can use the AWS End User Messaging SMS console or the aws sms-voice update-protect-configuration-country-rule-set command in the AWS CLI. This section shows how to update the protect configuration country rules using the AWS End User Messaging SMS console and the AWS CLI.

Note

You can only change your MMS country rules list through the AWS End User Messaging SMS and voice v2 API or AWS CLI.

Edit a protect configuration (Console)

To edit a protect configuration using the AWS End User Messaging SMS console, follow these steps:

  1. Open the AWS End User Messaging SMS console at https://console.aws.amazon.com/sms-voice/.

  2. In the navigation pane, under Protect, choose Protect configuration.

  3. On the Protect configuration page, choose a protect configuration and then choose Edit.

  4. In the protect configuration details table choose the SMS rules or Voice rules tab.

  5. In the SMS/Voice country rules tab check the countries to change the rules for and then choose Block or Allow. For more information on country rule modes, see Country rule modes. You can sort and filter the country list based on Country, Region and Rule.

  6. In the Status change confirmation window review your changes and then choose Confirm to apply them.

The new country rule set is now used for the protect configuration.

Edit a protect configuration (AWS CLI)

You can use the update-protect-configuration-country-set command to change a protect configuration's country rules. You can change up to 300 country rules at a time.

To edit a protect configuration
  • To edit two country rules at the command line, enter the following command:

    aws pinpoint-sms-voice-v2 update-protect-configuration-country-rule-set --protect-configuration-id ProtectConfigId --number-capability Capability --country-rule-set-updates '{"CountryISO1":{"ProtectStatus": "Rule1"}, "CountryISO2": {"ProtectStatus":"Rule2"}}'

    In the preceding command, make the following changes:

To edit a protect configuration using the AWS End User Messaging SMS console, follow these steps:

  1. Open the AWS End User Messaging SMS console at https://console.aws.amazon.com/sms-voice/.

  2. In the navigation pane, under Protect, choose Protect configuration.

  3. On the Protect configuration page, choose a protect configuration and then choose Edit.

  4. In the protect configuration details table choose the SMS rules or Voice rules tab.

  5. In the SMS/Voice country rules tab check the countries to change the rules for and then choose Block or Allow. For more information on country rule modes, see Country rule modes. You can sort and filter the country list based on Country, Region and Rule.

  6. In the Status change confirmation window review your changes and then choose Confirm to apply them.

The new country rule set is now used for the protect configuration.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.