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

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

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

Overview

Note:

When passing NetworkBinding as input to an Aws::Client method, you can use a vanilla 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)

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

#container_portInteger

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

Returns:

  • (Integer)

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

#host_portInteger

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

Returns:

  • (Integer)

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

#protocolString

The protocol used for the network binding.

Possible values:

  • tcp
  • udp

Returns:

  • (String)

    The protocol used for the network binding.