update_endpoint_weights_and_capacities
async
¶
update_endpoint_weights_and_capacities(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
33281 33282 33283 33284 33285 33286 33287 33288 33289 33290 33291 33292 33293 33294 33295 33296 33297 33298 33299 33300 33301 33302 33303 33304 33305 33306 33307 33308 33309 33310 33311 33312 33313 33314 33315 33316 33317 33318 33319 33320 33321 33322 33323 33324 33325 33326 33327 33328 33329 33330 33331 33332 33333 | |