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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecs/types.rb

Overview

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

[1]: docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#hostnameString

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

Returns:

  • (String)


5464
5465
5466
5467
5468
5469
# File 'lib/aws-sdk-ecs/types.rb', line 5464

class HostEntry < Struct.new(
  :hostname,
  :ip_address)
  SENSITIVE = []
  include Aws::Structure
end

#ip_addressString

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

Returns:

  • (String)


5464
5465
5466
5467
5468
5469
# File 'lib/aws-sdk-ecs/types.rb', line 5464

class HostEntry < Struct.new(
  :hostname,
  :ip_address)
  SENSITIVE = []
  include Aws::Structure
end