Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data PurchaseReservedCacheNodesOffering = PurchaseReservedCacheNodesOffering' {}
- newPurchaseReservedCacheNodesOffering :: Text -> PurchaseReservedCacheNodesOffering
- purchaseReservedCacheNodesOffering_cacheNodeCount :: Lens' PurchaseReservedCacheNodesOffering (Maybe Int)
- purchaseReservedCacheNodesOffering_reservedCacheNodeId :: Lens' PurchaseReservedCacheNodesOffering (Maybe Text)
- purchaseReservedCacheNodesOffering_tags :: Lens' PurchaseReservedCacheNodesOffering (Maybe [Tag])
- purchaseReservedCacheNodesOffering_reservedCacheNodesOfferingId :: Lens' PurchaseReservedCacheNodesOffering Text
- data PurchaseReservedCacheNodesOfferingResponse = PurchaseReservedCacheNodesOfferingResponse' {}
- newPurchaseReservedCacheNodesOfferingResponse :: Int -> PurchaseReservedCacheNodesOfferingResponse
- purchaseReservedCacheNodesOfferingResponse_reservedCacheNode :: Lens' PurchaseReservedCacheNodesOfferingResponse (Maybe ReservedCacheNode)
- purchaseReservedCacheNodesOfferingResponse_httpStatus :: Lens' PurchaseReservedCacheNodesOfferingResponse Int
Creating a Request
data PurchaseReservedCacheNodesOffering Source #
Represents the input of a PurchaseReservedCacheNodesOffering
operation.
See: newPurchaseReservedCacheNodesOffering
smart constructor.
PurchaseReservedCacheNodesOffering' | |
|
Instances
newPurchaseReservedCacheNodesOffering Source #
:: Text |
|
-> PurchaseReservedCacheNodesOffering |
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:
$sel:cacheNodeCount:PurchaseReservedCacheNodesOffering'
, purchaseReservedCacheNodesOffering_cacheNodeCount
- The number of cache node instances to reserve.
Default: 1
$sel:reservedCacheNodeId: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.
$sel:reservedCacheNodesOfferingId:PurchaseReservedCacheNodesOffering'
, purchaseReservedCacheNodesOffering_reservedCacheNodesOfferingId
- The ID of the reserved cache node offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
Request Lenses
purchaseReservedCacheNodesOffering_cacheNodeCount :: Lens' PurchaseReservedCacheNodesOffering (Maybe Int) Source #
The number of cache node instances to reserve.
Default: 1
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 #
See: newPurchaseReservedCacheNodesOfferingResponse
smart constructor.
PurchaseReservedCacheNodesOfferingResponse' | |
|
Instances
Eq PurchaseReservedCacheNodesOfferingResponse Source # | |
Read PurchaseReservedCacheNodesOfferingResponse Source # | |
Show PurchaseReservedCacheNodesOfferingResponse Source # | |
Generic PurchaseReservedCacheNodesOfferingResponse Source # | |
NFData PurchaseReservedCacheNodesOfferingResponse Source # | |
type Rep PurchaseReservedCacheNodesOfferingResponse Source # | |
Defined in Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering type Rep PurchaseReservedCacheNodesOfferingResponse = D1 ('MetaData "PurchaseReservedCacheNodesOfferingResponse" "Amazonka.ElastiCache.PurchaseReservedCacheNodesOffering" "libZSservicesZSamazonka-elasticacheZSamazonka-elasticache" '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))) |
newPurchaseReservedCacheNodesOfferingResponse Source #
Create a value of PurchaseReservedCacheNodesOfferingResponse
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:
$sel:reservedCacheNode:PurchaseReservedCacheNodesOfferingResponse'
, purchaseReservedCacheNodesOfferingResponse_reservedCacheNode
- Undocumented member.
$sel:httpStatus:PurchaseReservedCacheNodesOfferingResponse'
, purchaseReservedCacheNodesOfferingResponse_httpStatus
- The response's http status code.
Response Lenses
purchaseReservedCacheNodesOfferingResponse_reservedCacheNode :: Lens' PurchaseReservedCacheNodesOfferingResponse (Maybe ReservedCacheNode) Source #
Undocumented member.
purchaseReservedCacheNodesOfferingResponse_httpStatus :: Lens' PurchaseReservedCacheNodesOfferingResponse Int Source #
The response's http status code.