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.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#bind_ipString

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

Returns:

  • (String)

6990
6991
6992
6993
6994
6995
6996
6997
# File 'lib/aws-sdk-ecs/types.rb', line 6990

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

#container_portInteger

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

Returns:

  • (Integer)

6990
6991
6992
6993
6994
6995
6996
6997
# File 'lib/aws-sdk-ecs/types.rb', line 6990

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

#host_portInteger

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

Returns:

  • (Integer)

6990
6991
6992
6993
6994
6995
6996
6997
# File 'lib/aws-sdk-ecs/types.rb', line 6990

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

#protocolString

The protocol used for the network binding.

Returns:

  • (String)

6990
6991
6992
6993
6994
6995
6996
6997
# File 'lib/aws-sdk-ecs/types.rb', line 6990

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