import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { UpdateEndpointInput, UpdateEndpointOutput } from "../models/models_5"; import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateEndpointCommand}. */ export interface UpdateEndpointCommandInput extends UpdateEndpointInput { } /** * @public * * The output of {@link UpdateEndpointCommand}. */ export interface UpdateEndpointCommandOutput extends UpdateEndpointOutput, __MetadataBearer { } declare const UpdateEndpointCommand_base: { new (input: UpdateEndpointCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateEndpointCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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 DescribeEndpoint API.

You must not delete an EndpointConfig in use by an endpoint that is live or while the UpdateEndpoint or CreateEndpoint 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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SageMakerClient, UpdateEndpointCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import * // const { SageMakerClient, UpdateEndpointCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import * const client = new SageMakerClient(config); * const input = { // UpdateEndpointInput * EndpointName: "STRING_VALUE", // required * EndpointConfigName: "STRING_VALUE", // required * RetainAllVariantProperties: true || false, * ExcludeRetainedVariantProperties: [ // VariantPropertyList * { // VariantProperty * VariantPropertyType: "DesiredInstanceCount" || "DesiredWeight" || "DataCaptureConfig", // required * }, * ], * DeploymentConfig: { // DeploymentConfig * BlueGreenUpdatePolicy: { // BlueGreenUpdatePolicy * TrafficRoutingConfiguration: { // TrafficRoutingConfig * Type: "ALL_AT_ONCE" || "CANARY" || "LINEAR", // required * WaitIntervalInSeconds: Number("int"), // required * CanarySize: { // CapacitySize * Type: "INSTANCE_COUNT" || "CAPACITY_PERCENT", // required * Value: Number("int"), // required * }, * LinearStepSize: { * Type: "INSTANCE_COUNT" || "CAPACITY_PERCENT", // required * Value: Number("int"), // required * }, * }, * TerminationWaitInSeconds: Number("int"), * MaximumExecutionTimeoutInSeconds: Number("int"), * }, * RollingUpdatePolicy: { // RollingUpdatePolicy * MaximumBatchSize: { * Type: "INSTANCE_COUNT" || "CAPACITY_PERCENT", // required * Value: Number("int"), // required * }, * WaitIntervalInSeconds: Number("int"), // required * MaximumExecutionTimeoutInSeconds: Number("int"), * RollbackMaximumBatchSize: { * Type: "INSTANCE_COUNT" || "CAPACITY_PERCENT", // required * Value: Number("int"), // required * }, * }, * AutoRollbackConfiguration: { // AutoRollbackConfig * Alarms: [ // AlarmList * { // Alarm * AlarmName: "STRING_VALUE", * }, * ], * }, * }, * RetainDeploymentConfig: true || false, * }; * const command = new UpdateEndpointCommand(input); * const response = await client.send(command); * // { // UpdateEndpointOutput * // EndpointArn: "STRING_VALUE", // required * // }; * * ``` * * @param UpdateEndpointCommandInput - {@link UpdateEndpointCommandInput} * @returns {@link UpdateEndpointCommandOutput} * @see {@link UpdateEndpointCommandInput} for command's `input` shape. * @see {@link UpdateEndpointCommandOutput} for command's `response` shape. * @see {@link SageMakerClientResolvedConfig | config} for SageMakerClient's `config` shape. * * @throws {@link ResourceLimitExceeded} (client fault) *

You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.

* * @throws {@link SageMakerServiceException} *

Base exception class for all service exceptions from SageMaker service.

* * * @public */ export declare class UpdateEndpointCommand extends UpdateEndpointCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateEndpointInput; output: UpdateEndpointOutput; }; sdk: { input: UpdateEndpointCommandInput; output: UpdateEndpointCommandOutput; }; }; }