create_inference_recommendations_job
¶
create_inference_recommendations_job(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
job_name: Optional[RecommendationJobName] = None,
job_type: Optional[RecommendationJobType] = None,
role_arn: Optional[RoleArn] = None,
input_config: Optional[RecommendationJobInputConfig] = None,
job_description: Optional[RecommendationJobDescription] = None,
stopping_conditions: Optional[RecommendationJobStoppingConditions] = None,
output_config: Optional[RecommendationJobOutputConfig] = None,
tags: Optional[TagList] = None,
) -> CreateInferenceRecommendationsJobResponse
Starts a recommendation job. You can create either an instance recommendation or load test job.
Parameters:
-
job_name(Optional[RecommendationJobName], default:None) –A name for the recommendation job. The name must be unique within the Amazon Web Services Region and within your Amazon Web Services account. The job name is passed down to the resources created by the recommendation job. The names of resources (such as the model, endpoint configuration, endpoint, and compilation) that are prefixed with the job name are truncated at 40 characters.
-
job_type(Optional[RecommendationJobType], default:None) –Defines the type of recommendation job. Specify
Defaultto initiate an instance recommendation andAdvancedto initiate a load test. If left unspecified, Amazon SageMaker Inference Recommender will run an instance recommendation (DEFAULT) job. -
role_arn(Optional[RoleArn], default:None) –The Amazon Resource Name (ARN) of an IAM role that enables Amazon SageMaker to perform tasks on your behalf.
-
input_config(Optional[RecommendationJobInputConfig], default:None) –Provides information about the versioned model package Amazon Resource Name (ARN), the traffic pattern, and endpoint configurations.
-
job_description(Optional[RecommendationJobDescription], default:None) –Description of the recommendation job.
-
stopping_conditions(Optional[RecommendationJobStoppingConditions], default:None) –A set of conditions for stopping a recommendation job. If any of the conditions are met, the job is automatically stopped.
-
output_config(Optional[RecommendationJobOutputConfig], default:None) –Provides information about the output artifacts and the KMS key to use for Amazon S3 server-side encryption.
-
tags(Optional[TagList], default:None) –The metadata that you apply to Amazon Web Services resources to help you categorize and organize them. Each tag consists of a key and a value, both of which you define. For more information, see Tagging Amazon Web Services Resources in the Amazon Web Services General Reference.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 | |