When I open the Model details in the Amazon SageMaker console, the details clearly show Tags that have been added to the model during it's creation.
| Tags |
| Key |
| sagemaker:project-name |
| aws:cloudformation:stack-name|
| sagemaker:deployment-stage|
| sagemaker:deployment-stage|
But the Search API provided by Amazon SageMaker, https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_Search.html
mentions only the following resources can be searched for using Tags:
Valid Values: TrainingJob | Experiment | ExperimentTrial | ExperimentTrialComponent | Endpoint | ModelPackage | ModelPackageGroup | Pipeline | PipelineExecution | FeatureGroup | Project | FeatureMetadata
I wish to obtain Model details, not the ModelPackageGroup/ModelPackage details, using Tags so if there is a way to do that, please share. Also if there is no way to obtain it using Tags, like the Search API Documentation suggests, what is the purpose of the Tags still present in the Model details?
Thank you for replying! Even if I add custom tags, the resource: 'Model' is not accepted by the search API. (An error occurred (ValidationException) when calling the Search operation: 1 validation error detected: Value 'Model' at 'resource' failed to satisfy constraint: Member must satisfy enum value set: [Pipeline, ModelPackageGroup, TrainingJob, ExperimentTrialComponent, FeatureMetadata, FeatureGroup, ProcessingJob, TransformJob, BulkFeatureMetadata, Endpoint, PipelineExecution, Project, ExperimentTrial, Image, ImageVersion, Experiment, ModelPackage])