Skip to content

ECS  >  Structures  >  HostEntry

HostEntry

Structure Class

HostEntry dataclass

Bases: _SerdeShape

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

Attributes

hostname instance-attribute
hostname: str

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

ip_address instance-attribute
ip_address: str

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