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.

ReservedInstancesListing

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

type ReservedInstancesListing struct { ClientToken *string `locationName:"clientToken" type:"string"` CreateDate *time.Time `locationName:"createDate" type:"timestamp"` InstanceCounts []*InstanceCount `locationName:"instanceCounts" locationNameList:"item" type:"list"` PriceSchedules []*PriceSchedule `locationName:"priceSchedules" locationNameList:"item" type:"list"` ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string"` ReservedInstancesListingId *string `locationName:"reservedInstancesListingId" type:"string"` Status *string `locationName:"status" type:"string" enum:"ListingStatus"` StatusMessage *string `locationName:"statusMessage" type:"string"` Tags []*Tag `locationName:"tagSet" locationNameList:"item" type:"list"` UpdateDate *time.Time `locationName:"updateDate" type:"timestamp"` }

Describes a Reserved Instance listing.

ClientToken

Type: *string

A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).

CreateDate

Type: *time.Time

The time the listing was created.

InstanceCounts

Describes a Reserved Instance listing state.

PriceSchedules

Describes the price for a Reserved Instance.

ReservedInstancesId

Type: *string

The ID of the Reserved Instance.

ReservedInstancesListingId

Type: *string

The ID of the Reserved Instance listing.

Status

Type: *string

The status of the Reserved Instance listing.

StatusMessage

Type: *string

The reason for the current status of the Reserved Instance listing. The response can be blank.

Tags

Describes a tag.

UpdateDate

Type: *time.Time

The last modified timestamp of the listing.

Method

GoString

func (s ReservedInstancesListing) GoString() string

GoString returns the string representation

SetClientToken

func (s *ReservedInstancesListing) SetClientToken(v string) *ReservedInstancesListing

SetClientToken sets the ClientToken field's value.

SetCreateDate

func (s *ReservedInstancesListing) SetCreateDate(v time.Time) *ReservedInstancesListing

SetCreateDate sets the CreateDate field's value.

SetInstanceCounts

func (s *ReservedInstancesListing) SetInstanceCounts(v []*InstanceCount) *ReservedInstancesListing

SetInstanceCounts sets the InstanceCounts field's value.

SetPriceSchedules

func (s *ReservedInstancesListing) SetPriceSchedules(v []*PriceSchedule) *ReservedInstancesListing

SetPriceSchedules sets the PriceSchedules field's value.

SetReservedInstancesId

func (s *ReservedInstancesListing) SetReservedInstancesId(v string) *ReservedInstancesListing

SetReservedInstancesId sets the ReservedInstancesId field's value.

SetReservedInstancesListingId

func (s *ReservedInstancesListing) SetReservedInstancesListingId(v string) *ReservedInstancesListing

SetReservedInstancesListingId sets the ReservedInstancesListingId field's value.

SetStatus

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

SetStatus sets the Status field's value.

SetStatusMessage

func (s *ReservedInstancesListing) SetStatusMessage(v string) *ReservedInstancesListing

SetStatusMessage sets the StatusMessage field's value.

SetTags

func (s *ReservedInstancesListing) SetTags(v []*Tag) *ReservedInstancesListing

SetTags sets the Tags field's value.

SetUpdateDate

func (s *ReservedInstancesListing) SetUpdateDate(v time.Time) *ReservedInstancesListing

SetUpdateDate sets the UpdateDate field's value.

String

func (s ReservedInstancesListing) String() string

String returns the string representation

On this page: