Skip to main content

upgrade_histories

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

Overview​

Nameupgrade_histories
TypeResource
Idaws.opensearch.upgrade_histories

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.
upgrade_historiesarrayA list of objects corresponding to each upgrade or upgrade eligibility check performed on a domain.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_upgrade_historyselectdomain_name, regionmaxResults, nextTokenRetrieves the complete history of the last 10 upgrades performed on an Amazon OpenSearch Service domain.

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
domain_namestringThe name of an existing domain.
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 GetUpgradeHistory operation returns a nextToken, you can include the returned nextToken in subsequent GetUpgradeHistory operations, which returns results in the next page.

SELECT examples​

Retrieves the complete history of the last 10 upgrades performed on an Amazon OpenSearch Service domain.

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