AWS::ElasticLoadBalancing::LoadBalancer Policies
Specifies policies for your Classic Load Balancer.
To associate policies with a listener, use the PolicyNames property for the listener.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Attributes" :[ Json, ... ], "InstancePorts" :[ String, ... ], "LoadBalancerPorts" :[ String, ... ], "PolicyName" :String, "PolicyType" :String}
YAML
Attributes:- JsonInstancePorts:- StringLoadBalancerPorts:- StringPolicyName:StringPolicyType:String
Properties
Attributes-
The policy attributes.
Required: Yes
Type: List of Json
Update requires: No interruption
InstancePorts-
The instance ports for the policy. Required only for some policy types.
Required: No
Type: List of String
Update requires: No interruption
LoadBalancerPorts-
The load balancer ports for the policy. Required only for some policy types.
Required: No
Type: List of String
Update requires: No interruption
PolicyName-
The name of the policy.
Required: Yes
Type: String
Update requires: No interruption
PolicyType-
The name of the policy type.
Required: Yes
Type: String
Update requires: No interruption
Examples
JSON
"Policies": [{ "PolicyName": "My-SSLNegotiation-Policy", "PolicyType": "SSLNegotiationPolicyType", "Attributes": [{ "Name": "Reference-Security-Policy", "Value": "ELBSecurityPolicy-TLS-1-2-2017-01" }] }]
YAML
Policies: - PolicyName: My-SSLNegotiation-Policy PolicyType: SSLNegotiationPolicyType Attributes: - Name: Reference-Security-Policy Value: ELBSecurityPolicy-TLS-1-2-2017-01
See also
-
CreateLoadBalancerPolicy in the Elastic Load Balancing API Reference (version 2012-06-01)