:doc:`IAM <../../iam>` / Client / send_delegation_token

*********************
send_delegation_token
*********************



.. py:method:: IAM.Client.send_delegation_token(**kwargs)

  

  Sends the exchange token for an accepted delegation request.

   

  The exchange token is sent to the partner via an asynchronous notification channel, established by the partner.

   

  The delegation request must be in the ``ACCEPTED`` state when calling this API. After the ``SendDelegationToken`` API call is successful, the request transitions to a ``FINALIZED`` state and cannot be rolled back. However, a user may reject an accepted request before the ``SendDelegationToken`` API is called.

   

  For more details, see `Managing Permissions for Delegation Requests <https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies-temporary-delegation.html#temporary-delegation-managing-permissions>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/SendDelegationToken>`_  


  **Request Syntax**
  ::

    response = client.send_delegation_token(
        DelegationRequestId='string'
    )
    
  :type DelegationRequestId: string
  :param DelegationRequestId: **[REQUIRED]** 

    The unique identifier of the delegation request for which to send the token.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`IAM.Client.exceptions.NoSuchEntityException`

  
  *   :py:class:`IAM.Client.exceptions.ServiceFailureException`

  
  *   :py:class:`IAM.Client.exceptions.ConcurrentModificationException`

  
  *   :py:class:`IAM.Client.exceptions.InvalidInputException`

  