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

*************************
accept_delegation_request
*************************



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

  

  Accepts a delegation request, granting the requested temporary access.

   

  Once the delegation request is accepted, it is eligible to send the exchange token to the partner. The `SendDelegationToken <https://docs.aws.amazon.com/IAM/latest/APIReference/API_SendDelegationToken.html>`__ API has to be explicitly called to send the delegation token.

   

  At the time of acceptance, IAM records the details and the state of the identity that called this API. This is the identity that gets mapped to the delegated credential.

   

  An accepted request may be rejected before the exchange token is sent to the partner.

  

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


  **Request Syntax**
  ::

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

    The unique identifier of the delegation request to accept.

    

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

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

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

  