inference_schedulers
Creates, updates, deletes, gets or lists an inference_schedulers resource.
Overview
| Name | inference_schedulers |
| Type | Resource |
| Id | aws.lookoutequipment.inference_schedulers |
Fields
The following fields are returned by SELECT queries:
- describe_inference_scheduler
- list_inference_schedulers
| Name | Datatype | Description |
|---|---|---|
created_at | string (date-time) | Specifies the time at which the inference scheduler was created. |
data_delay_offset_in_minutes | integer (int64) | A period of time (in minutes) by which inference on the data is delayed after the data starts. For instance, if you select an offset delay time of five minutes, inference will not begin on the data until the first data measurement after the five minute mark. For example, if five minutes is selected, the inference scheduler will wake up at the configured frequency with the additional five minute delay time to check the customer S3 bucket. The customer can upload data at the same frequency and they don't need to stop and restart the scheduler when uploading new data. |
data_input_configuration | object | Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location. |
data_output_configuration | object | Specifies information for the output results for the inference scheduler, including the output S3 location. |
data_upload_frequency | string | Specifies how often data is uploaded to the source S3 bucket for the input data. This value is the length of time between data uploads. For instance, if you select 5 minutes, Amazon Lookout for Equipment will upload the real-time data to the source bucket once every 5 minutes. This frequency also determines how often Amazon Lookout for Equipment starts a scheduled inference on your data. In this example, it starts once every 5 minutes. (PT5M, PT10M, PT15M, PT30M, PT1H) |
inference_scheduler_arn | string | The Amazon Resource Name (ARN) of the inference scheduler being described. (pattern: <code>arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9-]*:[0-9]{12}:inference-scheduler/.+</code>) |
inference_scheduler_name | string | The name of the inference scheduler being described. (pattern: <code>^[0-9a-zA-Z_-]{1,200}$</code>) |
latest_inference_result | string | Indicates whether the latest execution for the inference scheduler was Anomalous (anomalous events found) or Normal (no anomalous events found). (ANOMALOUS, NORMAL) |
model_arn | string | The Amazon Resource Name (ARN) of the machine learning model of the inference scheduler being described. (pattern: <code>arn:aws(-[^:]+)?:lookoutequipment:[a-zA-Z0-9-]*:[0-9]{12}:model/.+</code>) |
model_name | string | The name of the machine learning model of the inference scheduler being described. (pattern: <code>^[0-9a-zA-Z_-]{1,200}$</code>) |
role_arn | string | The Amazon Resource Name (ARN) of a role with permission to access the data source for the inference scheduler being described. (pattern: <code>arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+</code>) |
server_side_kms_key_id | string | Provides the identifier of the KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment. (pattern: <code>arn:aws[a-z-]:kms:[a-z0-9-]:\d{12}:[\w-/]+</code>) |
status | string | Indicates the status of the inference scheduler. (PENDING, RUNNING, STOPPING, STOPPED) |
updated_at | string (date-time) | Specifies the time at which the inference scheduler was last updated, if it was. |
| Name | Datatype | Description |
|---|---|---|
inference_scheduler_summaries | array | Provides information about the specified inference scheduler, including data upload frequency, model name and ARN, and status. |
next_token | string | An opaque pagination token indicating where to continue the listing of inference schedulers. (pattern: <code>\p{ASCII}{0,8192}</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_inference_scheduler | select | region | Specifies information about the inference scheduler being used, including name, model, status, and associated metadata | |
list_inference_schedulers | select | region | Retrieves a list of all inference schedulers currently available for your account. | |
create_inference_scheduler | insert | region, ModelName, InferenceSchedulerName, DataUploadFrequency, DataInputConfiguration, DataOutputConfiguration, RoleArn, ClientToken | Creates a scheduled inference. Scheduling an inference is setting up a continuous real-time inference plan to analyze new measurement data. When setting up the schedule, you provide an S3 bucket location for the input data, assign it a delimiter between separate entries in the data, set an offset delay if desired, and set the frequency of inferencing. You must also provide an S3 bucket location for the output data. | |
update_inference_scheduler | update | region, InferenceSchedulerName | Updates an inference scheduler. | |
delete_inference_scheduler | delete | region | Deletes an inference scheduler that has been set up. Prior inference results will not be deleted. | |
start_inference_scheduler | exec | region, InferenceSchedulerName | Starts an inference scheduler. | |
stop_inference_scheduler | exec | region, InferenceSchedulerName | Stops an inference scheduler. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_inference_scheduler
- list_inference_schedulers
Specifies information about the inference scheduler being used, including name, model, status, and associated metadata
SELECT
created_at,
data_delay_offset_in_minutes,
data_input_configuration,
data_output_configuration,
data_upload_frequency,
inference_scheduler_arn,
inference_scheduler_name,
latest_inference_result,
model_arn,
model_name,
role_arn,
server_side_kms_key_id,
status,
updated_at
FROM aws.lookoutequipment.inference_schedulers
WHERE region = '{{ region }}' -- required
;
Retrieves a list of all inference schedulers currently available for your account.
SELECT
inference_scheduler_summaries,
next_token
FROM aws.lookoutequipment.inference_schedulers
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_inference_scheduler
- Manifest
Creates a scheduled inference. Scheduling an inference is setting up a continuous real-time inference plan to analyze new measurement data. When setting up the schedule, you provide an S3 bucket location for the input data, assign it a delimiter between separate entries in the data, set an offset delay if desired, and set the frequency of inferencing. You must also provide an S3 bucket location for the output data.
INSERT INTO aws.lookoutequipment.inference_schedulers (
ModelName,
InferenceSchedulerName,
DataDelayOffsetInMinutes,
DataUploadFrequency,
DataInputConfiguration,
DataOutputConfiguration,
RoleArn,
ServerSideKmsKeyId,
ClientToken,
Tags,
region
)
SELECT
'{{ ModelName }}' /* required */,
'{{ InferenceSchedulerName }}' /* required */,
{{ DataDelayOffsetInMinutes }},
'{{ DataUploadFrequency }}' /* required */,
'{{ DataInputConfiguration }}' /* required */,
'{{ DataOutputConfiguration }}' /* required */,
'{{ RoleArn }}' /* required */,
'{{ ServerSideKmsKeyId }}',
'{{ ClientToken }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
inference_scheduler_arn,
inference_scheduler_name,
model_quality,
status
;
# Description fields are for documentation purposes
- name: inference_schedulers
props:
- name: region
value: "{{ region }}"
description: Required parameter for the inference_schedulers resource.
- name: ModelName
value: "{{ ModelName }}"
description: |
The name of the previously trained machine learning model being used to create the inference scheduler.
- name: InferenceSchedulerName
value: "{{ InferenceSchedulerName }}"
description: |
The name of the inference scheduler being created.
- name: DataDelayOffsetInMinutes
value: {{ DataDelayOffsetInMinutes }}
description: |
The interval (in minutes) of planned delay at the start of each inference segment. For example, if inference is set to run every ten minutes, the delay is set to five minutes and the time is 09:08. The inference scheduler will wake up at the configured interval (which, without a delay configured, would be 09:10) plus the additional five minute delay time (so 09:15) to check your Amazon S3 bucket. The delay provides a buffer for you to upload data at the same frequency, so that you don't have to stop and restart the scheduler when uploading new data. For more information, see Understanding the inference process.
- name: DataUploadFrequency
value: "{{ DataUploadFrequency }}"
description: |
How often data is uploaded to the source Amazon S3 bucket for the input data. The value chosen is the length of time between data uploads. For instance, if you select 5 minutes, Amazon Lookout for Equipment will upload the real-time data to the source bucket once every 5 minutes. This frequency also determines how often Amazon Lookout for Equipment runs inference on your data. For more information, see Understanding the inference process.
valid_values: ['PT5M', 'PT10M', 'PT15M', 'PT30M', 'PT1H']
- name: DataInputConfiguration
description: |
Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.
value:
S3InputConfiguration:
Bucket: "{{ Bucket }}"
Prefix: "{{ Prefix }}"
InputTimeZoneOffset: "{{ InputTimeZoneOffset }}"
InferenceInputNameConfiguration:
TimestampFormat: "{{ TimestampFormat }}"
ComponentTimestampDelimiter: "{{ ComponentTimestampDelimiter }}"
- name: DataOutputConfiguration
description: |
Specifies configuration information for the output results for the inference scheduler, including the S3 location for the output.
value:
S3OutputConfiguration:
Bucket: "{{ Bucket }}"
Prefix: "{{ Prefix }}"
KmsKeyId: "{{ KmsKeyId }}"
- name: RoleArn
value: "{{ RoleArn }}"
description: |
The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference.
- name: ServerSideKmsKeyId
value: "{{ ServerSideKmsKeyId }}"
description: |
Provides the identifier of the KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment.
- name: ClientToken
value: "{{ ClientToken }}"
description: |
A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.
- name: Tags
description: |
Any tags associated with the inference scheduler.
value:
- Key: "{{ Key }}"
Value: "{{ Value }}"
UPDATE examples
- update_inference_scheduler
Updates an inference scheduler.
UPDATE aws.lookoutequipment.inference_schedulers
SET
InferenceSchedulerName = '{{ InferenceSchedulerName }}',
DataDelayOffsetInMinutes = {{ DataDelayOffsetInMinutes }},
DataUploadFrequency = '{{ DataUploadFrequency }}',
DataInputConfiguration = '{{ DataInputConfiguration }}',
DataOutputConfiguration = '{{ DataOutputConfiguration }}',
RoleArn = '{{ RoleArn }}'
WHERE
region = '{{ region }}' --required
AND InferenceSchedulerName = '{{ InferenceSchedulerName }}' --required;
DELETE examples
- delete_inference_scheduler
Deletes an inference scheduler that has been set up. Prior inference results will not be deleted.
DELETE FROM aws.lookoutequipment.inference_schedulers
WHERE region = '{{ region }}' --required
;
Lifecycle Methods
- start_inference_scheduler
- stop_inference_scheduler
Starts an inference scheduler.
EXEC aws.lookoutequipment.inference_schedulers.start_inference_scheduler
@region='{{ region }}' --required
@@json=
'{
"InferenceSchedulerName": "{{ InferenceSchedulerName }}"
}'
;
Stops an inference scheduler.
EXEC aws.lookoutequipment.inference_schedulers.stop_inference_scheduler
@region='{{ region }}' --required
@@json=
'{
"InferenceSchedulerName": "{{ InferenceSchedulerName }}"
}'
;