put_protect_configuration_rule_set_number_override
¶
put_protect_configuration_rule_set_number_override(
protect_configuration_id: ProtectConfigurationIdOrArn,
destination_phone_number: PhoneNumber,
action: ProtectConfigurationRuleOverrideAction,
*,
config_overrides: Optional[PinpointSMSVoiceV2ClientConfig] = None,
client_token: Optional[ClientToken] = None,
expiration_timestamp: Optional[datetime] = None,
) -> PutProtectConfigurationRuleSetNumberOverrideResult
Create or update a phone number rule override and associate it with a protect configuration.
Parameters:
-
client_token(Optional[ClientToken], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
-
protect_configuration_id(ProtectConfigurationIdOrArn) –The unique identifier for the protect configuration.
-
destination_phone_number(PhoneNumber) –The destination phone number in E.164 format.
-
action(ProtectConfigurationRuleOverrideAction) –The action for the rule to either block or allow messages to the destination phone number.
-
expiration_timestamp(Optional[datetime], default:None) –The time the rule will expire at. If
ExpirationTimestampis not set then the rule does not expire.
Raises:
-
AccessDeniedException–The request was denied because you don't have sufficient permissions to access the resource.
-
ConflictException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time or it could be that the requested action isn't valid for the current state or configuration of 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.
-
ServiceQuotaExceededException–The request would cause a service quota to be exceeded.
-
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.
Source code in docs_src/capo_pinpoint_sms_voice_v2/_services/pinpoint_sms_voice_v2.py
5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 | |