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

****************
update_sender_id
****************



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

  

  Updates the configuration of an existing sender ID.

  

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


  **Request Syntax**
  ::

    response = client.update_sender_id(
        SenderId='string',
        IsoCountryCode='string',
        DeletionProtectionEnabled=True|False
    )
    
  :type SenderId: string
  :param SenderId: **[REQUIRED]** 

    The sender ID to update.

    

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

    The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

    

  
  :type DeletionProtectionEnabled: boolean
  :param DeletionProtectionEnabled: 

    By default this is set to false. When set to true the sender ID can't be deleted.

    

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

    
    ::

      {
          'SenderIdArn': 'string',
          'SenderId': 'string',
          'IsoCountryCode': 'string',
          'MessageTypes': [
              'TRANSACTIONAL'|'PROMOTIONAL',
          ],
          'MonthlyLeasingPrice': 'string',
          'DeletionProtectionEnabled': True|False,
          'Registered': True|False,
          'RegistrationId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SenderIdArn** *(string) --* 

        The Amazon Resource Name (ARN) associated with the SenderId.

        
      

      - **SenderId** *(string) --* 

        The sender ID that was updated.

        
      

      - **IsoCountryCode** *(string) --* 

        The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.

        
      

      - **MessageTypes** *(list) --* 

        The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

        
        

        - *(string) --* 
    
      

      - **MonthlyLeasingPrice** *(string) --* 

        The monthly price, in US dollars, to lease the sender ID.

        
      

      - **DeletionProtectionEnabled** *(boolean) --* 

        By default this is set to false. When set to true the sender ID can't be deleted.

        
      

      - **Registered** *(boolean) --* 

        True if the sender ID is registered..

        
      

      - **RegistrationId** *(string) --* 

        The unique identifier for the registration.

        
  
  **Exceptions**
  
  *   :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.InternalServerException`

  