Skip to main content

retraining_schedulers

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

Overview

Nameretraining_schedulers
TypeResource
Idaws.lookoutequipment.retraining_schedulers

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)Indicates the time and date at which the retraining scheduler was created.
lookback_windowstringThe number of past days of data used for retraining. (pattern: <code>^P180D$|^P360D$|^P540D$|^P720D$</code>)
model_arnstringThe ARN of the model that the retraining scheduler is attached to. (pattern: <code>arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9-]*:[0-9]{12}:model/.+</code>)
model_namestringThe name of the model that the retraining scheduler is attached to. (pattern: <code>^[0-9a-zA-Z_-]{1,200}$</code>)
promote_modestringIndicates how the service uses new models. In MANAGED mode, new models are used for inference if they have better performance than the current model. In MANUAL mode, the new models are not used until they are manually activated. (MANAGED, MANUAL)
retraining_frequencystringThe frequency at which the model retraining is set. This follows the ISO 8601 guidelines. (pattern: <code>^P(\dY)?(\d{1,2}M)?(\d{1,3}D)?$</code>)
retraining_start_datestring (date-time)The start date for the retraining scheduler. Lookout for Equipment truncates the time you provide to the nearest UTC day.
statusstringThe status of the retraining scheduler. (PENDING, RUNNING, STOPPING, STOPPED)
updated_atstring (date-time)Indicates the time and date at which the retraining scheduler was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_retraining_schedulerselectregionProvides a description of the retraining scheduler, including information such as the model name and retraining parameters.
list_retraining_schedulersselectregionLists all retraining schedulers in your account, filtering by model name prefix and status.
create_retraining_schedulerinsertregion, ModelName, RetrainingFrequency, LookbackWindow, ClientTokenCreates a retraining scheduler on the specified model.
update_retraining_schedulerupdateregion, ModelNameUpdates a retraining scheduler.
delete_retraining_schedulerdeleteregionDeletes a retraining scheduler from a model. The retraining scheduler must be in the STOPPED status.

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)

SELECT examples

Provides a description of the retraining scheduler, including information such as the model name and retraining parameters.

SELECT
created_at,
lookback_window,
model_arn,
model_name,
promote_mode,
retraining_frequency,
retraining_start_date,
status,
updated_at
FROM aws.lookoutequipment.retraining_schedulers
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a retraining scheduler on the specified model.

INSERT INTO aws.lookoutequipment.retraining_schedulers (
ModelName,
RetrainingStartDate,
RetrainingFrequency,
LookbackWindow,
PromoteMode,
ClientToken,
region
)
SELECT
'{{ ModelName }}' /* required */,
'{{ RetrainingStartDate }}',
'{{ RetrainingFrequency }}' /* required */,
'{{ LookbackWindow }}' /* required */,
'{{ PromoteMode }}',
'{{ ClientToken }}' /* required */,
'{{ region }}'
RETURNING
model_arn,
model_name,
status
;

UPDATE examples

Updates a retraining scheduler.

UPDATE aws.lookoutequipment.retraining_schedulers
SET
ModelName = '{{ ModelName }}',
RetrainingStartDate = '{{ RetrainingStartDate }}',
RetrainingFrequency = '{{ RetrainingFrequency }}',
LookbackWindow = '{{ LookbackWindow }}',
PromoteMode = '{{ PromoteMode }}'
WHERE
region = '{{ region }}' --required
AND ModelName = '{{ ModelName }}' --required;

DELETE examples

Deletes a retraining scheduler from a model. The retraining scheduler must be in the STOPPED status.

DELETE FROM aws.lookoutequipment.retraining_schedulers
WHERE region = '{{ region }}' --required
;