create_inference_recommendations_job
async
¶
create_inference_recommendations_job(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
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 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 | |