You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finds SageMaker resources that match a search query.
11351
+
11352
+
Parameters:
11353
+
resource: The name of the SageMaker resource to search for.
11354
+
search_expression: A Boolean conditional statement. Resources must satisfy this condition to be included in search results. You must provide at least one subexpression, filter, or nested filter. The maximum number of recursive SubExpressions, NestedFilters, and Filters that can be included in a SearchExpression object is 50.
11355
+
sort_by: The name of the resource property used to sort the SearchResults. The default is LastModifiedTime.
11356
+
sort_order: How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending.
11357
+
next_token: If more than MaxResults resources match the specified SearchExpression, the response includes a NextToken. The NextToken can be passed to the next SearchRequest to continue retrieving results.
11358
+
max_results: The maximum number of results to return.
11359
+
cross_account_filter_option: A cross account filter option. When the value is "CrossAccount" the search results will only include resources made discoverable to you from other accounts. When the value is "SameAccount" or null the search results will only include resources from your account. Default is null. For more information on searching for resources made discoverable to your account, see Search discoverable resources in the SageMaker Developer Guide. The maximum number of ResourceCatalogs viewable is 1000.
11360
+
visibility_conditions: Limits the results of your search request to the resources that you can access.
11361
+
session: Boto3 session.
11362
+
region: Region name.
11363
+
11364
+
Returns:
11365
+
shapes.SearchResponse
11366
+
11367
+
Raises:
11368
+
botocore.exceptions.ClientError: This exception is raised for AWS service related errors.
11369
+
The error message and error code can be parsed from the exception as follows:
Copy file name to clipboardExpand all lines: src/sagemaker_core/main/shapes.py
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14233,6 +14233,22 @@ class TotalHits(Base):
14233
14233
relation: Optional[str] = Unassigned()
14234
14234
14235
14235
14236
+
class SearchResponse(Base):
14237
+
"""
14238
+
SearchResponse
14239
+
14240
+
Attributes
14241
+
----------------------
14242
+
results: A list of SearchRecord objects.
14243
+
next_token: If the result of the previous Search request was truncated, the response includes a NextToken. To retrieve the next set of results, use the token in the next request.
0 commit comments