@Stability(value=Stable)
public static interface CfnDeploymentGroup.TargetGroupInfoProperty
extends software.amazon.jsii.JsiiSerializable
Instances are registered as targets in a target group, and traffic is routed to the target group. For more information, see TargetGroupInfo in the AWS CodeDeploy API Reference
If you specify the TargetGroupInfo
property, the DeploymentStyle.DeploymentOption
property must be set to WITH_TRAFFIC_CONTROL
for CodeDeploy to route your traffic using the specified target groups.
TargetGroupInfo
is a property of the LoadBalancerInfo property type.
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.*; TargetGroupInfoProperty targetGroupInfoProperty = TargetGroupInfoProperty.builder() .name("name") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnDeploymentGroup.TargetGroupInfoProperty.Builder
A builder for
CfnDeploymentGroup.TargetGroupInfoProperty |
static class |
CfnDeploymentGroup.TargetGroupInfoProperty.Jsii$Proxy
An implementation for
CfnDeploymentGroup.TargetGroupInfoProperty |
Modifier and Type | Method and Description |
---|---|
static CfnDeploymentGroup.TargetGroupInfoProperty.Builder |
builder() |
default String |
getName()
For blue/green deployments, the name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment registered with.
|
@Stability(value=Stable) @Nullable default String getName()
For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment completes. No duplicates allowed.
AWS CloudFormation supports blue/green deployments on AWS Lambda compute platforms only.
This value cannot exceed 32 characters, so you should use the Name
property of the target group, or the TargetGroupName
attribute with the Fn::GetAtt
intrinsic function, as shown in the following example. Don't use the group's Amazon Resource Name (ARN) or TargetGroupFullName
attribute.
@Stability(value=Stable) static CfnDeploymentGroup.TargetGroupInfoProperty.Builder builder()
Copyright © 2022. All rights reserved.