put_job_success_result
async
¶
put_job_success_result(
job_id: JobId,
*,
config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
current_revision: Optional[CurrentRevision] = None,
continuation_token: Optional[ContinuationToken] = None,
execution_details: Optional[ExecutionDetails] = None,
output_variables: Optional[OutputVariablesMap] = None,
) -> None
Represents the success of a job as returned to the pipeline by a job worker. Used for custom actions only.
Parameters:
-
job_id(JobId) –The unique system-generated ID of the job that succeeded. This is the same ID returned from
PollForJobs. -
current_revision(Optional[CurrentRevision], default:None) –The ID of the current revision of the artifact successfully worked on by the job.
-
continuation_token(Optional[ContinuationToken], default:None) –A token generated by a job worker, such as a CodeDeploy deployment ID, that a successful job provides to identify a custom action in progress. Future jobs use this token to identify the running instance of the action. It can be reused to return more information about the progress of the custom action. When the action is complete, no continuation token should be supplied.
-
execution_details(Optional[ExecutionDetails], default:None) –The execution details of the successful job, such as the actions taken by the job worker.
-
output_variables(Optional[OutputVariablesMap], default:None) –Key-value pairs produced as output by a job worker that can be made available to a downstream action configuration.
outputVariablescan be included only when there is no continuation token on the request.
Raises:
-
InvalidJobStateException–The job state was specified in an invalid format.
-
JobNotFoundException–The job was specified in an invalid format or cannot be found.
-
OutputVariablesSizeExceededException–Exceeded the total size limit for all variables in the pipeline.
-
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
2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 | |