public void AutoScalingUpdateAutoScalingGroup() { #region autoscaling-update-auto-scaling-group-3 var client = new AmazonAutoScalingClient(); var response = client.UpdateAutoScalingGroup(new UpdateAutoScalingGroupRequest { AutoScalingGroupName = "my-auto-scaling-group", NewInstancesProtectedFromScaleIn = true }); #endregion }
public void AutoScalingUpdateAutoScalingGroup() { #region autoscaling-update-auto-scaling-group-1 var client = new AmazonAutoScalingClient(); var response = client.UpdateAutoScalingGroup(new UpdateAutoScalingGroupRequest { AutoScalingGroupName = "my-auto-scaling-group", LaunchConfigurationName = "new-launch-config" }); #endregion }
public void AutoScalingUpdateAutoScalingGroup() { #region autoscaling-update-auto-scaling-group-2 var client = new AmazonAutoScalingClient(); var response = client.UpdateAutoScalingGroup(new UpdateAutoScalingGroupRequest { AutoScalingGroupName = "my-auto-scaling-group", MaxSize = 3, MinSize = 1 }); #endregion }
public void AutoScalingUpdateAutoScalingGroup() { #region autoscaling-update-auto-scaling-group-1 var client = new AmazonAutoScalingClient(); var response = client.UpdateAutoScalingGroup(new UpdateAutoScalingGroupRequest { AutoScalingGroupName = "my-auto-scaling-group", LaunchTemplate = new LaunchTemplateSpecification { LaunchTemplateName = "my-template-for-auto-scaling", Version = "2" }, MaxSize = 5, MinSize = 1, NewInstancesProtectedFromScaleIn = true }); #endregion }