/* * 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 { /// /// Defines the traffic routing strategy during an endpoint deployment to shift traffic /// from the old fleet to the new fleet. /// public partial class TrafficRoutingConfig { private CapacitySize _canarySize; private CapacitySize _linearStepSize; private TrafficRoutingConfigType _type; private int? _waitIntervalInSeconds; /// /// Gets and sets the property CanarySize. /// /// Batch size for the first step to turn on traffic on the new endpoint fleet. Value /// must be less than or equal to 50% of the variant's total instance count. /// /// public CapacitySize CanarySize { get { return this._canarySize; } set { this._canarySize = value; } } // Check to see if CanarySize property is set internal bool IsSetCanarySize() { return this._canarySize != null; } /// /// Gets and sets the property LinearStepSize. /// /// Batch size for each step to turn on traffic on the new endpoint fleet. Value /// must be 10-50% of the variant's total instance count. /// /// public CapacitySize LinearStepSize { get { return this._linearStepSize; } set { this._linearStepSize = value; } } // Check to see if LinearStepSize property is set internal bool IsSetLinearStepSize() { return this._linearStepSize != null; } /// /// Gets and sets the property Type. /// /// Traffic routing strategy type. /// /// /// [AWSProperty(Required=true)] public TrafficRoutingConfigType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property WaitIntervalInSeconds. /// /// The waiting time (in seconds) between incremental steps to turn on traffic on the /// new endpoint fleet. /// /// [AWSProperty(Required=true, Min=0, Max=3600)] public int WaitIntervalInSeconds { get { return this._waitIntervalInSeconds.GetValueOrDefault(); } set { this._waitIntervalInSeconds = value; } } // Check to see if WaitIntervalInSeconds property is set internal bool IsSetWaitIntervalInSeconds() { return this._waitIntervalInSeconds.HasValue; } } }