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.

AttachStaticIpInput

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

type AttachStaticIpInput struct { InstanceName *string `locationName:"instanceName" type:"string" required:"true"` StaticIpName *string `locationName:"staticIpName" type:"string" required:"true"` }

InstanceName

Type: *string

The instance name to which you want to attach the static IP address.

InstanceName is a required field

StaticIpName

Type: *string

The name of the static IP.

StaticIpName is a required field

Method

GoString

func (s AttachStaticIpInput) GoString() string

GoString returns the string representation

SetInstanceName

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

SetInstanceName sets the InstanceName field's value.

SetStaticIpName

func (s *AttachStaticIpInput) SetStaticIpName(v string) *AttachStaticIpInput

SetStaticIpName sets the StaticIpName field's value.

String

func (s AttachStaticIpInput) String() string

String returns the string representation

Validate

func (s *AttachStaticIpInput) Validate() error

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

On this page: