@@ -442,9 +442,9 @@ def delete_endpoint(self, delete_endpoint_config=True):
442442 def delete_predictor (self , wait : bool = False ) -> None :
443443 """Delete the Amazon SageMaker inference component or endpoint backing this predictor.
444444
445- Delete the corresponding inference component if the endpoint is Generation2
445+ Delete the corresponding inference component if the endpoint is a Generation2
446446 endpoint.
447- Otherwise delete the endpoint where this predictor is on .
447+ Otherwise delete the endpoint where this predictor is hosted .
448448 """
449449
450450 if self .component_name :
@@ -462,13 +462,15 @@ def update_predictor(
462462 container_startup_health_check_timeout : Optional [int ] = None ,
463463 resources : Optional [ResourceRequirements ] = None ,
464464 ):
465- """Updates the predictor to deploy a new Model specification and apply new configurations .
465+ """Updates the predictor.
466466
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.
468470
469471 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).
472474 image_uri (Optional[str]): A Docker image URI. (Default: None).
473475 model_data (Optional[Union[str, dict]]): Location
474476 of SageMaker model data. (Default: None).
@@ -488,8 +490,8 @@ def update_predictor(
488490 """
489491 if self .component_name is None :
490492 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 ."
493495 )
494496 # [TODO]: Move to a module
495497 request = {
@@ -561,38 +563,38 @@ def list_related_models(
561563 the predictor.
562564
563565 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.
568570 (Default: None).
569571 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.
571573 (Default: None).
572574 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.
574576 (Default: None).
575577 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).
578580 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.
584586 (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).
587589 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
590592 results. (Default: None).
591593
592594 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
596598 pagination token.
597599 """
598600
0 commit comments