@@ -5313,6 +5313,7 @@ def _create_inference_recommendations_job_request(
5313
5313
framework : str ,
5314
5314
sample_payload_url : str ,
5315
5315
supported_content_types : List [str ],
5316
+ tags : Dict [str , str ],
5316
5317
model_name : str = None ,
5317
5318
model_package_version_arn : str = None ,
5318
5319
job_duration_in_seconds : int = None ,
@@ -5348,6 +5349,8 @@ def _create_inference_recommendations_job_request(
5348
5349
benchmarked by Amazon SageMaker Inference Recommender that matches your model.
5349
5350
supported_instance_types (List[str]): A list of the instance types that are used
5350
5351
to generate inferences in real-time.
5352
+ tags (Dict[str, str]): Tags used to identify where the Inference Recommendatons Call
5353
+ was made from.
5351
5354
endpoint_configurations (List[Dict[str, any]]): Specifies the endpoint configurations
5352
5355
to use for a job. Will be used for `Advanced` jobs.
5353
5356
traffic_pattern (Dict[str, any]): Specifies the traffic pattern for the job.
@@ -5386,6 +5389,7 @@ def _create_inference_recommendations_job_request(
5386
5389
"InputConfig" : {
5387
5390
"ContainerConfig" : containerConfig ,
5388
5391
},
5392
+ "Tags" : tags ,
5389
5393
}
5390
5394
5391
5395
request .get ("InputConfig" ).update (
@@ -5477,6 +5481,8 @@ def create_inference_recommendations_job(
5477
5481
job_name = "SMPYTHONSDK-" + str (unique_tail )
5478
5482
job_description = "#python-sdk-create"
5479
5483
5484
+ tags = [{"Key" : "ClientType" , "Value" : "PythonSDK-RightSize" }]
5485
+
5480
5486
create_inference_recommendations_job_request = (
5481
5487
self ._create_inference_recommendations_job_request (
5482
5488
role = role ,
@@ -5496,6 +5502,7 @@ def create_inference_recommendations_job(
5496
5502
traffic_pattern = traffic_pattern ,
5497
5503
stopping_conditions = stopping_conditions ,
5498
5504
resource_limit = resource_limit ,
5505
+ tags = tags ,
5499
5506
)
5500
5507
)
5501
5508
0 commit comments