#[non_exhaustive]pub struct ScalingConfigurationInfoBuilder { /* private fields */ }Expand description
A builder for ScalingConfigurationInfo.
Implementations§
source§impl ScalingConfigurationInfoBuilder
impl ScalingConfigurationInfoBuilder
sourcepub fn min_capacity(self, input: i32) -> Self
pub fn min_capacity(self, input: i32) -> Self
The minimum capacity for an Aurora DB cluster in serverless DB engine mode.
sourcepub fn set_min_capacity(self, input: Option<i32>) -> Self
pub fn set_min_capacity(self, input: Option<i32>) -> Self
The minimum capacity for an Aurora DB cluster in serverless DB engine mode.
sourcepub fn get_min_capacity(&self) -> &Option<i32>
pub fn get_min_capacity(&self) -> &Option<i32>
The minimum capacity for an Aurora DB cluster in serverless DB engine mode.
sourcepub fn max_capacity(self, input: i32) -> Self
pub fn max_capacity(self, input: i32) -> Self
The maximum capacity for an Aurora DB cluster in serverless DB engine mode.
sourcepub fn set_max_capacity(self, input: Option<i32>) -> Self
pub fn set_max_capacity(self, input: Option<i32>) -> Self
The maximum capacity for an Aurora DB cluster in serverless DB engine mode.
sourcepub fn get_max_capacity(&self) -> &Option<i32>
pub fn get_max_capacity(&self) -> &Option<i32>
The maximum capacity for an Aurora DB cluster in serverless DB engine mode.
sourcepub fn auto_pause(self, input: bool) -> Self
pub fn auto_pause(self, input: bool) -> Self
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 set_auto_pause(self, input: Option<bool>) -> Self
pub fn set_auto_pause(self, input: Option<bool>) -> Self
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 get_auto_pause(&self) -> &Option<bool>
pub fn get_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, input: i32) -> Self
pub fn seconds_until_auto_pause(self, input: i32) -> Self
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 set_seconds_until_auto_pause(self, input: Option<i32>) -> Self
pub fn set_seconds_until_auto_pause(self, input: Option<i32>) -> Self
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 get_seconds_until_auto_pause(&self) -> &Option<i32>
pub fn get_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, input: impl Into<String>) -> Self
pub fn timeout_action(self, input: impl Into<String>) -> Self
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 set_timeout_action(self, input: Option<String>) -> Self
pub fn set_timeout_action(self, input: Option<String>) -> Self
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 get_timeout_action(&self) -> &Option<String>
pub fn get_timeout_action(&self) -> &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.
sourcepub fn seconds_before_timeout(self, input: i32) -> Self
pub fn seconds_before_timeout(self, input: i32) -> Self
The number of seconds before scaling times out. What happens when an attempted scaling action times out is determined by the TimeoutAction setting.
sourcepub fn set_seconds_before_timeout(self, input: Option<i32>) -> Self
pub fn set_seconds_before_timeout(self, input: Option<i32>) -> Self
The number of seconds before scaling times out. What happens when an attempted scaling action times out is determined by the TimeoutAction setting.
sourcepub fn get_seconds_before_timeout(&self) -> &Option<i32>
pub fn get_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.
sourcepub fn build(self) -> ScalingConfigurationInfo
pub fn build(self) -> ScalingConfigurationInfo
Consumes the builder and constructs a ScalingConfigurationInfo.
Trait Implementations§
source§impl Clone for ScalingConfigurationInfoBuilder
impl Clone for ScalingConfigurationInfoBuilder
source§fn clone(&self) -> ScalingConfigurationInfoBuilder
fn clone(&self) -> ScalingConfigurationInfoBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ScalingConfigurationInfoBuilder
impl Default for ScalingConfigurationInfoBuilder
source§fn default() -> ScalingConfigurationInfoBuilder
fn default() -> ScalingConfigurationInfoBuilder
source§impl PartialEq for ScalingConfigurationInfoBuilder
impl PartialEq for ScalingConfigurationInfoBuilder
source§fn eq(&self, other: &ScalingConfigurationInfoBuilder) -> bool
fn eq(&self, other: &ScalingConfigurationInfoBuilder) -> bool
self and other values to be equal, and is used
by ==.