public void AutoScalingCancelInstanceRefresh() { #region to-cancel-an-instance-refresh-1592960979817 var response = client.CancelInstanceRefresh(new CancelInstanceRefreshRequest { AutoScalingGroupName = "my-auto-scaling-group" }); string instanceRefreshId = response.InstanceRefreshId; #endregion }
private Amazon.AutoScaling.Model.CancelInstanceRefreshResponse CallAWSServiceOperation(IAmazonAutoScaling client, Amazon.AutoScaling.Model.CancelInstanceRefreshRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Auto Scaling", "CancelInstanceRefresh"); try { #if DESKTOP return(client.CancelInstanceRefresh(request)); #elif CORECLR return(client.CancelInstanceRefreshAsync(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; } }