purchase_reserved_cache_nodes_offering
async
¶
purchase_reserved_cache_nodes_offering(
*,
config_overrides: Optional[AsyncElastiCacheClientConfig] = None,
reserved_cache_nodes_offering_id: Optional[String] = None,
reserved_cache_node_id: Optional[String] = None,
cache_node_count: Optional[IntegerOptional] = None,
tags: Optional[TagList] = None,
) -> PurchaseReservedCacheNodesOfferingResult
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.
Parameters:
-
reserved_cache_nodes_offering_id(Optional[String], default:None) –The ID of the reserved cache node offering to purchase.
Example:
438012d3-4052-4cc7-b2e3-8d3372e0e706 -
reserved_cache_node_id(Optional[String], default:None) –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
-
cache_node_count(Optional[IntegerOptional], default:None) –The number of cache node instances to reserve.
Default:
1 -
tags(Optional[TagList], default:None) –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.
Raises:
-
InvalidParameterCombinationException–Two or more incompatible parameters were specified.
-
InvalidParameterValueException–The value for a parameter is invalid.
-
ReservedCacheNodeAlreadyExistsFault–You already have a reservation with the given identifier.
-
ReservedCacheNodeQuotaExceededFault–The request cannot be processed because it would exceed the user's cache node quota.
-
ReservedCacheNodesOfferingNotFoundFault–The requested cache node offering does not exist.
-
TagQuotaPerResourceExceeded–The request cannot be processed because it would cause the resource to have more than the allowed number of tags. The maximum number of tags permitted on a resource is 50.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
PurchaseReservedCacheNodesOfferings Allows you to purchase a reserved cache node offering.
>>> await client.purchase_reserved_cache_nodes_offering(reserved_cache_nodes_offering_id='1ef01f5b-94ff-433f-a530-61a56bfc8e7a')
Source code in docs_src/capo_elasticache/_services/async_elasti_cache.py
6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 | |