Skip to main content

reserved_db_instances_offerings

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

Overview

Namereserved_db_instances_offerings
TypeResource
Idaws.rds.reserved_db_instances_offerings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
currency_codestringThe currency code for the reserved DB instance offering.
db_instance_classstringThe DB instance class for the reserved DB instance.
durationintegerThe duration of the offering in seconds.
fixed_pricenumberThe fixed price charged for this offering.
multi_azbooleanIndicates whether the offering applies to Multi-AZ deployments.
offering_typestringThe offering type.
product_descriptionstringThe database engine used by the offering.
recurring_chargesstringThe recurring price charged to run this reserved DB instance.
reserved_db_instances_offering_idstringThe offering identifier.
usage_pricenumberThe hourly price charged for this offering.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_reserved_db_instances_offeringsselectregionReservedDBInstancesOfferingId, DBInstanceClass, Duration, ProductDescription, OfferingType, MultiAZ, Filters, MaxRecords, MarkerLists available reserved DB instance offerings.
purchase_reserved_db_instances_offeringexecReservedDBInstancesOfferingId, regionReservedDBInstanceId, DBInstanceCount, TagsPurchases a reserved DB instance offering.

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
ReservedDBInstancesOfferingIdstringThe ID of the Reserved DB instance offering to purchase. Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
regionstringAWS region (default: us-east-1)
DBInstanceClassstringThe DB instance class filter value. Specify this parameter to show only the available offerings matching the specified DB instance class.
DBInstanceCountintegerThe number of instances to reserve. Default: 1
DurationstringDuration 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.
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"
ProductDescriptionstringProduct description filter value. Specify this parameter to show only the available offerings that contain the specified product description. The results show offerings that partially match the filter value.
ReservedDBInstanceIdstringCustomer-specified identifier to track this reservation. Example: myreservationID
ReservedDBInstancesOfferingIdstringThe offering identifier filter value. Specify this parameter to show only the available offering that matches the specified reservation identifier. Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
Tagsarray

SELECT examples

Lists available reserved DB instance offerings.

SELECT
currency_code,
db_instance_class,
duration,
fixed_price,
multi_az,
offering_type,
product_description,
recurring_charges,
reserved_db_instances_offering_id,
usage_price
FROM aws.rds.reserved_db_instances_offerings
WHERE region = '{{ region }}' -- required
AND ReservedDBInstancesOfferingId = '{{ ReservedDBInstancesOfferingId }}'
AND DBInstanceClass = '{{ DBInstanceClass }}'
AND Duration = '{{ Duration }}'
AND ProductDescription = '{{ ProductDescription }}'
AND OfferingType = '{{ OfferingType }}'
AND MultiAZ = '{{ MultiAZ }}'
AND Filters = '{{ Filters }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
;

Lifecycle Methods

Purchases a reserved DB instance offering.

EXEC aws.rds.reserved_db_instances_offerings.purchase_reserved_db_instances_offering
@ReservedDBInstancesOfferingId='{{ ReservedDBInstancesOfferingId }}' --required,
@region='{{ region }}' --required,
@ReservedDBInstanceId='{{ ReservedDBInstanceId }}',
@DBInstanceCount='{{ DBInstanceCount }}',
@Tags='{{ Tags }}'
;