Beispiel #1
0
        public void ElasticLoadBalancingDescribeLoadBalancerPolicyTypes()
        {
            #region elb-describe-load-balancer-policy-types-1

            var client   = new AmazonElasticLoadBalancingClient();
            var response = client.DescribeLoadBalancerPolicyTypes(new DescribeLoadBalancerPolicyTypesRequest
            {
                PolicyTypeNames = new List <string> {
                    "ProxyProtocolPolicyType"
                }
            });

            List <PolicyTypeDescription> policyTypeDescriptions = response.PolicyTypeDescriptions;

            #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);

            DescribeLoadBalancerPolicyTypesResponse resp = new DescribeLoadBalancerPolicyTypesResponse();
            DescribeLoadBalancerPolicyTypesRequest  req  = new DescribeLoadBalancerPolicyTypesRequest
            {
            };

            resp = client.DescribeLoadBalancerPolicyTypes(req);
            CheckError(resp.HttpStatusCode, "200");

            foreach (var obj in resp.PolicyTypeDescriptions)
            {
                AddObject(obj);
            }
        }