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.

ReservedCacheNode

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

type ReservedCacheNode struct { CacheNodeCount *int64 `type:"integer"` CacheNodeType *string `type:"string"` Duration *int64 `type:"integer"` FixedPrice *float64 `type:"double"` OfferingType *string `type:"string"` ProductDescription *string `type:"string"` RecurringCharges []*RecurringCharge `locationNameList:"RecurringCharge" type:"list"` ReservationARN *string `type:"string"` ReservedCacheNodeId *string `type:"string"` ReservedCacheNodesOfferingId *string `type:"string"` StartTime *time.Time `type:"timestamp"` State *string `type:"string"` UsagePrice *float64 `type:"double"` }

Represents the output of a PurchaseReservedCacheNodesOffering operation.

CacheNodeCount

Type: *int64

The number of cache nodes that have been reserved.

CacheNodeType

Type: *string

The cache node type for the reserved cache nodes.

The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.

  • General purpose:

Current generation:

T2 node types:cache.t2.micro, cache.t2.small, cache.t2.medium

M3 node types:cache.m3.medium, cache.m3.large, cache.m3.xlarge, cache.m3.2xlarge

M4 node types:cache.m4.large, cache.m4.xlarge, cache.m4.2xlarge, cache.m4.4xlarge,

cache.m4.10xlarge

Previous generation: (not recommended)

T1 node types:cache.t1.micro

M1 node types:cache.m1.small, cache.m1.medium, cache.m1.large, cache.m1.xlarge

  • Compute optimized:

Previous generation: (not recommended)

C1 node types:cache.c1.xlarge

  • Memory optimized:

Current generation:

R3 node types:cache.r3.large, cache.r3.xlarge, cache.r3.2xlarge, cache.r3.4xlarge,

cache.r3.8xlarge

R4 node types;cache.r4.large, cache.r4.xlarge, cache.r4.2xlarge, cache.r4.4xlarge,

cache.r4.8xlarge, cache.r4.16xlarge

Previous generation: (not recommended)

M2 node types:cache.m2.xlarge, cache.m2.2xlarge, cache.m2.4xlarge

Notes:

  • All T2 instances are created in an Amazon Virtual Private Cloud (Amazon VPC).

  • Redis (cluster mode disabled): Redis backup/restore is not supported on T1 and T2 instances.

  • Redis (cluster mode enabled): Backup/restore is not supported on T1 instances.

  • Redis Append-only files (AOF) functionality is not supported for T1 or T2 instances.

For a complete listing of node types and specifications, see:

Duration

Type: *int64

The duration of the reservation in seconds.

FixedPrice

Type: *float64

The fixed price charged for this reserved cache node.

OfferingType

Type: *string

The offering type of this reserved cache node.

ProductDescription

Type: *string

The description of the reserved cache node.

RecurringCharges

Contains the specific price and frequency of a recurring charges for a reserved cache node, or for a reserved cache node offering.

ReservationARN

Type: *string

The Amazon Resource Name (ARN) of the reserved cache node.

Example: arn:aws:elasticache:us-east-1:123456789012:reserved-instance:ri-2017-03-27-08-33-25-582

ReservedCacheNodeId

Type: *string

The unique identifier for the reservation.

ReservedCacheNodesOfferingId

Type: *string

The offering identifier.

StartTime

Type: *time.Time

The time the reservation started.

State

Type: *string

The state of the reserved cache node.

UsagePrice

Type: *float64

The hourly price charged for this reserved cache node.

Method

GoString

func (s ReservedCacheNode) GoString() string

GoString returns the string representation

SetCacheNodeCount

func (s *ReservedCacheNode) SetCacheNodeCount(v int64) *ReservedCacheNode

SetCacheNodeCount sets the CacheNodeCount field's value.

SetCacheNodeType

func (s *ReservedCacheNode) SetCacheNodeType(v string) *ReservedCacheNode

SetCacheNodeType sets the CacheNodeType field's value.

SetDuration

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

SetDuration sets the Duration field's value.

SetFixedPrice

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

SetFixedPrice sets the FixedPrice field's value.

SetOfferingType

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

SetOfferingType sets the OfferingType field's value.

SetProductDescription

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

SetProductDescription sets the ProductDescription field's value.

SetRecurringCharges

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

SetRecurringCharges sets the RecurringCharges field's value.

SetReservationARN

func (s *ReservedCacheNode) SetReservationARN(v string) *ReservedCacheNode

SetReservationARN sets the ReservationARN field's value.

SetReservedCacheNodeId

func (s *ReservedCacheNode) SetReservedCacheNodeId(v string) *ReservedCacheNode

SetReservedCacheNodeId sets the ReservedCacheNodeId field's value.

SetReservedCacheNodesOfferingId

func (s *ReservedCacheNode) SetReservedCacheNodesOfferingId(v string) *ReservedCacheNode

SetReservedCacheNodesOfferingId sets the ReservedCacheNodesOfferingId field's value.

SetStartTime

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

SetStartTime sets the StartTime field's value.

SetState

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

SetState sets the State field's value.

SetUsagePrice

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

SetUsagePrice sets the UsagePrice field's value.

String

func (s ReservedCacheNode) String() string

String returns the string representation

On this page: