public void AutoScalingDescribeInstanceRefreshes() { #region to-list-instance-refreshes-1592959593746 var response = client.DescribeInstanceRefreshes(new DescribeInstanceRefreshesRequest { AutoScalingGroupName = "my-auto-scaling-group" }); List <InstanceRefresh> instanceRefreshes = response.InstanceRefreshes; #endregion }
private Amazon.AutoScaling.Model.DescribeInstanceRefreshesResponse CallAWSServiceOperation(IAmazonAutoScaling client, Amazon.AutoScaling.Model.DescribeInstanceRefreshesRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Auto Scaling", "DescribeInstanceRefreshes"); try { #if DESKTOP return(client.DescribeInstanceRefreshes(request)); #elif CORECLR return(client.DescribeInstanceRefreshesAsync(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; } }