Interface CfnDeploymentGroup.LoadBalancerInfoProperty
- All Superinterfaces:
 software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
 CfnDeploymentGroup.LoadBalancerInfoProperty.Jsii$Proxy
- Enclosing class:
 CfnDeploymentGroup
LoadBalancerInfo property type specifies information about the load balancer or target group used for an AWS CodeDeploy deployment group.
 For more information, see Integrating CodeDeploy with Elastic Load Balancing in the AWS CodeDeploy User Guide .
 For AWS 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 , AWS CloudFormation ignores any settings specified in LoadBalancerInfo .
 
AWS CloudFormation supports blue/green deployments on the AWS Lambda compute platform only.
 LoadBalancerInfo is a property of the DeploymentGroup resource.
 
Example:
 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.codedeploy.*;
 LoadBalancerInfoProperty loadBalancerInfoProperty = LoadBalancerInfoProperty.builder()
         .elbInfoList(List.of(ELBInfoProperty.builder()
                 .name("name")
                 .build()))
         .targetGroupInfoList(List.of(TargetGroupInfoProperty.builder()
                 .name("name")
                 .build()))
         .targetGroupPairInfoList(List.of(TargetGroupPairInfoProperty.builder()
                 .prodTrafficRoute(TrafficRouteProperty.builder()
                         .listenerArns(List.of("listenerArns"))
                         .build())
                 .targetGroups(List.of(TargetGroupInfoProperty.builder()
                         .name("name")
                         .build()))
                 .testTrafficRoute(TrafficRouteProperty.builder()
                         .listenerArns(List.of("listenerArns"))
                         .build())
                 .build()))
         .build();
 
 - See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDeploymentGroup.LoadBalancerInfoPropertystatic final classAn implementation forCfnDeploymentGroup.LoadBalancerInfoProperty - 
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectAn array that contains information about the load balancers to use for load balancing in a deployment.default ObjectAn array that contains information about the target groups to use for load balancing in a deployment.default ObjectThe target group pair information.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson 
- 
Method Details
- 
getElbInfoList
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.
You can add up to 10 load balancers to the array. > If you're using Application Load Balancers or Network Load Balancers, use the
targetGroupInfoListarray instead of this one.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDeploymentGroup.ELBInfoProperty>- See Also:
 
 - 
getTargetGroupInfoList
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.
You can add up to 10 target groups to the array. > If you're using Classic Load Balancers, use the
elbInfoListarray instead of this one.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDeploymentGroup.TargetGroupInfoProperty>- See Also:
 
 - 
getTargetGroupPairInfoList
The target group pair information.This is an array of
TargeGroupPairInfoobjects with a maximum size of one.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDeploymentGroup.TargetGroupPairInfoProperty>- See Also:
 
 - 
builder
 
 -