public void ElasticLoadBalancingDescribeLoadBalancerPolicies() { #region elb-describe-load-balancer-policies-1 var client = new AmazonElasticLoadBalancingClient(); var response = client.DescribeLoadBalancerPolicies(new DescribeLoadBalancerPoliciesRequest { LoadBalancerName = "my-load-balancer", PolicyNames = new List <string> { "my-authentication-policy" } }); List <PolicyDescription> policyDescriptions = response.PolicyDescriptions; #endregion }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonElasticLoadBalancingConfig config = new AmazonElasticLoadBalancingConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonElasticLoadBalancingClient client = new AmazonElasticLoadBalancingClient(creds, config); DescribeLoadBalancerPoliciesResponse resp = new DescribeLoadBalancerPoliciesResponse(); DescribeLoadBalancerPoliciesRequest req = new DescribeLoadBalancerPoliciesRequest { }; resp = client.DescribeLoadBalancerPolicies(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.PolicyDescriptions) { AddObject(obj); } }