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

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb

Overview

Note:

When making an API call, you may pass LoadBalancer data as a 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)


3012
3013
3014
3015
3016
3017
3018
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3012

class LoadBalancer < Struct.new(
  :target_group_arn,
  :load_balancer_name,
  :container_name,
  :container_port)
  include Aws::Structure
end

#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)


3012
3013
3014
3015
3016
3017
3018
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3012

class LoadBalancer < Struct.new(
  :target_group_arn,
  :load_balancer_name,
  :container_name,
  :container_port)
  include Aws::Structure
end

#load_balancer_nameString

The name of a load balancer.

Returns:

  • (String)


3012
3013
3014
3015
3016
3017
3018
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3012

class LoadBalancer < Struct.new(
  :target_group_arn,
  :load_balancer_name,
  :container_name,
  :container_port)
  include Aws::Structure
end

#target_group_arnString

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

Returns:

  • (String)


3012
3013
3014
3015
3016
3017
3018
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 3012

class LoadBalancer < Struct.new(
  :target_group_arn,
  :load_balancer_name,
  :container_name,
  :container_port)
  include Aws::Structure
end