AWS::ElasticLoadBalancing::LoadBalancer Policies - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

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 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