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

Class: Aws::ECS::Types::HostEntry

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

Overview

Note:

When passing HostEntry as input to an Aws::Client method, you can use a vanilla Hash:

{
  hostname: "String", # required
  ip_address: "String", # required
}

Hostnames and IP address entries that are added to the /etc/hosts file of a container via the extraHosts parameter of its ContainerDefinition.

Instance Attribute Summary collapse

Instance Attribute Details

#hostnameString

The hostname to use in the /etc/hosts entry.

Returns:

  • (String)

    The hostname to use in the /etc/hosts entry.

#ip_addressString

The IP address to use in the /etc/hosts entry.

Returns:

  • (String)

    The IP address to use in the /etc/hosts entry.