/* * 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 { /// /// The deployment configuration for an endpoint, which contains the desired deployment /// strategy and rollback configurations. /// public partial class DeploymentConfig { private AutoRollbackConfig _autoRollbackConfiguration; private BlueGreenUpdatePolicy _blueGreenUpdatePolicy; private RollingUpdatePolicy _rollingUpdatePolicy; /// /// Gets and sets the property AutoRollbackConfiguration. /// /// Automatic rollback configuration for handling endpoint deployment failures and recovery. /// /// public AutoRollbackConfig AutoRollbackConfiguration { get { return this._autoRollbackConfiguration; } set { this._autoRollbackConfiguration = value; } } // Check to see if AutoRollbackConfiguration property is set internal bool IsSetAutoRollbackConfiguration() { return this._autoRollbackConfiguration != null; } /// /// Gets and sets the property BlueGreenUpdatePolicy. /// /// Update policy for a blue/green deployment. If this update policy is specified, SageMaker /// creates a new fleet during the deployment while maintaining the old fleet. SageMaker /// flips traffic to the new fleet according to the specified traffic routing configuration. /// Only one update policy should be used in the deployment configuration. If no update /// policy is specified, SageMaker uses a blue/green deployment strategy with all at once /// traffic shifting by default. /// /// public BlueGreenUpdatePolicy BlueGreenUpdatePolicy { get { return this._blueGreenUpdatePolicy; } set { this._blueGreenUpdatePolicy = value; } } // Check to see if BlueGreenUpdatePolicy property is set internal bool IsSetBlueGreenUpdatePolicy() { return this._blueGreenUpdatePolicy != null; } /// /// Gets and sets the property RollingUpdatePolicy. /// /// Specifies a rolling deployment strategy for updating a SageMaker endpoint. /// /// public RollingUpdatePolicy RollingUpdatePolicy { get { return this._rollingUpdatePolicy; } set { this._rollingUpdatePolicy = value; } } // Check to see if RollingUpdatePolicy property is set internal bool IsSetRollingUpdatePolicy() { return this._rollingUpdatePolicy != null; } } }