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

*********************************
disassociate_origination_identity
*********************************



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

  

  Removes the specified origination identity from an existing pool.

   

  If the origination identity isn't associated with the specified pool, an error is returned.

  

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


  **Request Syntax**
  ::

    response = client.disassociate_origination_identity(
        PoolId='string',
        OriginationIdentity='string',
        IsoCountryCode='string',
        ClientToken='string'
    )
    
  :type PoolId: string
  :param PoolId: **[REQUIRED]** 

    The unique identifier for the pool to disassociate with the origination identity. This value can be either the 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 OriginationIdentity: string
  :param OriginationIdentity: **[REQUIRED]** 

    The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use  DescribePhoneNumbers find the values for PhoneNumberId and PhoneNumberArn, or use  DescribeSenderIds to get the values for SenderId and SenderIdArn.

     

    .. warning::

       

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

      

    

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

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

    

  
  :type ClientToken: string
  :param ClientToken: 

    Unique, case-sensitive identifier 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.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'PoolArn': 'string',
          'PoolId': 'string',
          'OriginationIdentityArn': 'string',
          'OriginationIdentity': 'string',
          'IsoCountryCode': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **PoolArn** *(string) --* 

        The Amazon Resource Name (ARN) of the pool.

        
      

      - **PoolId** *(string) --* 

        The PoolId of the pool no longer associated with the origination identity.

        
      

      - **OriginationIdentityArn** *(string) --* 

        The PhoneNumberArn or SenderIdArn of the origination identity.

        
      

      - **OriginationIdentity** *(string) --* 

        The PhoneNumberId or SenderId of the origination identity.

        
      

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

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

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

  