@@ -442,9 +442,9 @@ def delete_endpoint(self, delete_endpoint_config=True):
442
442
def delete_predictor (self , wait : bool = False ) -> None :
443
443
"""Delete the Amazon SageMaker inference component or endpoint backing this predictor.
444
444
445
- Delete the corresponding inference component if the endpoint is Generation2
445
+ Delete the corresponding inference component if the endpoint is a Generation2
446
446
endpoint.
447
- Otherwise delete the endpoint where this predictor is on .
447
+ Otherwise delete the endpoint where this predictor is hosted .
448
448
"""
449
449
450
450
if self .component_name :
@@ -462,13 +462,15 @@ def update_predictor(
462
462
container_startup_health_check_timeout : Optional [int ] = None ,
463
463
resources : Optional [ResourceRequirements ] = None ,
464
464
):
465
- """Updates the predictor to deploy a new Model specification and apply new configurations .
465
+ """Updates the predictor.
466
466
467
- This is done by updating the SageMaker InferenceComponent.
467
+ You can deploy a new Model specification or apply new configurations. The SDK
468
+ applies your updates by updating the inference component that's associated with
469
+ the model.
468
470
469
471
Args:
470
- model_name (Optional[str]): The model name to use to update
471
- for the predictor. (Default: None).
472
+ model_name (Optional[str]): The model name to use to update the
473
+ predictor. (Default: None).
472
474
image_uri (Optional[str]): A Docker image URI. (Default: None).
473
475
model_data (Optional[Union[str, dict]]): Location
474
476
of SageMaker model data. (Default: None).
@@ -488,8 +490,8 @@ def update_predictor(
488
490
"""
489
491
if self .component_name is None :
490
492
raise ValueError (
491
- "No existing Inference Component; "
492
- "Please ensure you deployed Inference Component first ."
493
+ "No inference component exists for the specified model. "
494
+ "Ensure that you deployed the inference component, and try again ."
493
495
)
494
496
# [TODO]: Move to a module
495
497
request = {
@@ -561,38 +563,38 @@ def list_related_models(
561
563
the predictor.
562
564
563
565
Args:
564
- variant_name_equals (str): Optional. A string that matches the variant
565
- name deployed those Inference Components . (Default: None).
566
- name_contains (str): Optional. A string that partially matches one or
567
- more Inference Components' names . Filters InferenceComponents by name.
566
+ variant_name_equals (str): Optional. A string that matches the name of the
567
+ variant that was assigned to the inference component . (Default: None).
568
+ name_contains (str): Optional. A string that partially matches the names of one or
569
+ more inference components . Filters inference components by name.
568
570
(Default: None).
569
571
creation_time_after (datetime.datetime): Optional. Use this parameter to
570
- search for InferenceComponents created after a specific date and time.
572
+ search for inference components created after a specific date and time.
571
573
(Default: None).
572
574
creation_time_before (datetime.datetime): Optional. Use this parameter to
573
- search for InferenceComponents created before a specific date and time.
575
+ search for inference components created before a specific date and time.
574
576
(Default: None).
575
577
last_modified_time_after (datetime.datetime): Optional. Use this parameter to
576
- search for InferenceComponents last modified after a specific date and time.
577
- (Default: None).
578
+ search for inference components that were last modified after a specific date
579
+ and time. (Default: None).
578
580
last_modified_time_before (datetime.datetime): Optional. Use this parameter to
579
- search for InferenceComponents last modified before a specific date and time.
580
- (Default: None).
581
- status_equals (str): Optional. The Inference Component status. Filters
582
- InferenceComponents by status. (Default: None).
583
- sort_order (str): Optional. The order in which InferenceComponents are listed.
581
+ search for inference components that were last modified before a specific date
582
+ and time. (Default: None).
583
+ status_equals (str): Optional. The inference component status. Filters
584
+ inference components by status. (Default: None).
585
+ sort_order (str): Optional. The order in which inference components are listed.
584
586
(Default: None).
585
- sort_by (str): Optional. The value on which the InferenceComponent list is
586
- sorted . (Default: None).
587
+ sort_order (str): Optional. The order in which inference components are listed in
588
+ the response . (Default: None).
587
589
max_results (int): Optional. The maximum number of results returned by
588
- ListInferenceComponents . (Default: None).
589
- next_token (str): Optional. A token to resume pagination of ListInferenceComponents
590
+ list_related_models . (Default: None).
591
+ next_token (str): Optional. A token to resume pagination of list_related_models
590
592
results. (Default: None).
591
593
592
594
Returns:
593
- Tuple[List[Dict[str, Any]], Optional[str]]: A list of Amazon SageMaker Inference
594
- Component objects associated to the Endpoint . If NextToken is returned,
595
- there are more results available. The value of nextToken is a unique
595
+ Tuple[List[Dict[str, Any]], Optional[str]]: A list of Amazon SageMaker inference
596
+ component objects associated with the endpoint . If a next token is returned,
597
+ there are more results available. The value of the next token is a unique
596
598
pagination token.
597
599
"""
598
600
0 commit comments