/* * 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 eks-2017-11-01.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.EKS.Model { /// /// An object representing the scaling configuration details for the Auto Scaling group /// that is associated with your node group. When creating a node group, you must specify /// all or none of the properties. When updating a node group, you can specify any or /// none of the properties. /// public partial class NodegroupScalingConfig { private int? _desiredSize; private int? _maxSize; private int? _minSize; /// /// Gets and sets the property DesiredSize. /// /// The current number of nodes that the managed node group should maintain. /// /// /// /// If you use Cluster Autoscaler, you shouldn't change the desiredSize value directly, /// as this can cause the Cluster Autoscaler to suddenly scale up or scale down. /// /// /// /// Whenever this parameter changes, the number of worker nodes in the node group is updated /// to the specified size. If this parameter is given a value that is smaller than the /// current number of running worker nodes, the necessary number of worker nodes are terminated /// to match the given value. When using CloudFormation, no action occurs if you remove /// this parameter from your CFN template. /// /// /// /// This parameter can be different from minSize in some cases, such as when starting /// with extra hosts for testing. This parameter can also be different when you want to /// start with an estimated number of needed hosts, but let Cluster Autoscaler reduce /// the number if there are too many. When Cluster Autoscaler is used, the desiredSize /// parameter is altered by Cluster Autoscaler (but can be out-of-date for short periods /// of time). Cluster Autoscaler doesn't scale a managed node group lower than minSize /// or higher than maxSize. /// /// [AWSProperty(Min=0)] public int DesiredSize { get { return this._desiredSize.GetValueOrDefault(); } set { this._desiredSize = value; } } // Check to see if DesiredSize property is set internal bool IsSetDesiredSize() { return this._desiredSize.HasValue; } /// /// Gets and sets the property MaxSize. /// /// The maximum number of nodes that the managed node group can scale out to. For information /// about the maximum number that you can specify, see Amazon /// EKS service quotas in the Amazon EKS User Guide. /// /// [AWSProperty(Min=1)] public int MaxSize { get { return this._maxSize.GetValueOrDefault(); } set { this._maxSize = value; } } // Check to see if MaxSize property is set internal bool IsSetMaxSize() { return this._maxSize.HasValue; } /// /// Gets and sets the property MinSize. /// /// The minimum number of nodes that the managed node group can scale in to. /// /// [AWSProperty(Min=0)] public int MinSize { get { return this._minSize.GetValueOrDefault(); } set { this._minSize = value; } } // Check to see if MinSize property is set internal bool IsSetMinSize() { return this._minSize.HasValue; } } }