public void CloudFormationCancelUpdateStack() { #region to-cancel-a-stack-update-that-is-in-progress-1472747085196 var response = client.CancelUpdateStack(new CancelUpdateStackRequest { StackName = "MyStack" }); #endregion }
private Amazon.CloudFormation.Model.CancelUpdateStackResponse CallAWSServiceOperation(IAmazonCloudFormation client, Amazon.CloudFormation.Model.CancelUpdateStackRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS CloudFormation", "CancelUpdateStack"); try { #if DESKTOP return(client.CancelUpdateStack(request)); #elif CORECLR return(client.CancelUpdateStackAsync(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; } }