AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Contains the output of CreateLoadBalancerPolicy.
Namespace: Amazon.ElasticLoadBalancing.Model
Assembly: AWSSDK.ElasticLoadBalancing.dll
Version: 3.x.y.z
public class CreateLoadBalancerPolicyResponse : AmazonWebServiceResponse
The CreateLoadBalancerPolicyResponse type exposes the following members
Name | Description | |
---|---|---|
CreateLoadBalancerPolicyResponse() |
Name | Type | Description | |
---|---|---|---|
ContentLength | System.Int64 | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
HttpStatusCode | System.Net.HttpStatusCode | Inherited from Amazon.Runtime.AmazonWebServiceResponse. | |
ResponseMetadata | Amazon.Runtime.ResponseMetadata | Inherited from Amazon.Runtime.AmazonWebServiceResponse. |
This example creates a policy that enables Proxy Protocol on the specified load balancer.
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" });
This example creates a public key policy.
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" });
This example creates a backend server authentication policy that enables authentication on your backend instance using a public key policy.
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" });
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5