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

*****************
release_sender_id
*****************



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

  

  Releases an existing sender ID in your account.

  

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


  **Request Syntax**
  ::

    response = client.release_sender_id(
        SenderId='string',
        IsoCountryCode='string'
    )
    
  :type SenderId: string
  :param SenderId: **[REQUIRED]** 

    The sender ID to release.

    

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

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

    

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

    
    ::

      {
          'SenderIdArn': 'string',
          'SenderId': 'string',
          'IsoCountryCode': 'string',
          'MessageTypes': [
              'TRANSACTIONAL'|'PROMOTIONAL',
          ],
          'MonthlyLeasingPrice': 'string',
          '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 released.

        
      

      - **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.

        
      

      - **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.ConflictException`

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

  