You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ECS::Types::LoadBalancer

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing LoadBalancer as input to an Aws::Client method, you can use a vanilla Hash:

{
  target_group_arn: "String",
  load_balancer_name: "String",
  container_name: "String",
  container_port: 1,
}

Details on a load balancer that is used with a service.

Instance Attribute Summary collapse

Instance Attribute Details

#container_nameString

The name of the container (as it appears in a container definition) to associate with the load balancer.

Returns:

  • (String)

    The name of the container (as it appears in a container definition) to associate with the load balancer.

#container_portInteger

The port on the container to associate with the load balancer. This port must correspond to a containerPort in the service\'s task definition. Your container instances must allow ingress traffic on the hostPort of the port mapping.

Returns:

  • (Integer)

    The port on the container to associate with the load balancer.

#load_balancer_nameString

The name of a load balancer.

Returns:

  • (String)

    The name of a load balancer.

#target_group_arnString

The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.

Returns:

  • (String)

    The full Amazon Resource Name (ARN) of the Elastic Load Balancing target group associated with a service.