update_protect_configuration_country_rule_set
¶
update_protect_configuration_country_rule_set(
protect_configuration_id: ProtectConfigurationIdOrArn,
number_capability: NumberCapability,
country_rule_set_updates: ProtectConfigurationCountryRuleSet,
*,
config_overrides: Optional[PinpointSMSVoiceV2ClientConfig] = None,
) -> UpdateProtectConfigurationCountryRuleSetResult
Update a country rule set to ALLOW, BLOCK, MONITOR, or FILTER 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.
Parameters:
-
protect_configuration_id(ProtectConfigurationIdOrArn) –The unique identifier for the protect configuration.
-
number_capability(NumberCapability) –The number capability to apply the CountryRuleSetUpdates updates to.
-
country_rule_set_updates(ProtectConfigurationCountryRuleSet) –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 Supported countries and regions (SMS channel) in the End User Messaging SMS User Guide.
For example, to set the United States as allowed and Canada as blocked, the
CountryRuleSetUpdateswould be formatted as:"CountryRuleSetUpdates": { "US" : { "ProtectStatus": "ALLOW" } "CA" : { "ProtectStatus": "BLOCK" } }
Raises:
-
AccessDeniedException–The request was denied because you don't have sufficient permissions to access the resource.
-
InternalServerException–The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.
-
ResourceNotFoundException–A requested resource couldn't be found.
-
ThrottlingException–An error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–A validation exception for a field.
-
UnknownServiceError–The service returned an error code this client does not model.