Ejemplo n.º 1
0
        public void ElasticLoadBalancingCreateLoadBalancerPolicy()
        {
            #region elb-create-load-balancer-policy-2

            var client   = new AmazonElasticLoadBalancingClient();
            var response = client.CreateLoadBalancerPolicy(new CreateLoadBalancerPolicyRequest
            {
                LoadBalancerName = "my-load-balancer",
                PolicyAttributes = new List <PolicyAttribute> {
                    new PolicyAttribute {
                        AttributeName  = "PublicKey",
                        AttributeValue = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwAYUjnfyEyXr1pxjhFWBpMlggUcqoi3kl+dS74kj//c6x7ROtusUaeQCTgIUkayttRDWchuqo1pHC1u+n5xxXnBBe2ejbb2WRsKIQ5rXEeixsjFpFsojpSQKkzhVGI6mJVZBJDVKSHmswnwLBdofLhzvllpovBPTHe+o4haAWvDBALJU0pkSI1FecPHcs2hwxf14zHoXy1e2k36A64nXW43wtfx5qcVSIxtCEOjnYRg7RPvybaGfQ+v6Iaxb/+7J5kEvZhTFQId+bSiJImF1FSUT1W1xwzBZPUbcUkkXDj45vC2s3Z8E+Lk7a3uZhvsQHLZnrfuWjBWGWvZ/MhZYgEXAMPLE"
                    }
                },
                PolicyName     = "my-PublicKey-policy",
                PolicyTypeName = "PublicKeyPolicyType"
            });


            #endregion
        }
Ejemplo n.º 2
0
        public void ElasticLoadBalancingCreateLoadBalancerPolicy()
        {
            #region elb-create-load-balancer-policy-3

            var client   = new AmazonElasticLoadBalancingClient();
            var response = client.CreateLoadBalancerPolicy(new CreateLoadBalancerPolicyRequest
            {
                LoadBalancerName = "my-load-balancer",
                PolicyAttributes = new List <PolicyAttribute> {
                    new PolicyAttribute {
                        AttributeName  = "PublicKeyPolicyName",
                        AttributeValue = "my-PublicKey-policy"
                    }
                },
                PolicyName     = "my-authentication-policy",
                PolicyTypeName = "BackendServerAuthenticationPolicyType"
            });


            #endregion
        }
Ejemplo n.º 3
0
        public void ElasticLoadBalancingCreateLoadBalancerPolicy()
        {
            #region elb-create-load-balancer-policy-1

            var client   = new AmazonElasticLoadBalancingClient();
            var response = client.CreateLoadBalancerPolicy(new CreateLoadBalancerPolicyRequest
            {
                LoadBalancerName = "my-load-balancer",
                PolicyAttributes = new List <PolicyAttribute> {
                    new PolicyAttribute {
                        AttributeName  = "ProxyProtocol",
                        AttributeValue = "true"
                    }
                },
                PolicyName     = "my-ProxyProtocol-policy",
                PolicyTypeName = "ProxyProtocolPolicyType"
            });


            #endregion
        }