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.

InstanceHardware

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

type InstanceHardware struct { CpuCount *int64 `locationName:"cpuCount" type:"integer"` Disks []*Disk `locationName:"disks" type:"list"` RamSizeInGb *float64 `locationName:"ramSizeInGb" type:"float"` }

Describes the hardware for the instance.

CpuCount

Type: *int64

The number of vCPUs the instance has.

Disks

Describes a system disk or an block storage disk.

RamSizeInGb

Type: *float64

The amount of RAM in GB on the instance (e.g., 1.0).

Method

GoString

func (s InstanceHardware) GoString() string

GoString returns the string representation

SetCpuCount

func (s *InstanceHardware) SetCpuCount(v int64) *InstanceHardware

SetCpuCount sets the CpuCount field's value.

SetDisks

func (s *InstanceHardware) SetDisks(v []*Disk) *InstanceHardware

SetDisks sets the Disks field's value.

SetRamSizeInGb

func (s *InstanceHardware) SetRamSizeInGb(v float64) *InstanceHardware

SetRamSizeInGb sets the RamSizeInGb field's value.

String

func (s InstanceHardware) String() string

String returns the string representation

On this page: