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.

ReservedDBInstance

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

type ReservedDBInstance struct { CurrencyCode *string `type:"string"` DBInstanceClass *string `type:"string"` DBInstanceCount *int64 `type:"integer"` Duration *int64 `type:"integer"` FixedPrice *float64 `type:"double"` MultiAZ *bool `type:"boolean"` OfferingType *string `type:"string"` ProductDescription *string `type:"string"` RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"` ReservedDBInstanceArn *string `type:"string"` ReservedDBInstanceId *string `type:"string"` ReservedDBInstancesOfferingId *string `type:"string"` StartTime *time.Time `type:"timestamp"` State *string `type:"string"` UsagePrice *float64 `type:"double"` }

This data type is used as a response element in the DescribeReservedDBInstances and PurchaseReservedDBInstancesOffering actions.

CurrencyCode

Type: *string

The currency code for the reserved DB instance.

DBInstanceClass

Type: *string

The DB instance class for the reserved DB instance.

DBInstanceCount

Type: *int64

The number of reserved DB instances.

Duration

Type: *int64

The duration of the reservation in seconds.

FixedPrice

Type: *float64

The fixed price charged for this reserved DB instance.

MultiAZ

Type: *bool

Indicates if the reservation applies to Multi-AZ deployments.

OfferingType

Type: *string

The offering type of this reserved DB instance.

ProductDescription

Type: *string

The description of the reserved DB instance.

RecurringCharges

This data type is used as a response element in the DescribeReservedDBInstances and DescribeReservedDBInstancesOfferings actions.

ReservedDBInstanceArn

Type: *string

The Amazon Resource Name (ARN) for the reserved DB instance.

ReservedDBInstanceId

Type: *string

The unique identifier for the reservation.

ReservedDBInstancesOfferingId

Type: *string

The offering identifier.

StartTime

Type: *time.Time

The time the reservation started.

State

Type: *string

The state of the reserved DB instance.

UsagePrice

Type: *float64

The hourly price charged for this reserved DB instance.

Method

GoString

func (s ReservedDBInstance) GoString() string

GoString returns the string representation

SetCurrencyCode

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

SetCurrencyCode sets the CurrencyCode field's value.

SetDBInstanceClass

func (s *ReservedDBInstance) SetDBInstanceClass(v string) *ReservedDBInstance

SetDBInstanceClass sets the DBInstanceClass field's value.

SetDBInstanceCount

func (s *ReservedDBInstance) SetDBInstanceCount(v int64) *ReservedDBInstance

SetDBInstanceCount sets the DBInstanceCount field's value.

SetDuration

func (s *ReservedDBInstance) SetDuration(v int64) *ReservedDBInstance

SetDuration sets the Duration field's value.

SetFixedPrice

func (s *ReservedDBInstance) SetFixedPrice(v float64) *ReservedDBInstance

SetFixedPrice sets the FixedPrice field's value.

SetMultiAZ

func (s *ReservedDBInstance) SetMultiAZ(v bool) *ReservedDBInstance

SetMultiAZ sets the MultiAZ field's value.

SetOfferingType

func (s *ReservedDBInstance) SetOfferingType(v string) *ReservedDBInstance

SetOfferingType sets the OfferingType field's value.

SetProductDescription

func (s *ReservedDBInstance) SetProductDescription(v string) *ReservedDBInstance

SetProductDescription sets the ProductDescription field's value.

SetRecurringCharges

func (s *ReservedDBInstance) SetRecurringCharges(v []*RecurringCharge) *ReservedDBInstance

SetRecurringCharges sets the RecurringCharges field's value.

SetReservedDBInstanceArn

func (s *ReservedDBInstance) SetReservedDBInstanceArn(v string) *ReservedDBInstance

SetReservedDBInstanceArn sets the ReservedDBInstanceArn field's value.

SetReservedDBInstanceId

func (s *ReservedDBInstance) SetReservedDBInstanceId(v string) *ReservedDBInstance

SetReservedDBInstanceId sets the ReservedDBInstanceId field's value.

SetReservedDBInstancesOfferingId

func (s *ReservedDBInstance) SetReservedDBInstancesOfferingId(v string) *ReservedDBInstance

SetReservedDBInstancesOfferingId sets the ReservedDBInstancesOfferingId field's value.

SetStartTime

func (s *ReservedDBInstance) SetStartTime(v time.Time) *ReservedDBInstance

SetStartTime sets the StartTime field's value.

SetState

func (s *ReservedDBInstance) SetState(v string) *ReservedDBInstance

SetState sets the State field's value.

SetUsagePrice

func (s *ReservedDBInstance) SetUsagePrice(v float64) *ReservedDBInstance

SetUsagePrice sets the UsagePrice field's value.

String

func (s ReservedDBInstance) String() string

String returns the string representation

On this page: