purchase_reserved_cache_nodes_offering
¶
purchase_reserved_cache_nodes_offering(
*,
config_overrides: Optional[ElastiCacheClientConfig] = 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.
>>> client.purchase_reserved_cache_nodes_offering(reserved_cache_nodes_offering_id='1ef01f5b-94ff-433f-a530-61a56bfc8e7a')
Source code in docs_src/capo_elasticache/_services/elasti_cache.py
6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 | |