Skip to main content

inference_recommendations_jobs

Creates, updates, deletes, gets or lists an inference_recommendations_jobs resource.

Overview

Nameinference_recommendations_jobs
TypeResource
Idaws.sagemaker.inference_recommendations_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
completion_timestring (date-time)A timestamp that shows when the job completed.
creation_timestring (date-time)A timestamp that shows when the job was created.
endpoint_performancesarrayThe performance results from running an Inference Recommender job on an existing endpoint.
failure_reasonstringIf the job fails, provides information why the job failed.
inference_recommendationsarrayThe recommendations made by Inference Recommender.
input_configobjectReturns information about the versioned model package Amazon Resource Name (ARN), the traffic pattern, and endpoint configurations you provided when you initiated the job.
job_arnstringThe Amazon Resource Name (ARN) of the job. (pattern: <code>arn:aws[a-z-]:sagemaker:[a-z0-9-]:[0-9]{12}:inference-recommendations-job/.*</code>)
job_descriptionstringThe job description that you provided when you initiated the job.
job_namestringThe name of the job. The name must be unique within an Amazon Web Services Region in the Amazon Web Services account. (pattern: <code>[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}</code>)
job_typestringThe job type that you provided when you initiated the job. (Default, Advanced)
last_modified_timestring (date-time)A timestamp that shows when the job was last modified.
role_arnstringThe Amazon Resource Name (ARN) of the Amazon Web Services Identity and Access Management (IAM) role you provided when you initiated the job. (pattern: <code>arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+</code>)
statusstringThe status of the job. (PENDING, IN_PROGRESS, COMPLETED, FAILED, STOPPING, STOPPED, DELETING, DELETED)
stopping_conditionsobjectThe stopping conditions that you provided when you initiated the job.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_inference_recommendations_jobselectregionProvides the results of the Inference Recommender job. One or more recommendation jobs are returned.
list_inference_recommendations_jobsselectregionLists recommendation jobs that satisfy various filters.
create_inference_recommendations_jobinsertregion, JobName, JobType, RoleArn, InputConfigStarts a recommendation job. You can create either an instance recommendation or load test job.

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 the results of the Inference Recommender job. One or more recommendation jobs are returned.

SELECT
completion_time,
creation_time,
endpoint_performances,
failure_reason,
inference_recommendations,
input_config,
job_arn,
job_description,
job_name,
job_type,
last_modified_time,
role_arn,
status,
stopping_conditions
FROM aws.sagemaker.inference_recommendations_jobs
WHERE region = '{{ region }}' -- required
;

INSERT examples

Starts a recommendation job. You can create either an instance recommendation or load test job.

INSERT INTO aws.sagemaker.inference_recommendations_jobs (
JobName,
JobType,
RoleArn,
InputConfig,
JobDescription,
StoppingConditions,
OutputConfig,
Tags,
region
)
SELECT
'{{ JobName }}' /* required */,
'{{ JobType }}' /* required */,
'{{ RoleArn }}' /* required */,
'{{ InputConfig }}' /* required */,
'{{ JobDescription }}',
'{{ StoppingConditions }}',
'{{ OutputConfig }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
job_arn
;