AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the PurchaseReservedCacheNodesOffering operation. Allows you to purchase a reserved cache node offering. Reserved nodes are not eligible for cancellation and are non-refundable. For more information, see Managing Costs with Reserved Nodes for Redis or Managing Costs with Reserved Nodes for Memcached.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ElastiCache.AmazonElastiCacheRequest
      Amazon.ElastiCache.Model.PurchaseReservedCacheNodesOfferingRequest

Namespace: Amazon.ElastiCache.Model
Assembly: AWSSDK.ElastiCache.dll
Version: 3.x.y.z

Syntax

C#
public class PurchaseReservedCacheNodesOfferingRequest : AmazonElastiCacheRequest
         IAmazonWebServiceRequest

The PurchaseReservedCacheNodesOfferingRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property CacheNodeCount System.Int32

Gets and sets the property CacheNodeCount.

The number of cache node instances to reserve.

Default: 1

Public Property ReservedCacheNodeId System.String

Gets and sets the property ReservedCacheNodeId.

A customer-specified identifier to track this reservation.

The Reserved Cache Node ID is an unique customer-specified identifier to track this reservation. If this parameter is not specified, ElastiCache automatically generates an identifier for the reservation.

Example: myreservationID

Public Property ReservedCacheNodesOfferingId System.String

Gets and sets the property ReservedCacheNodesOfferingId.

The ID of the reserved cache node offering to purchase.

Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706

Public Property Tags System.Collections.Generic.List<Amazon.ElastiCache.Model.Tag>

Gets and sets the property Tags.

A list of tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value, although null is accepted.

Examples

Allows you to purchase a reserved cache node offering.

PurchaseReservedCacheNodesOfferings


var client = new AmazonElastiCacheClient();
var response = client.PurchaseReservedCacheNodesOffering(new PurchaseReservedCacheNodesOfferingRequest 
{
    ReservedCacheNodesOfferingId = "1ef01f5b-94ff-433f-a530-61a56bfc8e7a"
});


            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5