Example #1
0
        public void CodePipelineAcknowledgeJob()
        {
            #region acknowledge-a-job-for-a-custom-action-1449100979484

            var response = client.AcknowledgeJob(new AcknowledgeJobRequest
            {
                JobId = "11111111-abcd-1111-abcd-111111abcdef", // Use the PollforJobs API to determine the ID of the job.
                Nonce = "3"                                     // Use the PollforJobs API to determine the nonce for the job.
            });

            string status = response.Status; // Valid values include Created, Queued, Dispatched, InProgress, TimedOut, Suceeded, and Failed. Completed jobs are removed from the system after a short period of time.

            #endregion
        }
 private Amazon.CodePipeline.Model.AcknowledgeJobResponse CallAWSServiceOperation(IAmazonCodePipeline client, Amazon.CodePipeline.Model.AcknowledgeJobRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS CodePipeline", "AcknowledgeJob");
     try
     {
         #if DESKTOP
         return(client.AcknowledgeJob(request));
         #elif CORECLR
         return(client.AcknowledgeJobAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }