コード例 #1
0
        public void AutoScalingPutWarmPool()
        {
            #region to-add-a-warm-pool-to-an-auto-scaling-group-1617818810383

            var client   = new AmazonAutoScalingClient();
            var response = client.PutWarmPool(new PutWarmPoolRequest
            {
                AutoScalingGroupName = "my-auto-scaling-group",
                MinSize   = 30,
                PoolState = "Stopped"
            });


            #endregion
        }
コード例 #2
0
        public void AutoScalingPutWarmPool()
        {
            #region to-add-a-warm-pool-to-an-auto-scaling-group-1617818810383

            var client   = new AmazonAutoScalingClient();
            var response = client.PutWarmPool(new PutWarmPoolRequest
            {
                AutoScalingGroupName = "my-auto-scaling-group",
                InstanceReusePolicy  = new InstanceReusePolicy {
                    ReuseOnScaleIn = true
                },
                MinSize   = 30,
                PoolState = "Hibernated"
            });


            #endregion
        }