IAM / Client / associate_delegation_request

associate_delegation_request

IAM.Client.associate_delegation_request(**kwargs)

Associates a delegation request with the current identity.

If the partner that created the delegation request has specified the owner account during creation, only an identity from that owner account can call the AssociateDelegationRequest API for the specified delegation request. Once the AssociateDelegationRequest API call is successful, the ARN of the current calling identity will be stored as the ownerId of the request.

If the partner that created the delegation request has not specified the owner account during creation, any caller from any account can call the AssociateDelegationRequest API for the delegation request. Once this API call is successful, the ARN of the current calling identity will be stored as the ownerId and the Amazon Web Services account ID of the current calling identity will be stored as the ownerAccount of the request.

For more details, see Managing Permissions for Delegation Requests.

See also: AWS API Documentation

Request Syntax

response = client.associate_delegation_request(
    DelegationRequestId='string'
)
Parameters:

DelegationRequestId (string) –

[REQUIRED]

The unique identifier of the delegation request to associate.

Returns:

None

Exceptions

  • IAM.Client.exceptions.NoSuchEntityException

  • IAM.Client.exceptions.ServiceFailureException

  • IAM.Client.exceptions.ConcurrentModificationException

  • IAM.Client.exceptions.InvalidInputException