AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

HostEntry

import "github.com/aws/aws-sdk-go/service/ecs"

type HostEntry struct { Hostname *string `locationName:"hostname" type:"string" required:"true"` IpAddress *string `locationName:"ipAddress" type:"string" required:"true"` }

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

Hostname

Type: *string

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

Hostname is a required field

IpAddress

Type: *string

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

IpAddress is a required field

Method

GoString

func (s HostEntry) GoString() string

GoString returns the string representation

SetHostname

func (s *HostEntry) SetHostname(v string) *HostEntry

SetHostname sets the Hostname field's value.

SetIpAddress

func (s *HostEntry) SetIpAddress(v string) *HostEntry

SetIpAddress sets the IpAddress field's value.

String

func (s HostEntry) String() string

String returns the string representation

Validate

func (s *HostEntry) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: