Skip to main content

inference_schedulers

Creates, updates, deletes or gets an inference_scheduler resource or lists inference_schedulers in a region

Overview

Nameinference_schedulers
TypeResource
DescriptionResource schema for LookoutEquipment InferenceScheduler.
Idawscc.lookoutequipment.inference_schedulers

Fields

NameDatatypeDescription
data_delay_offset_in_minutesintegerA period of time (in minutes) by which inference on the data is delayed after the data starts.
data_input_configurationobjectSpecifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.
data_output_configurationobjectSpecifies configuration information for the output results for the inference scheduler, including the S3 location for the output.
data_upload_frequencystringHow often data is uploaded to the source S3 bucket for the input data.
inference_scheduler_namestringThe name of the inference scheduler being created.
model_namestringThe name of the previously trained ML model being used to create the inference scheduler.
role_arnstringThe Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference.
server_side_kms_key_idstringProvides the identifier of the AWS KMS customer master key (CMK) used to encrypt inference scheduler data by Amazon Lookout for Equipment.
tagsarrayAny tags associated with the inference scheduler.
inference_scheduler_arnstringThe Amazon Resource Name (ARN) of the inference scheduler being created.
regionstringAWS region.

For more information, see AWS::LookoutEquipment::InferenceScheduler.

Methods

NameResourceAccessible byRequired Params
create_resourceinference_schedulersINSERTDataInputConfiguration, DataOutputConfiguration, DataUploadFrequency, ModelName, RoleArn, region
delete_resourceinference_schedulersDELETEIdentifier, region
update_resourceinference_schedulersUPDATEIdentifier, PatchDocument, region
list_resourcesinference_schedulers_list_onlySELECTregion
get_resourceinference_schedulersSELECTIdentifier, region

SELECT examples

Gets all properties from an individual inference_scheduler.

SELECT
region,
data_delay_offset_in_minutes,
data_input_configuration,
data_output_configuration,
data_upload_frequency,
inference_scheduler_name,
model_name,
role_arn,
server_side_kms_key_id,
tags,
inference_scheduler_arn
FROM awscc.lookoutequipment.inference_schedulers
WHERE
region = '{{ region }}' AND
Identifier = '{{ inference_scheduler_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new inference_scheduler resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.lookoutequipment.inference_schedulers (
DataInputConfiguration,
DataOutputConfiguration,
DataUploadFrequency,
ModelName,
RoleArn,
region
)
SELECT
'{{ data_input_configuration }}',
'{{ data_output_configuration }}',
'{{ data_upload_frequency }}',
'{{ model_name }}',
'{{ role_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a inference_scheduler resource, using stack-deploy.

/*+ update */
UPDATE awscc.lookoutequipment.inference_schedulers
SET PatchDocument = string('{{ {
"DataDelayOffsetInMinutes": data_delay_offset_in_minutes,
"DataInputConfiguration": data_input_configuration,
"DataOutputConfiguration": data_output_configuration,
"DataUploadFrequency": data_upload_frequency,
"RoleArn": role_arn,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ inference_scheduler_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.lookoutequipment.inference_schedulers
WHERE
Identifier = '{{ inference_scheduler_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the inference_schedulers resource, the following permissions are required:

iam:PassRole,
lookoutequipment:CreateInferenceScheduler,
lookoutequipment:DescribeInferenceScheduler