Skip to main content

protect_configuration_rule_set_number_overrides

Creates, updates, deletes, gets or lists a protect_configuration_rule_set_number_overrides resource.

Overview

Nameprotect_configuration_rule_set_number_overrides
TypeResource
Idaws.pinpoint_sms_voice_v2.protect_configuration_rule_set_number_overrides

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actionstringThe action for the rule to perform of either blocking or allowing messages to the destination phone number. (ALLOW, BLOCK)
created_timestampstring (date-time)The time when the rule was created, in UNIX epoch time format.
destination_phone_numberstringThe destination phone number in E.164 format. (pattern: <code>+?[1-9][0-9]{1,18}</code>)
expiration_timestampstring (date-time)The time the rule will expire at. If ExpirationTimestamp is not set then the rule will not expire.
iso_country_codestringThe two-character code, in ISO 3166-1 alpha-2 format, for the country or region. (pattern: <code>[A-Z]{2}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_protect_configuration_rule_set_number_overridesselectregionRetrieve all of the protect configuration rule set number overrides that match the filters.
put_protect_configuration_rule_set_number_overridereplaceregion, ProtectConfigurationId, DestinationPhoneNumberCreate or update a phone number rule override and associate it with a protect configuration.
delete_protect_configuration_rule_set_number_overridedeleteregionPermanently delete the protect configuration rule set number override.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieve all of the protect configuration rule set number overrides that match the filters.

SELECT
action,
created_timestamp,
destination_phone_number,
expiration_timestamp,
iso_country_code
FROM aws.pinpoint_sms_voice_v2.protect_configuration_rule_set_number_overrides
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Create or update a phone number rule override and associate it with a protect configuration.

REPLACE aws.pinpoint_sms_voice_v2.protect_configuration_rule_set_number_overrides
SET
ClientToken = '{{ ClientToken }}',
ProtectConfigurationId = '{{ ProtectConfigurationId }}',
DestinationPhoneNumber = '{{ DestinationPhoneNumber }}',
Action = '{{ Action }}',
ExpirationTimestamp = '{{ ExpirationTimestamp }}'
WHERE
region = '{{ region }}' --required
AND ProtectConfigurationId = '{{ ProtectConfigurationId }}' --required
AND DestinationPhoneNumber = '{{ DestinationPhoneNumber }}' --required
RETURNING
action,
created_timestamp,
destination_phone_number,
expiration_timestamp,
iso_country_code,
protect_configuration_arn,
protect_configuration_id;

DELETE examples

Permanently delete the protect configuration rule set number override.

DELETE FROM aws.pinpoint_sms_voice_v2.protect_configuration_rule_set_number_overrides
WHERE region = '{{ region }}' --required
;