To query phone number override rules, you can use the AWS End User Messaging SMS console, the ListProtectConfigurationRuleSetNumberOverrides action in the AWS End User Messaging SMS and voice v2 API, or the list-protect-configuration-rule-set-number-overrides command in the AWS CLI. This section shows how to query phone number override rules using the AWS End User Messaging SMS console and the AWS CLI.
To query a phone number override rule using the AWS End User Messaging SMS console, follow these steps:
Open the AWS End User Messaging SMS console at https://console.aws.amazon.com/sms-voice/
. -
In the navigation pane, under Protect, choose Protect configuration and then choose the protect configuration.
-
Choose the Rule overrides tab.
-
In Query rule overrides you can search for rules with a combination of all three of the available fields Destination phone number, Override type, and Date:
-
For Destination phone number:
-
All numbers – Do not filter out any phone numbers.
-
Number lookup – Enter a prefix or full phone number to filter on.
-
By country – Choose a country to filter on.
-
-
For Override type:
-
Always allowed – Only return allow rules.
-
Always blocked – Only return block rules.
-
-
For Date
-
All dates – Do not filter out any dates.
-
Recently added – Return phone number override rules that were created in the last 24 hours.
-
Expires before – Return phone number override rules that expire before the specified date.
-
Expires on – Return phone number override rules that expire on the specified date.
-
Expires after – Return phone number override rules that expire after the specified date.
-
-
-
Choose Query.
Any phone number override rules that match your query are returned in the Query results section. You can choose rules from the section to edit or delete.