示例#1
0
        public void AutoScalingAttachLoadBalancerTargetGroups()
        {
            #region autoscaling-attach-load-balancer-target-groups-1

            var client   = new AmazonAutoScalingClient();
            var response = client.AttachLoadBalancerTargetGroups(new AttachLoadBalancerTargetGroupsRequest
            {
                AutoScalingGroupName = "my-auto-scaling-group",
                TargetGroupARNs      = new List <string> {
                    "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067"
                }
            });


            #endregion
        }