Skip to main content

scheduled_actions

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

Overview

Namescheduled_actions
TypeResource
Idaws.opensearch.scheduled_actions

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.
scheduled_actionsarrayA list of actions that are scheduled for the domain.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_scheduled_actionsselectdomain_name, regionmaxResults, nextTokenRetrieves a list of configuration changes that are scheduled for a domain. These changes can be service software updates or blue/green Auto-Tune enhancements.
update_scheduled_actionupdatedomain_name, region, ActionID, ActionType, ScheduleAtReschedules a planned domain configuration change for a later time. This change can be a scheduled service software update or a blue/green Auto-Tune enhancement.

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 the domain to reschedule an action for.
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 ListScheduledActions operation returns a nextToken, you can include the returned nextToken in subsequent ListScheduledActions operations, which returns results in the next page.

SELECT examples

Retrieves a list of configuration changes that are scheduled for a domain. These changes can be service software updates or blue/green Auto-Tune enhancements.

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

UPDATE examples

Reschedules a planned domain configuration change for a later time. This change can be a scheduled service software update or a blue/green Auto-Tune enhancement.

UPDATE aws.opensearch.scheduled_actions
SET
ActionID = '{{ ActionID }}',
ActionType = '{{ ActionType }}',
ScheduleAt = '{{ ScheduleAt }}',
DesiredStartTime = {{ DesiredStartTime }}
WHERE
domain_name = '{{ domain_name }}' --required
AND region = '{{ region }}' --required
AND ActionID = '{{ ActionID }}' --required
AND ActionType = '{{ ActionType }}' --required
AND ScheduleAt = '{{ ScheduleAt }}' --required
RETURNING
scheduled_action;