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
6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 | |