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.

PutInstancePublicPortsInput

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

type PutInstancePublicPortsInput struct { InstanceName *string `locationName:"instanceName" type:"string" required:"true"` PortInfos []*PortInfo `locationName:"portInfos" type:"list" required:"true"` }

InstanceName

Type: *string

The Lightsail instance name of the public port(s) you are setting.

InstanceName is a required field

PortInfos

Describes information about the ports on your virtual private server (or instance).

Method

GoString

func (s PutInstancePublicPortsInput) GoString() string

GoString returns the string representation

SetInstanceName

func (s *PutInstancePublicPortsInput) SetInstanceName(v string) *PutInstancePublicPortsInput

SetInstanceName sets the InstanceName field's value.

SetPortInfos

func (s *PutInstancePublicPortsInput) SetPortInfos(v []*PortInfo) *PutInstancePublicPortsInput

SetPortInfos sets the PortInfos field's value.

String

func (s PutInstancePublicPortsInput) String() string

String returns the string representation

Validate

func (s *PutInstancePublicPortsInput) Validate() error

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

On this page: