Skip to content

IAM  >  Operations  >  accept_delegation_request

accept_delegation_request

Operation

accept_delegation_request async

accept_delegation_request(input: AcceptDelegationRequestInput, plugins: list[Plugin] | None = None) -> AcceptDelegationRequestOutput

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

Parameters:

Name Type Description Default
input AcceptDelegationRequestInput

An instance of AcceptDelegationRequestInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
AcceptDelegationRequestOutput

An instance of AcceptDelegationRequestOutput.

Input

AcceptDelegationRequestInput dataclass

Bases: _SerdeShape

Dataclass for AcceptDelegationRequestInput structure.

Attributes

delegation_request_id class-attribute instance-attribute
delegation_request_id: str | None = ...

The unique identifier of the delegation request to accept.

Output

AcceptDelegationRequestOutput dataclass

Bases: _SerdeShape

Dataclass for AcceptDelegationRequestOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.