/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the sagemaker-2017-07-24.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SageMaker.Model
{
///
/// Container for the parameters to the UpdateEndpoint operation.
/// Deploys the new EndpointConfig
specified in the request, switches to
/// using newly created endpoint, and then deletes resources provisioned for the endpoint
/// using the previous EndpointConfig
(there is no availability loss).
///
///
///
/// 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.
///
///
///
public partial class UpdateEndpointRequest : AmazonSageMakerRequest
{
private DeploymentConfig _deploymentConfig;
private string _endpointConfigName;
private string _endpointName;
private List _excludeRetainedVariantProperties = new List();
private bool? _retainAllVariantProperties;
private bool? _retainDeploymentConfig;
///
/// Gets and sets the property DeploymentConfig.
///
/// The deployment configuration for an endpoint, which contains the desired deployment
/// strategy and rollback configurations.
///
///
public DeploymentConfig DeploymentConfig
{
get { return this._deploymentConfig; }
set { this._deploymentConfig = value; }
}
// Check to see if DeploymentConfig property is set
internal bool IsSetDeploymentConfig()
{
return this._deploymentConfig != null;
}
///
/// Gets and sets the property EndpointConfigName.
///
/// The name of the new endpoint configuration.
///
///
[AWSProperty(Required=true, Max=63)]
public string EndpointConfigName
{
get { return this._endpointConfigName; }
set { this._endpointConfigName = value; }
}
// Check to see if EndpointConfigName property is set
internal bool IsSetEndpointConfigName()
{
return this._endpointConfigName != null;
}
///
/// Gets and sets the property EndpointName.
///
/// The name of the endpoint whose configuration you want to update.
///
///
[AWSProperty(Required=true, Max=63)]
public string EndpointName
{
get { return this._endpointName; }
set { this._endpointName = value; }
}
// Check to see if EndpointName property is set
internal bool IsSetEndpointName()
{
return this._endpointName != null;
}
///
/// Gets and sets the property ExcludeRetainedVariantProperties.
///
/// When you are updating endpoint resources with RetainAllVariantProperties
,
/// whose value is set to true
, ExcludeRetainedVariantProperties
/// specifies the list of type VariantProperty
/// to override with the values provided by EndpointConfig
. If you don't
/// specify a value for ExcludeRetainedVariantProperties
, no variant properties
/// are overridden.
///
///
[AWSProperty(Min=0, Max=3)]
public List ExcludeRetainedVariantProperties
{
get { return this._excludeRetainedVariantProperties; }
set { this._excludeRetainedVariantProperties = value; }
}
// Check to see if ExcludeRetainedVariantProperties property is set
internal bool IsSetExcludeRetainedVariantProperties()
{
return this._excludeRetainedVariantProperties != null && this._excludeRetainedVariantProperties.Count > 0;
}
///
/// Gets and sets the property RetainAllVariantProperties.
///
/// When 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 RetainAllVariantProperties
/// to true
. To use the variant properties specified in a new EndpointConfig
/// call when updating an endpoint, set RetainAllVariantProperties
to false
.
/// The default is false
.
///
///
public bool RetainAllVariantProperties
{
get { return this._retainAllVariantProperties.GetValueOrDefault(); }
set { this._retainAllVariantProperties = value; }
}
// Check to see if RetainAllVariantProperties property is set
internal bool IsSetRetainAllVariantProperties()
{
return this._retainAllVariantProperties.HasValue;
}
///
/// Gets and sets the property RetainDeploymentConfig.
///
/// Specifies whether to reuse the last deployment configuration. The default value is
/// false (the configuration is not reused).
///
///
public bool RetainDeploymentConfig
{
get { return this._retainDeploymentConfig.GetValueOrDefault(); }
set { this._retainDeploymentConfig = value; }
}
// Check to see if RetainDeploymentConfig property is set
internal bool IsSetRetainDeploymentConfig()
{
return this._retainDeploymentConfig.HasValue;
}
}
}