Update Endpoint
| sagemaker_update_endpoint | R Documentation |
Deploys the EndpointConfig specified in the request to a new fleet of instances¶
Description¶
Deploys the EndpointConfig specified in the request to a new fleet of
instances. SageMaker shifts endpoint traffic to the new instances with
the updated endpoint configuration and then deletes the old instances
using the previous EndpointConfig (there is no availability loss). For
more information about how to control the update and traffic shifting
process, see Update models in
production.
When SageMaker receives the request, it 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
describe_endpoint API.
You must not delete an EndpointConfig in use by an endpoint that is
live or while the update_endpoint or create_endpoint operations are
being performed on the endpoint. To update an endpoint, you must create
a new EndpointConfig.
If you delete the EndpointConfig of an endpoint that is active or
being created or updated you may lose visibility into the instance type
the endpoint is using. The endpoint must be deleted in order to stop
incurring charges.
Usage¶
sagemaker_update_endpoint(EndpointName, EndpointConfigName,
RetainAllVariantProperties, ExcludeRetainedVariantProperties,
DeploymentConfig, RetainDeploymentConfig)
Arguments¶
EndpointName[required] The name of the endpoint whose configuration you want to update.
EndpointConfigName[required] The name of the new endpoint configuration.
RetainAllVariantPropertiesWhen updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. To retain the variant properties of an endpoint when updating it, set
RetainAllVariantPropertiestotrue. To use the variant properties specified in a newEndpointConfigcall when updating an endpoint, setRetainAllVariantPropertiestofalse. The default isfalse.ExcludeRetainedVariantPropertiesWhen you are updating endpoint resources with
RetainAllVariantProperties, whose value is set totrue,ExcludeRetainedVariantPropertiesspecifies the list of type VariantProperty to override with the values provided byEndpointConfig. If you don't specify a value forExcludeRetainedVariantProperties, no variant properties are overridden.DeploymentConfigThe deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
RetainDeploymentConfigSpecifies whether to reuse the last deployment configuration. The default value is false (the configuration is not reused).
Value¶
A list with the following syntax:
Request syntax¶
svc$update_endpoint(
EndpointName = "string",
EndpointConfigName = "string",
RetainAllVariantProperties = TRUE|FALSE,
ExcludeRetainedVariantProperties = list(
list(
VariantPropertyType = "DesiredInstanceCount"|"DesiredWeight"|"DataCaptureConfig"
)
),
DeploymentConfig = list(
BlueGreenUpdatePolicy = list(
TrafficRoutingConfiguration = list(
Type = "ALL_AT_ONCE"|"CANARY"|"LINEAR",
WaitIntervalInSeconds = 123,
CanarySize = list(
Type = "INSTANCE_COUNT"|"CAPACITY_PERCENT",
Value = 123
),
LinearStepSize = list(
Type = "INSTANCE_COUNT"|"CAPACITY_PERCENT",
Value = 123
)
),
TerminationWaitInSeconds = 123,
MaximumExecutionTimeoutInSeconds = 123
),
RollingUpdatePolicy = list(
MaximumBatchSize = list(
Type = "INSTANCE_COUNT"|"CAPACITY_PERCENT",
Value = 123
),
WaitIntervalInSeconds = 123,
MaximumExecutionTimeoutInSeconds = 123,
RollbackMaximumBatchSize = list(
Type = "INSTANCE_COUNT"|"CAPACITY_PERCENT",
Value = 123
)
),
AutoRollbackConfiguration = list(
Alarms = list(
list(
AlarmName = "string"
)
)
)
),
RetainDeploymentConfig = TRUE|FALSE
)