Class CfnDeploymentGroup.LoadBalancerInfoProperty
The LoadBalancerInfo
property type specifies information about the load balancer or target group used for an AWS CodeDeploy deployment group.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.AWS.CodeDeploy.dll
Syntax (csharp)
public class LoadBalancerInfoProperty : Object, CfnDeploymentGroup.ILoadBalancerInfoProperty
Syntax (vb)
Public Class LoadBalancerInfoProperty
Inherits Object
Implements CfnDeploymentGroup.ILoadBalancerInfoProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;
var loadBalancerInfoProperty = new LoadBalancerInfoProperty {
ElbInfoList = new [] { new ELBInfoProperty {
Name = "name"
} },
TargetGroupInfoList = new [] { new TargetGroupInfoProperty {
Name = "name"
} },
TargetGroupPairInfoList = new [] { new TargetGroupPairInfoProperty {
ProdTrafficRoute = new TrafficRouteProperty {
ListenerArns = new [] { "listenerArns" }
},
TargetGroups = new [] { new TargetGroupInfoProperty {
Name = "name"
} },
TestTrafficRoute = new TrafficRouteProperty {
ListenerArns = new [] { "listenerArns" }
}
} }
};
Synopsis
Constructors
LoadBalancerInfoProperty() |
Properties
ElbInfoList | An array that contains information about the load balancer to use for load balancing in a deployment. |
TargetGroupInfoList | An array that contains information about the target group to use for load balancing in a deployment. |
TargetGroupPairInfoList |
|
Constructors
LoadBalancerInfoProperty()
public LoadBalancerInfoProperty()
Properties
ElbInfoList
An array that contains information about the load balancer to use for load balancing in a deployment.
public object ElbInfoList { get; set; }
Property Value
System.Object
Remarks
In Elastic Load Balancing, load balancers are used with Classic Load Balancers.
Adding more than one load balancer to the array is not supported.
TargetGroupInfoList
An array that contains information about the target group to use for load balancing in a deployment.
public object TargetGroupInfoList { get; set; }
Property Value
System.Object
Remarks
In Elastic Load Balancing , target groups are used with Application Load Balancers .
Adding more than one target group to the array is not supported.
TargetGroupPairInfoList
CfnDeploymentGroup.LoadBalancerInfoProperty.TargetGroupPairInfoList
.
public object TargetGroupPairInfoList { get; set; }
Property Value
System.Object