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.

CreateReservedInstancesListingInput

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

type CreateReservedInstancesListingInput struct { ClientToken *string `locationName:"clientToken" type:"string" required:"true"` InstanceCount *int64 `locationName:"instanceCount" type:"integer" required:"true"` PriceSchedules []*PriceScheduleSpecification `locationName:"priceSchedules" locationNameList:"item" type:"list" required:"true"` ReservedInstancesId *string `locationName:"reservedInstancesId" type:"string" required:"true"` }

Contains the parameters for CreateReservedInstancesListing.

ClientToken

Type: *string

Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html).

ClientToken is a required field

InstanceCount

Type: *int64

The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.

InstanceCount is a required field

PriceSchedules

Describes the price for a Reserved Instance.

ReservedInstancesId

Type: *string

The ID of the active Standard Reserved Instance.

ReservedInstancesId is a required field

Method

GoString

func (s CreateReservedInstancesListingInput) GoString() string

GoString returns the string representation

SetClientToken

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

SetClientToken sets the ClientToken field's value.

SetInstanceCount

func (s *CreateReservedInstancesListingInput) SetInstanceCount(v int64) *CreateReservedInstancesListingInput

SetInstanceCount sets the InstanceCount field's value.

SetPriceSchedules

func (s *CreateReservedInstancesListingInput) SetPriceSchedules(v []*PriceScheduleSpecification) *CreateReservedInstancesListingInput

SetPriceSchedules sets the PriceSchedules field's value.

SetReservedInstancesId

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

SetReservedInstancesId sets the ReservedInstancesId field's value.

String

func (s CreateReservedInstancesListingInput) String() string

String returns the string representation

Validate

func (s *CreateReservedInstancesListingInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: