put_approval_result
¶
put_approval_result(
pipeline_name: PipelineName,
stage_name: StageName,
action_name: ActionName,
result: ApprovalResult,
token: ApprovalToken,
*,
config_overrides: Optional[CodePipelineClientConfig] = 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/code_pipeline.py
2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 | |