public void CodePipelineDeletePipeline() { #region delete-a-pipeline-1449163893541 var response = client.DeletePipeline(new DeletePipelineRequest { Name = "MySecondPipeline" // The name of the pipeline to delete. }); #endregion }
private Amazon.CodePipeline.Model.DeletePipelineResponse CallAWSServiceOperation(IAmazonCodePipeline client, Amazon.CodePipeline.Model.DeletePipelineRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS CodePipeline", "DeletePipeline"); try { #if DESKTOP return client.DeletePipeline(request); #elif CORECLR return client.DeletePipelineAsync(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; } }