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

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

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

Overview

Note:

When making an API call, you may pass HostEntry data as a 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)


1758
1759
1760
1761
1762
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1758

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

#ip_addressString

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

Returns:

  • (String)


1758
1759
1760
1761
1762
# File 'gems/aws-sdk-ecs/lib/aws-sdk-ecs/types.rb', line 1758

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