purchase_reserved_node_offering
async
¶
purchase_reserved_node_offering(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = None,
reserved_node_offering_id: Optional[String] = None,
node_count: Optional[IntegerOptional] = None,
) -> PurchaseReservedNodeOfferingResult
Allows you to purchase reserved nodes. Amazon Redshift offers a predefined set of reserved node offerings. You can purchase one or more of the offerings. You can call the DescribeReservedNodeOfferings API to obtain the available reserved node offerings. You can call this API by providing a specific reserved node offering and the number of nodes you want to reserve.
For more information about reserved node offerings, go to Purchasing Reserved Nodes in the Amazon Redshift Cluster Management Guide.
Parameters:
-
reserved_node_offering_id(Optional[String], default:None) –The unique identifier of the reserved node offering you want to purchase.
-
node_count(Optional[IntegerOptional], default:None) –The number of reserved nodes that you want to purchase.
Default:
1
Raises:
-
ReservedNodeAlreadyExistsFault–User already has a reservation with the given identifier.
-
ReservedNodeOfferingNotFoundFault–Specified offering does not exist.
-
ReservedNodeQuotaExceededFault–Request would exceed the user's compute node quota. For information about increasing your quota, go to Limits in Amazon Redshift in the Amazon Redshift Cluster Management Guide.
-
UnsupportedOperationFault–The requested operation isn't supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/async_redshift.py
10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 | |