Class: Aws::ECS::Types::NetworkBinding

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

Overview

Note:

When making an API call, you may pass NetworkBinding data as a hash:

{
  bind_ip: "String",
  container_port: 1,
  host_port: 1,
  protocol: "tcp", # accepts tcp, udp
}

Details on the network bindings between a container and its host container instance. After a task reaches the ‘RUNNING` status, manual and automatic host and container port assignments are visible in the `networkBindings` section of DescribeTasks API responses.

Instance Attribute Summary collapse

Instance Attribute Details

#bind_ipString

The IP address that the container is bound to on the container instance.

Returns:

  • (String)


3443
3444
3445
3446
3447
3448
3449
# File 'lib/aws-sdk-ecs/types.rb', line 3443

class NetworkBinding < Struct.new(
  :bind_ip,
  :container_port,
  :host_port,
  :protocol)
  include Aws::Structure
end

#container_portInteger

The port number on the container that is used with the network binding.

Returns:

  • (Integer)


3443
3444
3445
3446
3447
3448
3449
# File 'lib/aws-sdk-ecs/types.rb', line 3443

class NetworkBinding < Struct.new(
  :bind_ip,
  :container_port,
  :host_port,
  :protocol)
  include Aws::Structure
end

#host_portInteger

The port number on the host that is used with the network binding.

Returns:

  • (Integer)


3443
3444
3445
3446
3447
3448
3449
# File 'lib/aws-sdk-ecs/types.rb', line 3443

class NetworkBinding < Struct.new(
  :bind_ip,
  :container_port,
  :host_port,
  :protocol)
  include Aws::Structure
end

#protocolString

The protocol used for the network binding.

Returns:

  • (String)


3443
3444
3445
3446
3447
3448
3449
# File 'lib/aws-sdk-ecs/types.rb', line 3443

class NetworkBinding < Struct.new(
  :bind_ip,
  :container_port,
  :host_port,
  :protocol)
  include Aws::Structure
end