put_protect_configuration_rule_set_number_override
async
¶
put_protect_configuration_rule_set_number_override(
protect_configuration_id: ProtectConfigurationIdOrArn,
destination_phone_number: PhoneNumber,
action: ProtectConfigurationRuleOverrideAction,
*,
config_overrides: Optional[AsyncPinpointSMSVoiceV2ClientConfig] = 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/async_pinpoint_sms_voice_v2.py
5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 | |