create_reservation
¶
create_reservation(
capacity: Capacity,
offering_id: OfferingId,
*,
config_overrides: Optional[RedshiftServerlessClientConfig] = None,
client_token: Optional[str] = None,
) -> CreateReservationResponse
Creates an Amazon Redshift Serverless reservation, which gives you the option to commit to a specified number of Redshift Processing Units (RPUs) for a year at a discount from Serverless on-demand (OD) rates.
Parameters:
-
capacity(Capacity) –The number of Redshift Processing Units (RPUs) to reserve.
-
offering_id(OfferingId) –The ID of the offering associated with the reservation. The offering determines the payment schedule for the reservation.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. This token must be a valid UUIDv4 value. For more information about idempotency, see Making retries safe with idempotent APIs .
Raises:
-
ConflictException–The submitted action has conflicts.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource could not be found.
-
ServiceQuotaExceededException–The service limit was exceeded.
-
ThrottlingException–The request was denied due to request throttling.
-
TooManyTagsException–The request exceeded the number of tags allowed for a resource.
-
ValidationException–The input failed to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.