This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
AWS::CodeDeploy::DeploymentGroup LoadBalancerInfo
The LoadBalancerInfo property type specifies information about the load
      balancer or target group used for an Amazon CodeDeploy deployment group. For more
      information, see  Integrating
          CodeDeploy with Elastic Load Balancing in the Amazon CodeDeploy User Guide.
For Amazon CloudFormation to use the properties specified in LoadBalancerInfo,
      the DeploymentStyle.DeploymentOption property must be set to
        WITH_TRAFFIC_CONTROL. If DeploymentStyle.DeploymentOption is not
      set to WITH_TRAFFIC_CONTROL, Amazon CloudFormation ignores any settings specified
      in LoadBalancerInfo.
Note
Amazon CloudFormation supports blue/green deployments on the Amazon Lambda compute platform only.
LoadBalancerInfo is a property of the DeploymentGroup resource. 
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "ElbInfoList" :[ ELBInfo, ... ], "TargetGroupInfoList" :[ TargetGroupInfo, ... ], "TargetGroupPairInfoList" :[ TargetGroupPairInfo, ... ]}
YAML
ElbInfoList:- ELBInfoTargetGroupInfoList:- TargetGroupInfoTargetGroupPairInfoList:- TargetGroupPairInfo
Properties
- ElbInfoList
- 
                    An array that contains information about the load balancers to use for load balancing in a deployment. If you're using Classic Load Balancers, specify those load balancers in this array. NoteYou can add up to 10 load balancers to the array. NoteIf you're using Application Load Balancers or Network Load Balancers, use the targetGroupInfoListarray instead of this one.Required: No Type: Array of ELBInfo Update requires: No interruption 
- TargetGroupInfoList
- 
                    An array that contains information about the target groups to use for load balancing in a deployment. If you're using Application Load Balancers and Network Load Balancers, specify their associated target groups in this array. NoteYou can add up to 10 target groups to the array. NoteIf you're using Classic Load Balancers, use the elbInfoListarray instead of this one.Required: Conditional Type: Array of TargetGroupInfo Update requires: No interruption 
- TargetGroupPairInfoList
- 
                    The target group pair information. This is an array of TargeGroupPairInfoobjects with a maximum size of one.Required: No Type: Array of TargetGroupPairInfo Update requires: No interruption