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.

StaticIp

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

type StaticIp struct { Arn *string `locationName:"arn" type:"string"` AttachedTo *string `locationName:"attachedTo" type:"string"` CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` IpAddress *string `locationName:"ipAddress" type:"string"` IsAttached *bool `locationName:"isAttached" type:"boolean"` Location *ResourceLocation `locationName:"location" type:"structure"` Name *string `locationName:"name" type:"string"` ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` SupportCode *string `locationName:"supportCode" type:"string"` }

Describes the static IP.

Arn

Type: *string

The Amazon Resource Name (ARN) of the static IP (e.g., arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

AttachedTo

Type: *string

The instance where the static IP is attached (e.g., Amazon_Linux-1GB-Ohio-1).

CreatedAt

Type: *time.Time

The timestamp when the static IP was created (e.g., 1479735304.222).

IpAddress

Type: *string

The static IP address.

IsAttached

Type: *bool

A Boolean value indicating whether the static IP is attached.

Location

Describes the resource location.

Name

Type: *string

The name of the static IP (e.g., StaticIP-Ohio-EXAMPLE).

ResourceType

Type: *string

The resource type (usually StaticIp).

SupportCode

Type: *string

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

Method

GoString

func (s StaticIp) GoString() string

GoString returns the string representation

SetArn

func (s *StaticIp) SetArn(v string) *StaticIp

SetArn sets the Arn field's value.

SetAttachedTo

func (s *StaticIp) SetAttachedTo(v string) *StaticIp

SetAttachedTo sets the AttachedTo field's value.

SetCreatedAt

func (s *StaticIp) SetCreatedAt(v time.Time) *StaticIp

SetCreatedAt sets the CreatedAt field's value.

SetIpAddress

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

SetIpAddress sets the IpAddress field's value.

SetIsAttached

func (s *StaticIp) SetIsAttached(v bool) *StaticIp

SetIsAttached sets the IsAttached field's value.

SetLocation

func (s *StaticIp) SetLocation(v *ResourceLocation) *StaticIp

SetLocation sets the Location field's value.

SetName

func (s *StaticIp) SetName(v string) *StaticIp

SetName sets the Name field's value.

SetResourceType

func (s *StaticIp) SetResourceType(v string) *StaticIp

SetResourceType sets the ResourceType field's value.

SetSupportCode

func (s *StaticIp) SetSupportCode(v string) *StaticIp

SetSupportCode sets the SupportCode field's value.

String

func (s StaticIp) String() string

String returns the string representation

On this page: