@Stability(value=Stable)
public static interface CfnDeploymentGroup.LoadBalancerInfoProperty
extends software.amazon.jsii.JsiiSerializable
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()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDeploymentGroup.LoadBalancerInfoProperty.Builder
A builder for
CfnDeploymentGroup.LoadBalancerInfoProperty |
static class |
CfnDeploymentGroup.LoadBalancerInfoProperty.Jsii$Proxy
An implementation for
CfnDeploymentGroup.LoadBalancerInfoProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDeploymentGroup.LoadBalancerInfoProperty.Builder |
builder() |
default Object |
getElbInfoList()
An array that contains information about the load balancer to use for load balancing in a deployment.
|
default Object |
getTargetGroupInfoList()
An array that contains information about the target group to use for load balancing in a deployment.
|
@Stability(value=Stable) @Nullable default Object getElbInfoList()
In Elastic Load Balancing, load balancers are used with Classic Load Balancers.
Adding more than one load balancer to the array is not supported.
@Stability(value=Stable) @Nullable default Object getTargetGroupInfoList()
In Elastic Load Balancing , target groups are used with Application Load Balancers .
Adding more than one target group to the array is not supported.
@Stability(value=Stable) static CfnDeploymentGroup.LoadBalancerInfoProperty.Builder builder()
Copyright © 2022. All rights reserved.