v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14109583546.7 KB

Update a country rule set to <code>ALLOW</code>, <code>BLOCK</code>, <code>MONITOR</code>, or <code>FILTER</code> messages to be sent to the specified destination counties. You can update one or multiple countries at a time. The updates are only applied to the specified NumberCapability type.

post/#X-Amz-Target=PinpointSMSVoiceV2.UpdateProtectConfigurationCountryRuleSet

Headers

X-Amz-Target'PinpointSMSVoiceV2.UpdateProtectConfigurationCountryRuleSet' required

Request body

ProtectConfigurationIdstring required

The unique identifier for the protect configuration.

NumberCapability'SMS' | 'VOICE' | 'MMS' | 'RCS' required

The number capability to apply the CountryRuleSetUpdates updates to.

CountryRuleSetUpdatesobject required
<p>A map of ProtectConfigurationCountryRuleSetInformation objects that contain the details for the requested NumberCapability. The Key is the two-letter ISO country code. For a list of supported ISO country codes, see <a href="https://docs.aws.amazon.com/sms-voice/latest/userguide/phone-numbers-sms-by-country.html">Supported countries and regions (SMS channel)</a> in the End User Messaging SMS User Guide.</p> <p>For example, to set the United States as allowed and Canada as blocked, the <code>CountryRuleSetUpdates</code> would be formatted as: <code>"CountryRuleSetUpdates": { "US" : { "ProtectStatus": "ALLOW" } "CA" : { "ProtectStatus": "BLOCK" } }</code> </p>

Response

Success

ProtectConfigurationArnstring required

The Amazon Resource Name (ARN) of the protect configuration.

ProtectConfigurationIdstring required

The unique identifier for the protect configuration.

NumberCapability'SMS' | 'VOICE' | 'MMS' | 'RCS' required

The number capability that was updated

CountryRuleSetobject required

An array of ProtectConfigurationCountryRuleSetInformation containing the rules for the NumberCapability.