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>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      @Stability(Stable) public CfnDeploymentGroup.TargetGroupInfoProperty.Builder name(String name)
      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 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.

      Returns:
      this
    • build

      @Stability(Stable) public CfnDeploymentGroup.TargetGroupInfoProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDeploymentGroup.TargetGroupInfoProperty>
      Returns:
      a new instance of CfnDeploymentGroup.TargetGroupInfoProperty
      Throws:
      NullPointerException - if any required attribute was not provided