示例#1
0
        public void CodePipelineGetPipelineState()
        {
            #region view-information-about-the-state-of-a-pipeline-1449184486550

            var response = client.GetPipelineState(new GetPipelineStateRequest
            {
                Name = "MyFirstPipeline"
            });

            DateTime          created         = response.Created; // The value for created and all other time- and date-related information such as lastStatusChange, is returned in timestamp format.
            string            pipelineName    = response.PipelineName;
            integer           pipelineVersion = response.PipelineVersion;
            List <StageState> stageStates     = response.StageStates;
            DateTime          updated         = response.Updated;

            #endregion
        }
 private Amazon.CodePipeline.Model.GetPipelineStateResponse CallAWSServiceOperation(IAmazonCodePipeline client, Amazon.CodePipeline.Model.GetPipelineStateRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS CodePipeline", "GetPipelineState");
     try
     {
         #if DESKTOP
         return(client.GetPipelineState(request));
         #elif CORECLR
         return(client.GetPipelineStateAsync(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;
     }
 }