Interface TargetGroupPairInfo.Builder

    • Method Detail

      • targetGroups

        TargetGroupPairInfo.Builder targetGroups​(Collection<TargetGroupInfo> targetGroups)

        One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.

        Parameters:
        targetGroups - One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetGroups

        TargetGroupPairInfo.Builder targetGroups​(TargetGroupInfo... targetGroups)

        One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.

        Parameters:
        targetGroups - One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetGroups

        TargetGroupPairInfo.Builder targetGroups​(Consumer<TargetGroupInfo.Builder>... targetGroups)

        One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete.

        This is a convenience method that creates an instance of the TargetGroupInfo.Builder avoiding the need to create one manually via TargetGroupInfo.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #targetGroups(List).

        Parameters:
        targetGroups - a consumer that will call methods on TargetGroupInfo.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #targetGroups(java.util.Collection)
      • prodTrafficRoute

        TargetGroupPairInfo.Builder prodTrafficRoute​(TrafficRoute prodTrafficRoute)

        The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.

        Parameters:
        prodTrafficRoute - The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • testTrafficRoute

        TargetGroupPairInfo.Builder testTrafficRoute​(TrafficRoute testTrafficRoute)

        An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can occur while test traffic is served during a deployment.

        Parameters:
        testTrafficRoute - An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can occur while test traffic is served during a deployment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.