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
10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 | |