Represents the failure of a third party job as returned to the pipeline by a job worker. Used for partner actions only.
Parameters:
-
job_id
(ThirdPartyJobId)
–
The ID of the job that failed. This is the same ID returned from PollForThirdPartyJobs.
-
client_token
(ClientToken)
–
The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.
-
failure_details
(FailureDetails)
–
Represents information about failure details.
Raises:
Source code in docs_src/capo_codepipeline/_services/async_code_pipeline.py
| async def put_third_party_job_failure_result(
self,
job_id: "capo_codepipeline.types.third_party_job_id.ThirdPartyJobId",
client_token: "capo_codepipeline.types.client_token.ClientToken",
failure_details: "capo_codepipeline.types.failure_details.FailureDetails",
*,
config_overrides: Optional[AsyncCodePipelineClientConfig] = None,
) -> None:
"""<p>Represents the failure of a third party job as returned to the pipeline by a job worker. Used for partner actions only.</p>
Args:
job_id: <p>The ID of the job that failed. This is the same ID returned from <code>PollForThirdPartyJobs</code>.</p>
client_token: <p>The clientToken portion of the clientId and clientToken pair used to verify that the calling entity is allowed access to the job and its details.</p>
failure_details: <p>Represents information about failure details.</p>
Raises:
capo_codepipeline.errors.invalid_client_token_exception.InvalidClientTokenException: <p>The client token was specified in an invalid format</p>
capo_codepipeline.errors.invalid_job_state_exception.InvalidJobStateException: <p>The job state was specified in an invalid format.</p>
capo_codepipeline.errors.job_not_found_exception.JobNotFoundException: <p>The job was specified in an invalid format or cannot be found.</p>
capo_codepipeline.errors.validation_exception.ValidationException: <p>The validation was specified in an invalid format.</p>
capo_codepipeline.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_codepipeline.types.put_third_party_job_failure_result_input.PutThirdPartyJobFailureResultInput]",
) -> AsyncOperationResponse[None]:
import capo_codepipeline._operations.code_pipeline_20150709.put_third_party_job_failure_result
(
output,
http_response,
) = await capo_codepipeline._operations.code_pipeline_20150709.put_third_party_job_failure_result.async_put_third_party_job_failure_result(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("PutThirdPartyJobFailureResult")
)
input_: capo_codepipeline.types.put_third_party_job_failure_result_input.PutThirdPartyJobFailureResultInput = {
"job_id": job_id,
"client_token": client_token,
"failure_details": failure_details,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|