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
30142 30143 30144 30145 30146 30147 30148 30149 30150 30151 30152 30153 30154 30155 30156 30157 30158 30159 30160 30161 30162 30163 30164 30165 30166 30167 30168 30169 30170 30171 30172 30173 30174 30175 30176 30177 30178 30179 30180 30181 30182 30183 30184 30185 30186 30187 30188 30189 30190 30191 30192 30193 30194 | |