Skip to main content

reserved_nodes

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

Overview

Namereserved_nodes
TypeResource
Idaws.redshift.reserved_nodes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
currency_codestringThe currency code for the reserved cluster.
durationintegerThe duration of the node reservation in seconds.
fixed_pricenumberThe fixed cost Amazon Redshift charges you for this reserved node.
node_countintegerThe number of reserved compute nodes.
node_typestringThe node type of the reserved node.
offering_typestringThe anticipated utilization of the reserved node, as defined in the reserved node offering.
recurring_chargesstringThe recurring charges for the reserved node.
reserved_node_idstringThe unique identifier for the reservation.
reserved_node_offering_idstringThe identifier for the reserved node offering.
reserved_node_offering_typestring
start_timestringThe time the reservation started. You purchase a reserved node offering for a duration. This is the start time of that duration.
statestringThe state of the reserved compute node. Possible Values: pending-payment-This reserved node has recently been purchased, and the sale has been approved, but payment has not yet been confirmed. active-This reserved node is owned by the caller and is available for use. payment-failed-Payment failed for the purchase attempt. retired-The reserved node is no longer available. exchanging-The owner is exchanging the reserved node for another reserved node.
usage_pricenumberThe hourly rate Amazon Redshift charges you for this reserved node.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_reserved_nodesselectregionReservedNodeId, MaxRecords, MarkerReturns the descriptions of the reserved nodes.
accept_reserved_node_exchangeexecReservedNodeId, TargetReservedNodeOfferingId, regionExchanges a DC1 Reserved Node for a DC2 Reserved Node with no changes to the configuration (term, payment type, or number of nodes) and no additional costs.

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
ReservedNodeIdstringA string representing the node identifier of the DC1 Reserved Node to be exchanged.
TargetReservedNodeOfferingIdstringThe unique identifier of the DC2 Reserved Node offering to be used for the exchange. You can obtain the value for the parameter by calling GetReservedNodeExchangeOfferings
regionstringAWS region (default: us-east-1)
MarkerstringAn optional parameter that specifies the starting point to return a set of response records. When the results of a DescribeReservedNodes request exceed the value specified in MaxRecords, Amazon Web Services returns a value in the Marker field of the response. You can retrieve the next set of response records by providing the returned marker value in the Marker parameter and retrying the request.
MaxRecordsintegerThe maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value. Default: 100 Constraints: minimum 20, maximum 100.
ReservedNodeIdstringIdentifier for the node reservation.

SELECT examples

Returns the descriptions of the reserved nodes.

SELECT
currency_code,
duration,
fixed_price,
node_count,
node_type,
offering_type,
recurring_charges,
reserved_node_id,
reserved_node_offering_id,
reserved_node_offering_type,
start_time,
state,
usage_price
FROM aws.redshift.reserved_nodes
WHERE region = '{{ region }}' -- required
AND ReservedNodeId = '{{ ReservedNodeId }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
;

Lifecycle Methods

Exchanges a DC1 Reserved Node for a DC2 Reserved Node with no changes to the configuration (term, payment type, or number of nodes) and no additional costs.

EXEC aws.redshift.reserved_nodes.accept_reserved_node_exchange
@ReservedNodeId='{{ ReservedNodeId }}' --required,
@TargetReservedNodeOfferingId='{{ TargetReservedNodeOfferingId }}' --required,
@region='{{ region }}' --required
;