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.

Operation

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

type Operation struct { CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` ErrorCode *string `locationName:"errorCode" type:"string"` ErrorDetails *string `locationName:"errorDetails" type:"string"` Id *string `locationName:"id" type:"string"` IsTerminal *bool `locationName:"isTerminal" type:"boolean"` Location *ResourceLocation `locationName:"location" type:"structure"` OperationDetails *string `locationName:"operationDetails" type:"string"` OperationType *string `locationName:"operationType" type:"string" enum:"OperationType"` ResourceName *string `locationName:"resourceName" type:"string"` ResourceType *string `locationName:"resourceType" type:"string" enum:"ResourceType"` Status *string `locationName:"status" type:"string" enum:"OperationStatus"` StatusChangedAt *time.Time `locationName:"statusChangedAt" type:"timestamp"` }

Describes the API operation.

CreatedAt

Type: *time.Time

The timestamp when the operation was initialized (e.g., 1479816991.349).

ErrorCode

Type: *string

The error code.

ErrorDetails

Type: *string

The error details.

Id

Type: *string

The ID of the operation.

IsTerminal

Type: *bool

A Boolean value indicating whether the operation is terminal.

Location

Describes the resource location.

OperationDetails

Type: *string

Details about the operation (e.g., Debian-1GB-Ohio-1).

OperationType

Type: *string

The type of operation.

ResourceName

Type: *string

The resource name.

ResourceType

Type: *string

The resource type.

Status

Type: *string

The status of the operation.

StatusChangedAt

Type: *time.Time

The timestamp when the status was changed (e.g., 1479816991.349).

Method

GoString

func (s Operation) GoString() string

GoString returns the string representation

SetCreatedAt

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

SetCreatedAt sets the CreatedAt field's value.

SetErrorCode

func (s *Operation) SetErrorCode(v string) *Operation

SetErrorCode sets the ErrorCode field's value.

SetErrorDetails

func (s *Operation) SetErrorDetails(v string) *Operation

SetErrorDetails sets the ErrorDetails field's value.

SetId

func (s *Operation) SetId(v string) *Operation

SetId sets the Id field's value.

SetIsTerminal

func (s *Operation) SetIsTerminal(v bool) *Operation

SetIsTerminal sets the IsTerminal field's value.

SetLocation

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

SetLocation sets the Location field's value.

SetOperationDetails

func (s *Operation) SetOperationDetails(v string) *Operation

SetOperationDetails sets the OperationDetails field's value.

SetOperationType

func (s *Operation) SetOperationType(v string) *Operation

SetOperationType sets the OperationType field's value.

SetResourceName

func (s *Operation) SetResourceName(v string) *Operation

SetResourceName sets the ResourceName field's value.

SetResourceType

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

SetResourceType sets the ResourceType field's value.

SetStatus

func (s *Operation) SetStatus(v string) *Operation

SetStatus sets the Status field's value.

SetStatusChangedAt

func (s *Operation) SetStatusChangedAt(v time.Time) *Operation

SetStatusChangedAt sets the StatusChangedAt field's value.

String

func (s Operation) String() string

String returns the string representation

On this page: