Class CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codedeploy.CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty>
- Enclosing interface:
CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty
@Stability(Stable)
public static final class CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty>
A builder for
CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDeploymentGroupPropsMixin.TargetGroupInfoProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
@Stability(Stable) public CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty.Builder name(String name) Sets the value ofCfnDeploymentGroupPropsMixin.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.CloudFormation supports blue/green deployments on AWS Lambda compute platforms only.
This value cannot exceed 32 characters, so you should use the
Nameproperty of the target group, or theTargetGroupNameattribute with theFn::GetAttintrinsic function, as shown in the following example. Don't use the group's Amazon Resource Name (ARN) orTargetGroupFullNameattribute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty>- Returns:
- a new instance of
CfnDeploymentGroupPropsMixin.TargetGroupInfoProperty - Throws:
NullPointerException- if any required attribute was not provided
-