AwsEcsServiceLoadBalancersDetails
Information about a load balancer that the service uses.
Contents
- ContainerName
-
The name of the container to associate with the load balancer.
Type: String
Pattern:
.*\S.*
Required: No
- ContainerPort
-
The port on the container to associate with the load balancer. This port must correspond to a
containerPort
in the task definition the tasks in the service are using. For tasks that use the EC2 launch type, the container instance they are launched on must allow ingress traffic on thehostPort
of the port mapping.Type: Integer
Required: No
- LoadBalancerName
-
The name of the load balancer to associate with the Amazon ECS service or task set.
Only specified when using a Classic Load Balancer. For an Application Load Balancer or a Network Load Balancer, the load balancer name is omitted.
Type: String
Pattern:
.*\S.*
Required: No
- TargetGroupArn
-
The ARN of the Elastic Load Balancing target group or groups associated with a service or task set.
Only specified when using an Application Load Balancer or a Network Load Balancer. For a Classic Load Balancer, the target group ARN is omitted.
Type: String
Pattern:
.*\S.*
Required: No
See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: