Exemplo n.º 1
0
        public void ElasticLoadBalancingApplySecurityGroupsToLoadBalancer()
        {
            #region elb-apply-security-groups-to-load-balancer-1

            var client   = new AmazonElasticLoadBalancingClient();
            var response = client.ApplySecurityGroupsToLoadBalancer(new ApplySecurityGroupsToLoadBalancerRequest
            {
                LoadBalancerName = "my-load-balancer",
                SecurityGroups   = new List <string> {
                    "sg-fc448899"
                }
            });

            List <string> securityGroups = response.SecurityGroups;

            #endregion
        }