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
2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 | |