Struct aws_sdk_rds::model::scaling_configuration_info::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for ScalingConfigurationInfo.
Implementations
sourceimpl Builder
impl Builder
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 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 auto_pause(self, input: bool) -> Self
pub fn auto_pause(self, input: bool) -> Self
A value that 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
A value that 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 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 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 build(self) -> ScalingConfigurationInfo
pub fn build(self) -> ScalingConfigurationInfo
Consumes the builder and constructs a ScalingConfigurationInfo.