/* * 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 rds-2014-10-31.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.RDS.Model { /// /// Contains the scaling configuration of an Aurora Serverless v1 DB cluster. /// /// /// /// For more information, see Using /// Amazon Aurora Serverless v1 in the Amazon Aurora User Guide. /// /// public partial class ScalingConfiguration { private bool? _autoPause; private int? _maxCapacity; private int? _minCapacity; private int? _secondsBeforeTimeout; private int? _secondsUntilAutoPause; private string _timeoutAction; /// /// Gets and sets the property AutoPause. /// /// A value that indicates whether to allow or disallow automatic pause for an Aurora /// DB cluster in serverless DB engine mode. A DB cluster can be paused only /// when it's idle (it has no connections). /// /// /// /// If a DB cluster is paused for more than seven days, the DB cluster might be backed /// up with a snapshot. In this case, the DB cluster is restored when there is a request /// to connect to it. /// /// /// public bool AutoPause { get { return this._autoPause.GetValueOrDefault(); } set { this._autoPause = value; } } // Check to see if AutoPause property is set internal bool IsSetAutoPause() { return this._autoPause.HasValue; } /// /// Gets and sets the property MaxCapacity. /// /// The maximum capacity for an Aurora DB cluster in serverless DB engine /// mode. /// /// /// /// For Aurora MySQL, valid capacity values are 1, 2, 4, /// 8, 16, 32, 64, 128, /// and 256. /// /// /// /// For Aurora PostgreSQL, valid capacity values are 2, 4, 8, /// 16, 32, 64, 192, and 384. /// /// /// /// The maximum capacity must be greater than or equal to the minimum capacity. /// /// public int MaxCapacity { get { return this._maxCapacity.GetValueOrDefault(); } set { this._maxCapacity = value; } } // Check to see if MaxCapacity property is set internal bool IsSetMaxCapacity() { return this._maxCapacity.HasValue; } /// /// Gets and sets the property MinCapacity. /// /// The minimum capacity for an Aurora DB cluster in serverless DB engine /// mode. /// /// /// /// For Aurora MySQL, valid capacity values are 1, 2, 4, /// 8, 16, 32, 64, 128, /// and 256. /// /// /// /// For Aurora PostgreSQL, valid capacity values are 2, 4, 8, /// 16, 32, 64, 192, and 384. /// /// /// /// The minimum capacity must be less than or equal to the maximum capacity. /// /// public int MinCapacity { get { return this._minCapacity.GetValueOrDefault(); } set { this._minCapacity = value; } } // Check to see if MinCapacity property is set internal bool IsSetMinCapacity() { return this._minCapacity.HasValue; } /// /// Gets and sets the property SecondsBeforeTimeout. /// /// The amount of time, in seconds, that Aurora Serverless v1 tries to find a scaling /// point to perform seamless scaling before enforcing the timeout action. The default /// is 300. /// /// /// /// Specify a value between 60 and 600 seconds. /// /// public int SecondsBeforeTimeout { get { return this._secondsBeforeTimeout.GetValueOrDefault(); } set { this._secondsBeforeTimeout = value; } } // Check to see if SecondsBeforeTimeout property is set internal bool IsSetSecondsBeforeTimeout() { return this._secondsBeforeTimeout.HasValue; } /// /// Gets and sets the property SecondsUntilAutoPause. /// /// The time, in seconds, before an Aurora DB cluster in serverless mode /// is paused. /// /// /// /// Specify a value between 300 and 86,400 seconds. /// /// public int SecondsUntilAutoPause { get { return this._secondsUntilAutoPause.GetValueOrDefault(); } set { this._secondsUntilAutoPause = value; } } // Check to see if SecondsUntilAutoPause property is set internal bool IsSetSecondsUntilAutoPause() { return this._secondsUntilAutoPause.HasValue; } /// /// Gets and sets the property TimeoutAction. /// /// The action to take when the timeout is reached, either ForceApplyCapacityChange /// or RollbackCapacityChange. /// /// /// /// ForceApplyCapacityChange sets the capacity to the specified value as /// soon as possible. /// /// /// /// RollbackCapacityChange, the default, ignores the capacity change if /// a scaling point isn't found in the timeout period. /// /// /// /// If you specify ForceApplyCapacityChange, connections that prevent Aurora /// Serverless v1 from finding a scaling point might be dropped. /// /// /// /// For more information, see /// Autoscaling for Aurora Serverless v1 in the Amazon Aurora User Guide. /// /// public string TimeoutAction { get { return this._timeoutAction; } set { this._timeoutAction = value; } } // Check to see if TimeoutAction property is set internal bool IsSetTimeoutAction() { return this._timeoutAction != null; } } }