Class CfnLoadBalancer.PoliciesProperty
Specifies policies for your Classic Load Balancer.
Inheritance
System.Object
CfnLoadBalancer.PoliciesProperty
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancing
Assembly: Amazon.CDK.AWS.ElasticLoadBalancing.dll
Syntax (csharp)
public class PoliciesProperty : Object, CfnLoadBalancer.IPoliciesProperty
Syntax (vb)
Public Class PoliciesProperty
Inherits Object
Implements CfnLoadBalancer.IPoliciesProperty
Remarks
To associate policies with a listener, use the PolicyNames property for the listener.
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-elb-policy.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticLoadBalancing;
var attributes;
var policiesProperty = new PoliciesProperty {
Attributes = new [] { attributes },
PolicyName = "policyName",
PolicyType = "policyType",
// the properties below are optional
InstancePorts = new [] { "instancePorts" },
LoadBalancerPorts = new [] { "loadBalancerPorts" }
};
Synopsis
Constructors
PoliciesProperty() |
Properties
Attributes | The policy attributes. |
InstancePorts | The instance ports for the policy. |
LoadBalancerPorts | The load balancer ports for the policy. |
PolicyName | The name of the policy. |
PolicyType | The name of the policy type. |
Constructors
PoliciesProperty()
public PoliciesProperty()
Properties
Attributes
The policy attributes.
public object Attributes { get; set; }
Property Value
System.Object
Remarks
InstancePorts
The instance ports for the policy.
public string[] InstancePorts { get; set; }
Property Value
System.String[]
Remarks
Required only for some policy types.
LoadBalancerPorts
The load balancer ports for the policy.
public string[] LoadBalancerPorts { get; set; }
Property Value
System.String[]
Remarks
Required only for some policy types.
PolicyName
The name of the policy.
public string PolicyName { get; set; }
Property Value
System.String
Remarks
PolicyType
The name of the policy type.
public string PolicyType { get; set; }
Property Value
System.String