update_endpoint_weights_and_capacities
¶
update_endpoint_weights_and_capacities(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
endpoint_name: Optional[EndpointName] = None,
desired_weights_and_capacities: Optional[DesiredWeightAndCapacityList] = None,
) -> UpdateEndpointWeightsAndCapacitiesOutput
Updates variant weight of one or more variants associated with an existing endpoint, or capacity of one variant associated with an existing endpoint. When it receives the request, SageMaker sets the endpoint status to Updating. After updating the endpoint, it sets the status to InService. To check the status of an endpoint, use the DescribeEndpoint API.
Parameters:
-
endpoint_name(Optional[EndpointName], default:None) –The name of an existing SageMaker endpoint.
-
desired_weights_and_capacities(Optional[DesiredWeightAndCapacityList], default:None) –An object that provides new capacity and weight values for a variant.
Raises:
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
29755 29756 29757 29758 29759 29760 29761 29762 29763 29764 29765 29766 29767 29768 29769 29770 29771 29772 29773 29774 29775 29776 29777 29778 29779 29780 29781 29782 29783 29784 29785 29786 29787 29788 29789 29790 29791 29792 29793 29794 29795 29796 29797 29798 29799 29800 29801 29802 29803 29804 29805 29806 | |