Skip to main content

reservations

Creates, updates, deletes, gets or lists a reservations resource.

Overview

Namereservations
TypeResource
Idaws.redshift_serverless.reservations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
capacityintegerThe number of Redshift Processing Units (RPUs) to reserve.
end_datestring (date-time)The end date for the serverless reservation. This date is one year after the start date that you specify.
offeringobjectThe type of offering for the reservation. The offering class determines the payment schedule for the reservation.
reservation_arnstringThe Amazon Resource Name (ARN) that uniquely identifies the serverless reservation.
reservation_idstringThe identifier that uniquely identifies the serverless reservation.
start_datestring (date-time)The start date for the serverless reservation. This is the date you created the reservation.
statusstringThe status of the reservation. Possible values include the following: payment-pending active payment-failed retired

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_reservationselectregionGets an Amazon Redshift Serverless reservation. A reservation 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.
list_reservationsselectregionReturns a list of Reservation objects.
create_reservationinsertregion, capacity, offeringIdCreates 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

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Gets an Amazon Redshift Serverless reservation. A reservation 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.

SELECT
capacity,
end_date,
offering,
reservation_arn,
reservation_id,
start_date,
status
FROM aws.redshift_serverless.reservations
WHERE region = '{{ region }}' -- required
;

INSERT examples

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.

INSERT INTO aws.redshift_serverless.reservations (
capacity,
clientToken,
offeringId,
region
)
SELECT
{{ capacity }} /* required */,
'{{ clientToken }}',
'{{ offeringId }}' /* required */,
'{{ region }}'
RETURNING
reservation
;