create_inference_scheduler

LookoutEquipment.Client.create_inference_scheduler(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.create_inference_scheduler(
    ModelName='string',
    InferenceSchedulerName='string',
    DataDelayOffsetInMinutes=123,
    DataUploadFrequency='PT5M'|'PT10M'|'PT15M'|'PT30M'|'PT1H',
    DataInputConfiguration={
        'S3InputConfiguration': {
            'Bucket': 'string',
            'Prefix': 'string'
        },
        'InputTimeZoneOffset': 'string',
        'InferenceInputNameConfiguration': {
            'TimestampFormat': 'string',
            'ComponentTimestampDelimiter': 'string'
        }
    },
    DataOutputConfiguration={
        'S3OutputConfiguration': {
            'Bucket': 'string',
            'Prefix': 'string'
        },
        'KmsKeyId': 'string'
    },
    RoleArn='string',
    ServerSideKmsKeyId='string',
    ClientToken='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • ModelName (string) --

    [REQUIRED]

    The name of the previously trained ML model being used to create the inference scheduler.

  • InferenceSchedulerName (string) --

    [REQUIRED]

    The name of the inference scheduler being created.

  • DataDelayOffsetInMinutes (integer) --

    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.

  • DataUploadFrequency (string) --

    [REQUIRED]

    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.

  • DataInputConfiguration (dict) --

    [REQUIRED]

    Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.

    • S3InputConfiguration (dict) --

      Specifies configuration information for the input data for the inference, including Amazon S3 location of input data.

      • Bucket (string) -- [REQUIRED]

        The bucket containing the input dataset for the inference.

      • Prefix (string) --

        The prefix for the S3 bucket used for the input data for the inference.

    • InputTimeZoneOffset (string) --

      Indicates the difference between your time zone and Coordinated Universal Time (UTC).

    • InferenceInputNameConfiguration (dict) --

      Specifies configuration information for the input data for the inference, including timestamp format and delimiter.

      • TimestampFormat (string) --

        The format of the timestamp, whether Epoch time, or standard, with or without hyphens (-).

      • ComponentTimestampDelimiter (string) --

        Indicates the delimiter character used between items in the data.

  • DataOutputConfiguration (dict) --

    [REQUIRED]

    Specifies configuration information for the output results for the inference scheduler, including the S3 location for the output.

    • S3OutputConfiguration (dict) -- [REQUIRED]

      Specifies configuration information for the output results from for the inference, output S3 location.

      • Bucket (string) -- [REQUIRED]

        The bucket containing the output results from the inference

      • Prefix (string) --

        The prefix for the S3 bucket used for the output results from the inference.

    • KmsKeyId (string) --

      The ID number for the AWS KMS key used to encrypt the inference output.

  • RoleArn (string) --

    [REQUIRED]

    The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference.

  • ServerSideKmsKeyId (string) -- Provides the identifier of the KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment.
  • ClientToken (string) --

    [REQUIRED]

    A unique identifier for the request. If you do not set the client request token, Amazon Lookout for Equipment generates one.

    This field is autopopulated if not provided.

  • Tags (list) --

    Any tags associated with the inference scheduler.

    • (dict) --

      A tag is a key-value pair that can be added to a resource as metadata.

      • Key (string) -- [REQUIRED]

        The key for the specified tag.

      • Value (string) -- [REQUIRED]

        The value for the specified tag.

Return type

dict

Returns

Response Syntax

{
    'InferenceSchedulerArn': 'string',
    'InferenceSchedulerName': 'string',
    'Status': 'PENDING'|'RUNNING'|'STOPPING'|'STOPPED'
}

Response Structure

  • (dict) --

    • InferenceSchedulerArn (string) --

      The Amazon Resource Name (ARN) of the inference scheduler being created.

    • InferenceSchedulerName (string) --

      The name of inference scheduler being created.

    • Status (string) --

      Indicates the status of the CreateInferenceScheduler operation.

Exceptions

  • LookoutEquipment.Client.exceptions.ConflictException
  • LookoutEquipment.Client.exceptions.ResourceNotFoundException
  • LookoutEquipment.Client.exceptions.ValidationException
  • LookoutEquipment.Client.exceptions.ServiceQuotaExceededException
  • LookoutEquipment.Client.exceptions.ThrottlingException
  • LookoutEquipment.Client.exceptions.AccessDeniedException
  • LookoutEquipment.Client.exceptions.InternalServerException