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
5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 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 | |