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
32855 32856 32857 32858 32859 32860 32861 32862 32863 32864 32865 32866 32867 32868 32869 32870 32871 32872 32873 32874 32875 32876 32877 32878 32879 32880 32881 32882 32883 32884 32885 32886 32887 32888 32889 32890 32891 32892 32893 32894 32895 32896 32897 32898 32899 32900 32901 32902 32903 32904 32905 32906 | |