send_destination_number_verification_code
async
¶
send_destination_number_verification_code(
verified_destination_number_id: VerifiedDestinationNumberIdOrArn,
verification_channel: VerificationChannel,
*,
config_overrides: Optional[AsyncPinpointSMSVoiceV2ClientConfig] = None,
language_code: Optional[LanguageCode] = None,
origination_identity: Optional[VerificationMessageOriginationIdentity] = None,
configuration_set_name: Optional[ConfigurationSetNameOrArn] = None,
context: Optional[ContextMap] = None,
destination_country_parameters: Optional[DestinationCountryParameters] = None,
) -> SendDestinationNumberVerificationCodeResult
Before you can send test messages to a verified destination phone number you need to opt-in the verified destination phone number. Creates a new text message with a verification code and send it to a verified destination phone number. Once you have the verification code use VerifyDestinationNumber to opt-in the verified destination phone number to receive messages.
Parameters:
-
verified_destination_number_id(VerifiedDestinationNumberIdOrArn) –The unique identifier for the verified destination phone number.
-
verification_channel(VerificationChannel) –Choose to send the verification code as an SMS or voice message.
-
language_code(Optional[LanguageCode], default:None) –Choose the language to use for the message.
-
origination_identity(Optional[VerificationMessageOriginationIdentity], default:None) –The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.
If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).
-
configuration_set_name(Optional[ConfigurationSetNameOrArn], default:None) –The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
-
context(Optional[ContextMap], default:None) –You can specify custom data in this field. If you do, that data is logged to the event destination.
-
destination_country_parameters(Optional[DestinationCountryParameters], default:None) –This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.
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
5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 | |