How to search for Amazon SageMaker Models using Tags?

1

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?

2 Respuestas
0

DescribeModel will provide information about model details, the tags in the model was created as a part of the CloudFormation deployment. It identify each resources by CF.

To search by tags, you could add custom tags for your purpose.

AWS
Jady
respondido hace 2 años
  • 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])

0

To use custom tag, you will need to search by GetResources from AWS Resource Groups: https://docs.aws.amazon.com/ARG/latest/userguide/find-resources-to-tag.html

AWS
Jady
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas