create_delegation_request
async
¶
create_delegation_request(
description: delegationRequestDescriptionType,
permissions: DelegationPermission,
requestor_workflow_id: requestorWorkflowIdType,
notification_channel: notificationChannelType,
session_duration: sessionDurationType,
*,
config_overrides: Optional[AsyncIAMClientConfig] = None,
owner_account_id: Optional[accountIdType] = None,
request_message: Optional[requestMessageType] = None,
redirect_url: Optional[redirectUrlType] = None,
only_send_by_owner: Optional[booleanType] = None,
) -> CreateDelegationRequestResponse
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:
-
owner_account_id(Optional[accountIdType], default: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.
-
description(delegationRequestDescriptionType) –A description of the delegation request.
-
permissions(DelegationPermission) –The permissions to be delegated in this delegation request.
-
request_message(Optional[requestMessageType], default: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(requestorWorkflowIdType) –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.
-
redirect_url(Optional[redirectUrlType], default: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.
-
notification_channel(notificationChannelType) –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:Publishpermission to the IAM service principal (iam.amazonaws.com). See partner onboarding documentation for more details. -
session_duration(sessionDurationType) –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.
-
only_send_by_owner(Optional[booleanType], default:None) –Specifies whether the delegation token should only be sent by the owner.
This flag prevents any party other than the owner from calling
SendDelegationTokenAPI 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.
Raises:
-
ConcurrentModificationException–The request was rejected because multiple requests to change this object were submitted simultaneously. Wait a few minutes and submit your request again.
-
EntityAlreadyExistsException–The request was rejected because it attempted to create a resource that already exists.
-
InvalidInputException–The request was rejected because an invalid or out-of-range value was supplied for an input parameter.
-
LimitExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded.
-
ServiceFailureException–The request processing has failed because of an unknown error, exception or failure.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iam/_services/async_iam.py
1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 | |