list_inference_components
¶
list_inference_components(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
sort_by: Optional[InferenceComponentSortKey] = None,
sort_order: Optional[OrderKey] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[MaxResults] = None,
name_contains: Optional[InferenceComponentNameContains] = None,
creation_time_before: Optional[Timestamp] = None,
creation_time_after: Optional[Timestamp] = None,
last_modified_time_before: Optional[Timestamp] = None,
last_modified_time_after: Optional[Timestamp] = None,
status_equals: Optional[InferenceComponentStatus] = None,
endpoint_name_equals: Optional[EndpointName] = None,
variant_name_equals: Optional[VariantName] = None,
) -> ListInferenceComponentsOutput
Lists the inference components in your account and their properties.
Parameters:
-
sort_by(Optional[InferenceComponentSortKey], default:None) –The field by which to sort the inference components in the response. The default is
CreationTime. -
sort_order(Optional[OrderKey], default:None) –The sort order for results. The default is
Descending. -
next_token(Optional[PaginationToken], default:None) –A token that you use to get the next set of results following a truncated response. If the response to the previous request was truncated, that response provides the value for this token.
-
max_results(Optional[MaxResults], default:None) –The maximum number of inference components to return in the response. This value defaults to 10.
-
name_contains(Optional[InferenceComponentNameContains], default:None) –Filters the results to only those inference components with a name that contains the specified string.
-
creation_time_before(Optional[Timestamp], default:None) –Filters the results to only those inference components that were created before the specified time.
-
creation_time_after(Optional[Timestamp], default:None) –Filters the results to only those inference components that were created after the specified time.
-
last_modified_time_before(Optional[Timestamp], default:None) –Filters the results to only those inference components that were updated before the specified time.
-
last_modified_time_after(Optional[Timestamp], default:None) –Filters the results to only those inference components that were updated after the specified time.
-
status_equals(Optional[InferenceComponentStatus], default:None) –Filters the results to only those inference components with the specified status.
-
endpoint_name_equals(Optional[EndpointName], default:None) –An endpoint name to filter the listed inference components. The response includes only those inference components that are hosted at the specified endpoint.
-
variant_name_equals(Optional[VariantName], default:None) –A production variant name to filter the listed inference components. The response includes only those inference components that are hosted at the specified variant.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 | |