amazonka-elasticache-2.0: Amazon ElastiCache SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

Description

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.

Synopsis

Creating a Request

data PurchaseReservedCacheNodesOffering Source #

Represents the input of a PurchaseReservedCacheNodesOffering operation.

See: newPurchaseReservedCacheNodesOffering smart constructor.

Constructors

PurchaseReservedCacheNodesOffering' 

Fields

  • cacheNodeCount :: Maybe Int

    The number of cache node instances to reserve.

    Default: 1

  • reservedCacheNodeId :: Maybe Text

    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

  • tags :: Maybe [Tag]

    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.

  • reservedCacheNodesOfferingId :: Text

    The ID of the reserved cache node offering to purchase.

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

Instances

Instances details
ToHeaders PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

ToPath PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

ToQuery PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

AWSRequest PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

Generic PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

Associated Types

type Rep PurchaseReservedCacheNodesOffering :: Type -> Type #

Read PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

Show PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

NFData PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

Eq PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

Hashable PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

type AWSResponse PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

type Rep PurchaseReservedCacheNodesOffering Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

type Rep PurchaseReservedCacheNodesOffering = D1 ('MetaData "PurchaseReservedCacheNodesOffering" "Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering" "amazonka-elasticache-2.0-DTWyHgx8JwY7IlNovngF22" 'False) (C1 ('MetaCons "PurchaseReservedCacheNodesOffering'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cacheNodeCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "reservedCacheNodeId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "reservedCacheNodesOfferingId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newPurchaseReservedCacheNodesOffering Source #

Create a value of PurchaseReservedCacheNodesOffering with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

PurchaseReservedCacheNodesOffering, purchaseReservedCacheNodesOffering_cacheNodeCount - The number of cache node instances to reserve.

Default: 1

PurchaseReservedCacheNodesOffering, purchaseReservedCacheNodesOffering_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

$sel:tags:PurchaseReservedCacheNodesOffering', purchaseReservedCacheNodesOffering_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.

PurchaseReservedCacheNodesOffering, purchaseReservedCacheNodesOffering_reservedCacheNodesOfferingId - The ID of the reserved cache node offering to purchase.

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

Request Lenses

purchaseReservedCacheNodesOffering_reservedCacheNodeId :: Lens' PurchaseReservedCacheNodesOffering (Maybe Text) Source #

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

purchaseReservedCacheNodesOffering_tags :: Lens' PurchaseReservedCacheNodesOffering (Maybe [Tag]) Source #

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.

purchaseReservedCacheNodesOffering_reservedCacheNodesOfferingId :: Lens' PurchaseReservedCacheNodesOffering Text Source #

The ID of the reserved cache node offering to purchase.

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

Destructuring the Response

data PurchaseReservedCacheNodesOfferingResponse Source #

Instances

Instances details
Generic PurchaseReservedCacheNodesOfferingResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

Read PurchaseReservedCacheNodesOfferingResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

Show PurchaseReservedCacheNodesOfferingResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

NFData PurchaseReservedCacheNodesOfferingResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

Eq PurchaseReservedCacheNodesOfferingResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

type Rep PurchaseReservedCacheNodesOfferingResponse Source # 
Instance details

Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering

type Rep PurchaseReservedCacheNodesOfferingResponse = D1 ('MetaData "PurchaseReservedCacheNodesOfferingResponse" "Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering" "amazonka-elasticache-2.0-DTWyHgx8JwY7IlNovngF22" 'False) (C1 ('MetaCons "PurchaseReservedCacheNodesOfferingResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "reservedCacheNode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ReservedCacheNode)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

Response Lenses