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.

InstancePortInfo

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

type InstancePortInfo struct { AccessDirection *string `locationName:"accessDirection" type:"string" enum:"AccessDirection"` AccessFrom *string `locationName:"accessFrom" type:"string"` AccessType *string `locationName:"accessType" type:"string" enum:"PortAccessType"` CommonName *string `locationName:"commonName" type:"string"` FromPort *int64 `locationName:"fromPort" type:"integer"` Protocol *string `locationName:"protocol" type:"string" enum:"NetworkProtocol"` ToPort *int64 `locationName:"toPort" type:"integer"` }

Describes information about the instance ports.

AccessDirection

Type: *string

The access direction (inbound or outbound).

AccessFrom

Type: *string

The location from which access is allowed (e.g., Anywhere (0.0.0.0/0)).

AccessType

Type: *string

The type of access (Public or Private).

CommonName

Type: *string

The common name.

FromPort

Type: *int64

The first port in the range.

Protocol

Type: *string

The protocol being used. Can be one of the following.

  • tcp - Transmission Control Protocol (TCP) provides reliable, ordered, and error-checked delivery of streamed data between applications running on hosts communicating by an IP network. If you have an application that doesn't require reliable data stream service, use UDP instead.

  • udp - With User Datagram Protocol (UDP), computer applications can send messages (or datagrams) to other hosts on an Internet Protocol (IP) network. Prior communications are not required to set up transmission channels or data paths. Applications that don't require reliable data stream service can use UDP, which provides a connectionless datagram service that emphasizes reduced latency over reliability. If you do require reliable data stream service, use TCP instead.

ToPort

Type: *int64

The last port in the range.

Method

GoString

func (s InstancePortInfo) GoString() string

GoString returns the string representation

SetAccessDirection

func (s *InstancePortInfo) SetAccessDirection(v string) *InstancePortInfo

SetAccessDirection sets the AccessDirection field's value.

SetAccessFrom

func (s *InstancePortInfo) SetAccessFrom(v string) *InstancePortInfo

SetAccessFrom sets the AccessFrom field's value.

SetAccessType

func (s *InstancePortInfo) SetAccessType(v string) *InstancePortInfo

SetAccessType sets the AccessType field's value.

SetCommonName

func (s *InstancePortInfo) SetCommonName(v string) *InstancePortInfo

SetCommonName sets the CommonName field's value.

SetFromPort

func (s *InstancePortInfo) SetFromPort(v int64) *InstancePortInfo

SetFromPort sets the FromPort field's value.

SetProtocol

func (s *InstancePortInfo) SetProtocol(v string) *InstancePortInfo

SetProtocol sets the Protocol field's value.

SetToPort

func (s *InstancePortInfo) SetToPort(v int64) *InstancePortInfo

SetToPort sets the ToPort field's value.

String

func (s InstancePortInfo) String() string

String returns the string representation

On this page: