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.

PriceSchedule

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

type PriceSchedule struct { Active *bool `locationName:"active" type:"boolean"` CurrencyCode *string `locationName:"currencyCode" type:"string" enum:"CurrencyCodeValues"` Price *float64 `locationName:"price" type:"double"` Term *int64 `locationName:"term" type:"long"` }

Describes the price for a Reserved Instance.

Active

Type: *bool

The current price schedule, as determined by the term remaining for the Reserved Instance in the listing.

A specific price schedule is always in effect, but only one price schedule can be active at any time. Take, for example, a Reserved Instance listing that has five months remaining in its term. When you specify price schedules for five months and two months, this means that schedule 1, covering the first three months of the remaining term, will be active during months 5, 4, and 3. Then schedule 2, covering the last two months of the term, will be active for months 2 and 1.

CurrencyCode

Type: *string

The currency for transacting the Reserved Instance resale. At this time, the only supported currency is USD.

Price

Type: *float64

The fixed price for the term.

Term

Type: *int64

The number of months remaining in the reservation. For example, 2 is the second to the last month before the capacity reservation expires.

Method

GoString

func (s PriceSchedule) GoString() string

GoString returns the string representation

SetActive

func (s *PriceSchedule) SetActive(v bool) *PriceSchedule

SetActive sets the Active field's value.

SetCurrencyCode

func (s *PriceSchedule) SetCurrencyCode(v string) *PriceSchedule

SetCurrencyCode sets the CurrencyCode field's value.

SetPrice

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

SetPrice sets the Price field's value.

SetTerm

func (s *PriceSchedule) SetTerm(v int64) *PriceSchedule

SetTerm sets the Term field's value.

String

func (s PriceSchedule) String() string

String returns the string representation

On this page: