本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
更新异步终端节点
使用更新异步终端节点UpdateEndpointAPI。当您更新终端节点时,SageMaker 首先预配置并切换到您指定的新端点配置,然后再删除之前的终端节点配置中预配的资源。请勿删除EndpointConfig使用处于活动状态或在UpdateEndpoint要么CreateEndpoint正在终端上执行操作。
# 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 收到请求时,它将终端节点的状态设置为。正在更新. 更新异步终端节点后,它将状态设置为InService. 要检查终端节点的状态,请使用DescribeEndpointAPI。有关更新终端节点时可指定的完整参数列表,请参阅UpdateEndpointAPI。