Skip to main content

reserved_db_instances

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

Overview

Namereserved_db_instances
TypeResource
Idaws.rds.reserved_db_instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
currency_codestringThe currency code for the reserved DB instance.
db_instance_classstringThe DB instance class for the reserved DB instance.
db_instance_countintegerThe number of reserved DB instances.
durationintegerThe duration of the reservation in seconds.
fixed_pricenumberThe fixed price charged for this reserved DB instance.
lease_idstringThe unique identifier for the lease associated with the reserved DB instance. Amazon Web Services Support might request the lease ID for an issue related to a reserved DB instance.
multi_azbooleanIndicates whether the reservation applies to Multi-AZ deployments.
offering_typestringThe offering type of this reserved DB instance.
product_descriptionstringThe description of the reserved DB instance.
recurring_chargesstringThe recurring price charged to run this reserved DB instance.
reserved_db_instance_arnstringThe Amazon Resource Name (ARN) for the reserved DB instance.
reserved_db_instance_idstringThe unique identifier for the reservation.
reserved_db_instances_offering_idstringThe offering identifier.
start_timestringThe time the reservation started.
statestringThe state of the reserved DB instance.
usage_pricenumberThe hourly price charged for this reserved DB instance.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_reserved_db_instancesselectregionReservedDBInstanceId, ReservedDBInstancesOfferingId, DBInstanceClass, Duration, ProductDescription, OfferingType, MultiAZ, LeaseId, Filters, MaxRecords, MarkerReturns information about reserved DB instances for this account, or about a specified reserved DB instance.

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)
DBInstanceClassstringThe DB instance class filter value. Specify this parameter to show only those reservations matching the specified DB instances class.
DurationstringThe duration filter value, specified in years or seconds. Specify this parameter to show only reservations for this duration. Valid Values: 1 | 3 | 31536000 | 94608000
FiltersarrayThis parameter isn't currently supported.
LeaseIdstringThe lease identifier filter value. Specify this parameter to show only the reservation that matches the specified lease ID. Amazon Web Services Support might request the lease ID for an issue related to a reserved DB instance.
MarkerstringAn optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
MaxRecordsintegerThe maximum number of records to include in the response. If more than the MaxRecords value is available, a pagination token called a marker is included in the response so you can retrieve the remaining results. Default: 100 Constraints: Minimum 20, maximum 100.
MultiAZbooleanSpecifies whether to show only those reservations that support Multi-AZ.
OfferingTypestringThe offering type filter value. Specify this parameter to show only the available offerings matching the specified offering type. Valid Values: "Partial Upfront" | "All Upfront" | "No Upfront"
ProductDescriptionstringThe product description filter value. Specify this parameter to show only those reservations matching the specified product description.
ReservedDBInstanceIdstringThe reserved DB instance identifier filter value. Specify this parameter to show only the reservation that matches the specified reservation ID.
ReservedDBInstancesOfferingIdstringThe offering identifier filter value. Specify this parameter to show only purchased reservations matching the specified offering identifier.

SELECT examples

Returns information about reserved DB instances for this account, or about a specified reserved DB instance.

SELECT
currency_code,
db_instance_class,
db_instance_count,
duration,
fixed_price,
lease_id,
multi_az,
offering_type,
product_description,
recurring_charges,
reserved_db_instance_arn,
reserved_db_instance_id,
reserved_db_instances_offering_id,
start_time,
state,
usage_price
FROM aws.rds.reserved_db_instances
WHERE region = '{{ region }}' -- required
AND ReservedDBInstanceId = '{{ ReservedDBInstanceId }}'
AND ReservedDBInstancesOfferingId = '{{ ReservedDBInstancesOfferingId }}'
AND DBInstanceClass = '{{ DBInstanceClass }}'
AND Duration = '{{ Duration }}'
AND ProductDescription = '{{ ProductDescription }}'
AND OfferingType = '{{ OfferingType }}'
AND MultiAZ = '{{ MultiAZ }}'
AND LeaseId = '{{ LeaseId }}'
AND Filters = '{{ Filters }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
;