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.

CloseInstancePublicPortsInput

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

type CloseInstancePublicPortsInput struct { InstanceName *string `locationName:"instanceName" type:"string" required:"true"` PortInfo *PortInfo `locationName:"portInfo" type:"structure" required:"true"` }

InstanceName

Type: *string

The name of the instance on which you're attempting to close the public ports.

InstanceName is a required field

PortInfo

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

Method

GoString

func (s CloseInstancePublicPortsInput) GoString() string

GoString returns the string representation

SetInstanceName

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

SetInstanceName sets the InstanceName field's value.

SetPortInfo

func (s *CloseInstancePublicPortsInput) SetPortInfo(v *PortInfo) *CloseInstancePublicPortsInput

SetPortInfo sets the PortInfo field's value.

String

func (s CloseInstancePublicPortsInput) String() string

String returns the string representation

Validate

func (s *CloseInstancePublicPortsInput) Validate() error

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

On this page: