예제 #1
0
        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
        }
예제 #2
0
        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
        }
예제 #3
0
        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
        }
예제 #4
0
        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
        }