Exemplo n.º 1
0
        public void CodePipelineDisableStageTransition()
        {
            #region disable-transitions-into-or-out-of-a-stage-1449164517291

            var response = client.DisableStageTransition(new DisableStageTransitionRequest
            {
                PipelineName   = "MyFirstPipeline",
                Reason         = "An example reason",
                StageName      = "Beta",
                TransitionType = "Inbound" // Valid values are Inbound, which prevents artifacts from transitioning into the stage and being processed by the actions in that stage, or Outbound, which prevents artifacts from transitioning out of the stage after they have been processed by the actions in that stage.
            });


            #endregion
        }
Exemplo n.º 2
0
 private Amazon.CodePipeline.Model.DisableStageTransitionResponse CallAWSServiceOperation(IAmazonCodePipeline client, Amazon.CodePipeline.Model.DisableStageTransitionRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS CodePipeline", "DisableStageTransition");
     try
     {
         #if DESKTOP
         return(client.DisableStageTransition(request));
         #elif CORECLR
         return(client.DisableStageTransitionAsync(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;
     }
 }