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

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

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


2590
2591
2592
2593
2594
2595
2596
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 2590

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 be used with the network binding.

Returns:

  • (Integer)


2590
2591
2592
2593
2594
2595
2596
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 2590

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)


2590
2591
2592
2593
2594
2595
2596
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 2590

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)


2590
2591
2592
2593
2594
2595
2596
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 2590

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