put_approval_result
async
¶
put_approval_result(
pipeline_name: PipelineName,
stage_name: StageName,
action_name: ActionName,
result: ApprovalResult,
token: ApprovalToken,
*,
config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
) -> PutApprovalResultOutput
Provides the response to a manual approval request to CodePipeline. Valid responses include Approved and Rejected.
Parameters:
-
pipeline_name(PipelineName) –The name of the pipeline that contains the action.
-
stage_name(StageName) –The name of the stage that contains the action.
-
action_name(ActionName) –The name of the action for which approval is requested.
-
result(ApprovalResult) –Represents information about the result of the approval request.
-
token(ApprovalToken) –The system-generated token used to identify a unique approval request. The token for each open approval request can be obtained using the GetPipelineState action. It is used to validate that the approval request corresponding to this token is still valid.
For a pipeline where the execution mode is set to PARALLEL, the token required to approve/reject an approval request as detailed above is not available. Instead, use the
externalExecutionIdin the response output from the ListActionExecutions action as the token in the approval request.
Raises:
-
ActionNotFoundException–The specified action cannot be found.
-
ApprovalAlreadyCompletedException–The approval action has already been approved or rejected.
-
InvalidApprovalTokenException–The approval request already received a response or has expired.
-
PipelineNotFoundException–The pipeline was specified in an invalid format or cannot be found.
-
StageNotFoundException–The stage was specified in an invalid format or cannot be found.
-
ValidationException–The validation was specified in an invalid format.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codepipeline/_services/async_code_pipeline.py
2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 | |