put_job_success_result
¶
put_job_success_result(
job_id: JobId,
*,
config_overrides: Optional[CodePipelineClientConfig] = 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/code_pipeline.py
2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 | |