public void AutoScalingCompleteLifecycleAction() { #region autoscaling-complete-lifecycle-action-1 var response = client.CompleteLifecycleAction(new CompleteLifecycleActionRequest { AutoScalingGroupName = "my-auto-scaling-group", LifecycleActionResult = "CONTINUE", LifecycleActionToken = "bcd2f1b8-9a78-44d3-8a7a-4dd07d7cf635", LifecycleHookName = "my-lifecycle-hook" }); #endregion }
private Amazon.AutoScaling.Model.CompleteLifecycleActionResponse CallAWSServiceOperation(IAmazonAutoScaling client, Amazon.AutoScaling.Model.CompleteLifecycleActionRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Auto Scaling", "CompleteLifecycleAction"); try { #if DESKTOP return(client.CompleteLifecycleAction(request)); #elif CORECLR return(client.CompleteLifecycleActionAsync(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; } }