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.

Bundle

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

type Bundle struct { BundleId *string `locationName:"bundleId" type:"string"` CpuCount *int64 `locationName:"cpuCount" type:"integer"` DiskSizeInGb *int64 `locationName:"diskSizeInGb" type:"integer"` InstanceType *string `locationName:"instanceType" type:"string"` IsActive *bool `locationName:"isActive" type:"boolean"` Name *string `locationName:"name" type:"string"` Power *int64 `locationName:"power" type:"integer"` Price *float64 `locationName:"price" type:"float"` RamSizeInGb *float64 `locationName:"ramSizeInGb" type:"float"` SupportedPlatforms []*string `locationName:"supportedPlatforms" type:"list"` TransferPerMonthInGb *int64 `locationName:"transferPerMonthInGb" type:"integer"` }

Describes a bundle, which is a set of specs describing your virtual private server (or instance).

BundleId

Type: *string

The bundle ID (e.g., micro_1_0).

CpuCount

Type: *int64

The number of vCPUs included in the bundle (e.g., 2).

DiskSizeInGb

Type: *int64

The size of the SSD (e.g., 30).

InstanceType

Type: *string

The Amazon EC2 instance type (e.g., t2.micro).

IsActive

Type: *bool

A Boolean value indicating whether the bundle is active.

Name

Type: *string

A friendly name for the bundle (e.g., Micro).

Power

Type: *int64

A numeric value that represents the power of the bundle (e.g., 500). You can use the bundle's power value in conjunction with a blueprint's minimum power value to determine whether the blueprint will run on the bundle. For example, you need a bundle with a power value of 500 or more to create an instance that uses a blueprint with a minimum power value of 500.

Price

Type: *float64

The price in US dollars (e.g., 5.0).

RamSizeInGb

Type: *float64

The amount of RAM in GB (e.g., 2.0).

SupportedPlatforms

Type: []*string

The operating system platform (Linux/Unix-based or Windows Server-based) that the bundle supports. You can only launch a WINDOWS bundle on a blueprint that supports the WINDOWS platform. LINUX_UNIX blueprints require a LINUX_UNIX bundle.

TransferPerMonthInGb

Type: *int64

The data transfer rate per month in GB (e.g., 2000).

Method

GoString

func (s Bundle) GoString() string

GoString returns the string representation

SetBundleId

func (s *Bundle) SetBundleId(v string) *Bundle

SetBundleId sets the BundleId field's value.

SetCpuCount

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

SetCpuCount sets the CpuCount field's value.

SetDiskSizeInGb

func (s *Bundle) SetDiskSizeInGb(v int64) *Bundle

SetDiskSizeInGb sets the DiskSizeInGb field's value.

SetInstanceType

func (s *Bundle) SetInstanceType(v string) *Bundle

SetInstanceType sets the InstanceType field's value.

SetIsActive

func (s *Bundle) SetIsActive(v bool) *Bundle

SetIsActive sets the IsActive field's value.

SetName

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

SetName sets the Name field's value.

SetPower

func (s *Bundle) SetPower(v int64) *Bundle

SetPower sets the Power field's value.

SetPrice

func (s *Bundle) SetPrice(v float64) *Bundle

SetPrice sets the Price field's value.

SetRamSizeInGb

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

SetRamSizeInGb sets the RamSizeInGb field's value.

SetSupportedPlatforms

func (s *Bundle) SetSupportedPlatforms(v []*string) *Bundle

SetSupportedPlatforms sets the SupportedPlatforms field's value.

SetTransferPerMonthInGb

func (s *Bundle) SetTransferPerMonthInGb(v int64) *Bundle

SetTransferPerMonthInGb sets the TransferPerMonthInGb field's value.

String

func (s Bundle) String() string

String returns the string representation

On this page: