/// <summary>
 /// Represents the failure of a job as returned to the pipeline by a job worker. Only
 /// used for custom actions.
 /// </summary>
 /// <param name="jobId">The unique system-generated ID of the job that failed. This is the same ID returned from PollForJobs.</param>
 /// <param name="failureDetails">The details about the failure of a job. </param>
 /// 
 /// <returns>The response from the PutJobFailureResult service method, as returned by CodePipeline.</returns>
 /// <exception cref="Amazon.CodePipeline.Model.InvalidJobStateException">
 /// The specified job state was specified in an invalid format.
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.JobNotFoundException">
 /// The specified job was specified in an invalid format or cannot be found.
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.ValidationException">
 /// The validation was specified in an invalid format.
 /// </exception>
 public PutJobFailureResultResponse PutJobFailureResult(string jobId, FailureDetails failureDetails)
 {
     var request = new PutJobFailureResultRequest();
     request.JobId = jobId;
     request.FailureDetails = failureDetails;
     return PutJobFailureResult(request);
 }
 /// <summary>
 /// Represents the failure of a third party job as returned to the pipeline by a job worker.
 /// Only used for partner actions.
 /// </summary>
 /// <param name="jobId">The ID of the job that failed. This is the same ID returned from PollForThirdPartyJobs.</param>
 /// <param name="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.</param>
 /// <param name="failureDetails">A property of PutThirdPartyJobFailureResultRequest used to execute the PutThirdPartyJobFailureResult service method.</param>
 /// 
 /// <returns>The response from the PutThirdPartyJobFailureResult service method, as returned by CodePipeline.</returns>
 /// <exception cref="Amazon.CodePipeline.Model.InvalidClientTokenException">
 /// The client token was specified in an invalid format
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.InvalidJobStateException">
 /// The specified job state was specified in an invalid format.
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.JobNotFoundException">
 /// The specified job was specified in an invalid format or cannot be found.
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.ValidationException">
 /// The validation was specified in an invalid format.
 /// </exception>
 public PutThirdPartyJobFailureResultResponse PutThirdPartyJobFailureResult(string jobId, string clientToken, FailureDetails failureDetails)
 {
     var request = new PutThirdPartyJobFailureResultRequest();
     request.JobId = jobId;
     request.ClientToken = clientToken;
     request.FailureDetails = failureDetails;
     return PutThirdPartyJobFailureResult(request);
 }
예제 #3
0
 /// <summary>
 /// Represents the failure of a third party job as returned to the pipeline by a job worker.
 /// Only used for partner actions.
 /// </summary>
 /// <param name="jobId">The ID of the job that failed. This is the same ID returned from PollForThirdPartyJobs.</param>
 /// <param name="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.</param>
 /// <param name="failureDetails">A property of PutThirdPartyJobFailureResultRequest used to execute the PutThirdPartyJobFailureResult service method.</param>
 /// <param name="cancellationToken">
 ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
 /// </param>
 /// 
 /// <returns>The response from the PutThirdPartyJobFailureResult service method, as returned by CodePipeline.</returns>
 /// <exception cref="Amazon.CodePipeline.Model.InvalidClientTokenException">
 /// The client token was specified in an invalid format
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.InvalidJobStateException">
 /// The specified job state was specified in an invalid format.
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.JobNotFoundException">
 /// The specified job was specified in an invalid format or cannot be found.
 /// </exception>
 /// <exception cref="Amazon.CodePipeline.Model.ValidationException">
 /// The validation was specified in an invalid format.
 /// </exception>
 public Task<PutThirdPartyJobFailureResultResponse> PutThirdPartyJobFailureResultAsync(string jobId, string clientToken, FailureDetails failureDetails, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
 {
     var request = new PutThirdPartyJobFailureResultRequest();
     request.JobId = jobId;
     request.ClientToken = clientToken;
     request.FailureDetails = failureDetails;
     return PutThirdPartyJobFailureResultAsync(request, cancellationToken);
 }