PoliciesProperty Struct
Specifies policies for your Classic Load Balancer.
To associate policies with a listener, use the PolicyNames property for the listener.
Example
ts
// 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
attributesany[] | IResolvableattributestyping.Union[typing.List[Any], IResolvable]attributesList<Object>Attributesobject[]Attributesinterface{}required#The policy attributes.
instancePortsoptionalstring[]instance_portsoptionaltyping.List[str]instancePortsoptionalList<String>InstancePortsoptionalstring[]InstancePortsoptional*[]*string#The instance ports for the policy.
Required only for some policy types.
loadBalancerPortsoptionalstring[]load_balancer_portsoptionaltyping.List[str]loadBalancerPortsoptionalList<String>LoadBalancerPortsoptionalstring[]LoadBalancerPortsoptional*[]*string#The load balancer ports for the policy.
Required only for some policy types.
The name of the policy.
The name of the policy type.