LoadBalancer class
The load balancer configuration to use with a service or task set.
For specific notes and restrictions regarding the use of load balancers with services and task sets, see the CreateService and CreateTaskSet actions.
Constructors
- LoadBalancer({String? containerName, int? containerPort, String? loadBalancerName, String? targetGroupArn})
-
LoadBalancer.fromJson(Map<
String, dynamic> json) -
factory
Properties
- containerName → String?
-
The name of the container (as it appears in a container definition) to
associate with the load balancer.
final
- containerPort → int?
-
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.final - hashCode → int
-
The hash code for this object.
no setterinherited
- loadBalancerName → String?
-
The name of the load balancer to associate with the Amazon ECS service or
task set.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetGroupArn → String?
-
The full Amazon Resource Name (ARN) of the Elastic Load Balancing target
group or groups associated with a service or task set.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited