aws-cdk-lib.aws_elasticloadbalancing.CfnLoadBalancer.PoliciesProperty

interface PoliciesProperty

LanguageType name
.NETAmazon.CDK.AWS.ElasticLoadBalancing.CfnLoadBalancer.PoliciesProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancing#CfnLoadBalancer_PoliciesProperty
Javasoftware.amazon.awscdk.services.elasticloadbalancing.CfnLoadBalancer.PoliciesProperty
Pythonaws_cdk.aws_elasticloadbalancing.CfnLoadBalancer.PoliciesProperty
TypeScript aws-cdk-lib » aws_elasticloadbalancing » CfnLoadBalancer » PoliciesProperty

Specifies policies for your Classic Load Balancer.

To associate policies with a listener, use the PolicyNames property for the listener.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancing as elb } from 'aws-cdk-lib';

declare const attributes: any;
const policiesProperty: elb.CfnLoadBalancer.PoliciesProperty = {
  attributes: [attributes],
  policyName: 'policyName',
  policyType: 'policyType',

  // the properties below are optional
  instancePorts: ['instancePorts'],
  loadBalancerPorts: ['loadBalancerPorts'],
};

Properties

NameTypeDescription
attributesany[] | IResolvableThe policy attributes.
policyNamestringThe name of the policy.
policyTypestringThe name of the policy type.
instancePorts?string[]The instance ports for the policy.
loadBalancerPorts?string[]The load balancer ports for the policy.

attributes

Type: any[] | IResolvable

The policy attributes.


policyName

Type: string

The name of the policy.


policyType

Type: string

The name of the policy type.


instancePorts?

Type: string[] (optional)

The instance ports for the policy.

Required only for some policy types.


loadBalancerPorts?

Type: string[] (optional)

The load balancer ports for the policy.

Required only for some policy types.