create_delegation_request¶
Operation¶
create_delegation_request
async
¶
create_delegation_request(input: CreateDelegationRequestInput, plugins: list[Plugin] | None = None) -> CreateDelegationRequestOutput
Creates an IAM delegation request for temporary access delegation.
This API is not available for general use. In order to use this API, a caller first need to go through an onboarding process described in the partner onboarding documentation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
CreateDelegationRequestInput
|
An instance of |
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 |
|---|---|
CreateDelegationRequestOutput
|
An instance of |
Input¶
CreateDelegationRequestInput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateDelegationRequestInput structure.
Attributes¶
description
class-attribute
instance-attribute
¶
description: str | None = ...
A description of the delegation request.
notification_channel
class-attribute
instance-attribute
¶
notification_channel: str | None = ...
The notification channel for updates about the delegation request.
At this time,only SNS topic ARNs are accepted for notification. This
topic ARN must have a resource policy granting SNS:Publish permission
to the IAM service principal (iam.amazonaws.com). See partner
onboarding
documentation
for more details.
only_send_by_owner
class-attribute
instance-attribute
¶
only_send_by_owner: bool = ...
Specifies whether the delegation token should only be sent by the owner.
This flag prevents any party other than the owner from calling
SendDelegationToken API for this delegation request. This behavior
becomes useful when the delegation request owner needs to be present for
subsequent partner interactions, but the delegation request was sent to
a more privileged user for approval due to the owner lacking sufficient
delegation permissions.
owner_account_id
class-attribute
instance-attribute
¶
owner_account_id: str | None = ...
The Amazon Web Services account ID this delegation request is targeted to.
If the account ID is not known, this parameter can be omitted, resulting in a request that can be associated by any account. If the account ID passed, then the created delegation request can only be associated with an identity of that target account.
permissions
class-attribute
instance-attribute
¶
The permissions to be delegated in this delegation request.
redirect_url
class-attribute
instance-attribute
¶
redirect_url: str | None = ...
The URL to redirect to after the delegation request is processed.
This URL is used by the IAM console to show a link to the customer to re-load the partner workflow.
request_message
class-attribute
instance-attribute
¶
request_message: str | None = ...
A message explaining the reason for the delegation request.
Requesters can utilize this field to add a custom note to the delegation request. This field is different from the description such that this is to be utilized for a custom messaging on a case-by-case basis.
For example, if the current delegation request is in response to a previous request being rejected, this explanation can be added to the request via this field.
requestor_workflow_id
class-attribute
instance-attribute
¶
requestor_workflow_id: str | None = ...
The workflow ID associated with the requestor.
This is the unique identifier on the partner side that can be used to track the progress of the request.
IAM maintains a uniqueness check on this workflow id for each request - if a workflow id for an existing request is passed, this API call will fail.
session_duration
class-attribute
instance-attribute
¶
session_duration: int | None = ...
The duration for which the delegated session should remain active, in seconds.
The active time window for the session starts when the customer calls the SendDelegationToken API.
Output¶
CreateDelegationRequestOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for CreateDelegationRequestOutput structure.
Attributes¶
console_deep_link
class-attribute
instance-attribute
¶
console_deep_link: str | None = ...
A deep link URL to the Amazon Web Services Management Console for managing the delegation request.
For a console based workflow, partners should redirect the customer to this URL. If the customer is not logged in to any Amazon Web Services account, the Amazon Web Services workflow will automatically direct the customer to log in and then display the delegation request approval page.
delegation_request_id
class-attribute
instance-attribute
¶
delegation_request_id: str | None = ...
The unique identifier for the created delegation request.
response_metadata
class-attribute
instance-attribute
¶
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.