AWS::ElasticLoadBalancing::LoadBalancer Policies - AWS CloudFormation

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 AWS CloudFormation template, use the following syntax:

JSON

{ "Attributes" : [ {Key: Value, ...}, ... ], "InstancePorts" : [ String, ... ], "LoadBalancerPorts" : [ String, ... ], "PolicyName" : String, "PolicyType" : String }

YAML

Attributes: - Key: Value InstancePorts: - String LoadBalancerPorts: - String PolicyName: String PolicyType: String

Properties

Attributes

The policy attributes.

Required: Yes

Type: Array of Object

Update requires: No interruption

InstancePorts

The instance ports for the policy. Required only for some policy types.

Required: No

Type: Array of String

Update requires: No interruption

LoadBalancerPorts

The load balancer ports for the policy. Required only for some policy types.

Required: No

Type: Array 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