更新异步端点
使用 UpdateEndpoint
API 更新异步端点。当您更新端点时,SageMaker 首先预置并切换到您指定的新端点配置,然后再删除之前的端点配置中预置的资源。在端点仍处于活动状态时,或者如果端点上正在执行 UpdateEndpoint
或 CreateEndpoint
操作时,请不要删除 EndpointConfig
。
# The name of the endpoint. The name must be unique within an Amazon Region in your Amazon account. endpoint_name=
'<endpoint-name>'
# The name of the endpoint configuration associated with this endpoint. endpoint_config_name='<endpoint-config-name>'
sagemaker_client.update_endpoint( EndpointConfigName=endpoint_config_name, EndpointName=endpoint_name )
当 Amazon SageMaker 收到请求时,它将端点的状态设置为正在更新。异步端点更新后,它会将状态设置为正在使用。要检查端点的状态,请使用 DescribeEndpoint
API。有关在更新端点时可以指定的参数的完整列表,请查看 UpdateEndpoint
API。