Struct aws_sdk_rds::types::ScalingConfigurationInfo
source · #[non_exhaustive]pub struct ScalingConfigurationInfo {
pub min_capacity: Option<i32>,
pub max_capacity: Option<i32>,
pub auto_pause: Option<bool>,
pub seconds_until_auto_pause: Option<i32>,
pub timeout_action: Option<String>,
pub seconds_before_timeout: Option<i32>,
}
Expand description
The scaling configuration for an Aurora DB cluster in serverless
DB engine mode.
For more information, see Using Amazon Aurora Serverless v1 in the Amazon Aurora User Guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.min_capacity: Option<i32>
The minimum capacity for an Aurora DB cluster in serverless
DB engine mode.
max_capacity: Option<i32>
The maximum capacity for an Aurora DB cluster in serverless
DB engine mode.
auto_pause: Option<bool>
Indicates whether automatic pause is allowed for the Aurora DB cluster in serverless
DB engine mode.
When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster automatically resumes.
seconds_until_auto_pause: Option<i32>
The remaining amount of time, in seconds, before the Aurora DB cluster in serverless
mode is paused. A DB cluster can be paused only when it's idle (it has no connections).
timeout_action: Option<String>
The action that occurs when Aurora times out while attempting to change the capacity of an Aurora Serverless v1 cluster. The value is either ForceApplyCapacityChange
or RollbackCapacityChange
.
ForceApplyCapacityChange
, the default, sets the capacity to the specified value as soon as possible.
RollbackCapacityChange
ignores the capacity change if a scaling point isn't found in the timeout period.
seconds_before_timeout: Option<i32>
The number of seconds before scaling times out. What happens when an attempted scaling action times out is determined by the TimeoutAction
setting.
Implementations§
source§impl ScalingConfigurationInfo
impl ScalingConfigurationInfo
sourcepub fn min_capacity(&self) -> Option<i32>
pub fn min_capacity(&self) -> Option<i32>
The minimum capacity for an Aurora DB cluster in serverless
DB engine mode.
sourcepub fn max_capacity(&self) -> Option<i32>
pub fn max_capacity(&self) -> Option<i32>
The maximum capacity for an Aurora DB cluster in serverless
DB engine mode.
sourcepub fn auto_pause(&self) -> Option<bool>
pub fn auto_pause(&self) -> Option<bool>
Indicates whether automatic pause is allowed for the Aurora DB cluster in serverless
DB engine mode.
When the value is set to false for an Aurora Serverless v1 DB cluster, the DB cluster automatically resumes.
sourcepub fn seconds_until_auto_pause(&self) -> Option<i32>
pub fn seconds_until_auto_pause(&self) -> Option<i32>
The remaining amount of time, in seconds, before the Aurora DB cluster in serverless
mode is paused. A DB cluster can be paused only when it's idle (it has no connections).
sourcepub fn timeout_action(&self) -> Option<&str>
pub fn timeout_action(&self) -> Option<&str>
The action that occurs when Aurora times out while attempting to change the capacity of an Aurora Serverless v1 cluster. The value is either ForceApplyCapacityChange
or RollbackCapacityChange
.
ForceApplyCapacityChange
, the default, sets the capacity to the specified value as soon as possible.
RollbackCapacityChange
ignores the capacity change if a scaling point isn't found in the timeout period.
sourcepub fn seconds_before_timeout(&self) -> Option<i32>
pub fn seconds_before_timeout(&self) -> Option<i32>
The number of seconds before scaling times out. What happens when an attempted scaling action times out is determined by the TimeoutAction
setting.
source§impl ScalingConfigurationInfo
impl ScalingConfigurationInfo
sourcepub fn builder() -> ScalingConfigurationInfoBuilder
pub fn builder() -> ScalingConfigurationInfoBuilder
Creates a new builder-style object to manufacture ScalingConfigurationInfo
.
Trait Implementations§
source§impl Clone for ScalingConfigurationInfo
impl Clone for ScalingConfigurationInfo
source§fn clone(&self) -> ScalingConfigurationInfo
fn clone(&self) -> ScalingConfigurationInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ScalingConfigurationInfo
impl Debug for ScalingConfigurationInfo
source§impl PartialEq for ScalingConfigurationInfo
impl PartialEq for ScalingConfigurationInfo
source§fn eq(&self, other: &ScalingConfigurationInfo) -> bool
fn eq(&self, other: &ScalingConfigurationInfo) -> bool
self
and other
values to be equal, and is used
by ==
.