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
5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 | |