Class CfnDeploymentGroup.TargetGroupInfoProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.TargetGroupInfoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup.TargetGroupInfoProperty>
- Enclosing interface:
CfnDeploymentGroup.TargetGroupInfoProperty
@Stability(Stable)
public static final class CfnDeploymentGroup.TargetGroupInfoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroup.TargetGroupInfoProperty>
A builder for
CfnDeploymentGroup.TargetGroupInfoProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDeploymentGroup.TargetGroupInfoProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnDeploymentGroup.TargetGroupInfoProperty.getName()
- Parameters:
name
- 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. 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 theTargetGroupName
attribute with theFn::GetAtt
intrinsic function, as shown in the following example. Don't use the group's Amazon Resource Name (ARN) orTargetGroupFullName
attribute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup.TargetGroupInfoProperty>
- Returns:
- a new instance of
CfnDeploymentGroup.TargetGroupInfoProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-