Table of Contents

Interface CfnLoadBalancer.IPoliciesProperty

Namespace
Amazon.CDK.AWS.ElasticLoadBalancing
Assembly
Amazon.CDK.AWS.ElasticLoadBalancing.dll

Specifies policies for your Classic Load Balancer.

public interface CfnLoadBalancer.IPoliciesProperty

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" }
             };

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

Properties

Attributes

The policy attributes.

object Attributes { get; }

Property Value

object

Remarks

InstancePorts

The instance ports for the policy.

string[]? InstancePorts { get; }

Property Value

string[]

Remarks

LoadBalancerPorts

The load balancer ports for the policy.

string[]? LoadBalancerPorts { get; }

Property Value

string[]

Remarks

PolicyName

The name of the policy.

string PolicyName { get; }

Property Value

string

Remarks

PolicyType

The name of the policy type.

string PolicyType { get; }

Property Value

string

Remarks