更新异步端点 - Amazon SageMaker
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

更新异步端点

使用 UpdateEndpoint API 更新异步端点。当您更新端点时,SageMaker 首先预置并切换到您指定的新端点配置,然后再删除之前的端点配置中预置的资源。在端点仍处于活动状态时,或者如果端点上正在执行 UpdateEndpointCreateEndpoint 操作时,请不要删除 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。