Interface CfnTaskSet.LoadBalancerProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTaskSet.LoadBalancerProperty.Jsii$Proxy
Enclosing class:
CfnTaskSet

@Stability(Stable) public static interface CfnTaskSet.LoadBalancerProperty extends software.amazon.jsii.JsiiSerializable
The load balancer configuration to use with a service or task set.

When you add, update, or remove a load balancer configuration, Amazon ECS starts a new deployment with the updated Elastic Load Balancing configuration. This causes tasks to register to and deregister from load balancers.

We recommend that you verify this on a test environment before you update the Elastic Load Balancing configuration.

A service-linked role is required for services that use multiple target groups. For more information, see Using service-linked roles in the Amazon Elastic Container Service Developer Guide .

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.ecs.*;
 LoadBalancerProperty loadBalancerProperty = LoadBalancerProperty.builder()
         .containerName("containerName")
         .containerPort(123)
         .targetGroupArn("targetGroupArn")
         .build();
 

See Also: