:doc:`PinpointSMSVoiceV2 <../../pinpoint-sms-voice-v2>` / Client / send_destination_number_verification_code

*****************************************
send_destination_number_verification_code
*****************************************



.. py:method:: PinpointSMSVoiceV2.Client.send_destination_number_verification_code(**kwargs)

  

  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.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SendDestinationNumberVerificationCode>`_  


  **Request Syntax**
  ::

    response = client.send_destination_number_verification_code(
        VerifiedDestinationNumberId='string',
        VerificationChannel='TEXT'|'VOICE',
        LanguageCode='DE_DE'|'EN_GB'|'EN_US'|'ES_419'|'ES_ES'|'FR_CA'|'FR_FR'|'IT_IT'|'JA_JP'|'KO_KR'|'PT_BR'|'ZH_CN'|'ZH_TW',
        OriginationIdentity='string',
        ConfigurationSetName='string',
        Context={
            'string': 'string'
        },
        DestinationCountryParameters={
            'string': 'string'
        }
    )
    
  :type VerifiedDestinationNumberId: string
  :param VerifiedDestinationNumberId: **[REQUIRED]** 

    The unique identifier for the verified destination phone number.

    

  
  :type VerificationChannel: string
  :param VerificationChannel: **[REQUIRED]** 

    Choose to send the verification code as an SMS or voice message.

    

  
  :type LanguageCode: string
  :param LanguageCode: 

    Choose the language to use for the message.

    

  
  :type OriginationIdentity: string
  :param OriginationIdentity: 

    The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

     

    .. warning::

       

      If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).

      

    

  
  :type ConfigurationSetName: string
  :param ConfigurationSetName: 

    The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

    

  
  :type Context: dict
  :param Context: 

    You can specify custom data in this field. If you do, that data is logged to the event destination.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type DestinationCountryParameters: dict
  :param DestinationCountryParameters: 

    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 <https://docs.aws.amazon.com/pinpoint/latest/userguide/channels-sms-senderid-india.html>`__.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'MessageId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **MessageId** *(string) --* 

        The unique identifier for the message.

        
  
  **Exceptions**
  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ValidationException`

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.ConflictException`

  
  *   :py:class:`PinpointSMSVoiceV2.Client.exceptions.InternalServerException`

  