Skip to main content

reserved_instance_offerings

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

Overview

Namereserved_instance_offerings
TypeResource
Idaws.opensearch.reserved_instance_offerings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringWhen nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Send the request again using the returned token to retrieve the next page.
reserved_instance_offeringsarrayList of Reserved Instance offerings.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_reserved_instance_offeringsselectregionofferingId, maxResults, nextTokenDescribes the available Amazon OpenSearch Service Reserved Instance offerings for a given Region. For more information, see Reserved Instances in Amazon OpenSearch Service.
purchase_reserved_instance_offeringexecregion, ReservedInstanceOfferingId, ReservationNameAllows you to purchase Amazon OpenSearch Service Reserved Instances.

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)
maxResultsintegerAn optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
nextTokenstringIf your initial DescribeReservedInstanceOfferings operation returns a nextToken, you can include the returned nextToken in subsequent DescribeReservedInstanceOfferings operations, which returns results in the next page.
offeringIdstringThe Reserved Instance identifier filter value. Use this parameter to show only the available instance types that match the specified reservation identifier.

SELECT examples

Describes the available Amazon OpenSearch Service Reserved Instance offerings for a given Region. For more information, see Reserved Instances in Amazon OpenSearch Service.

SELECT
next_token,
reserved_instance_offerings
FROM aws.opensearch.reserved_instance_offerings
WHERE region = '{{ region }}' -- required
AND offeringId = '{{ offeringId }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

Lifecycle Methods

Allows you to purchase Amazon OpenSearch Service Reserved Instances.

EXEC aws.opensearch.reserved_instance_offerings.purchase_reserved_instance_offering
@region='{{ region }}' --required
@@json=
'{
"ReservedInstanceOfferingId": "{{ ReservedInstanceOfferingId }}",
"ReservationName": "{{ ReservationName }}",
"InstanceCount": {{ InstanceCount }}
}'
;