#[non_exhaustive]pub struct AutoScalingGroupConfiguration {
pub desired_capacity: i32,
pub min_size: i32,
pub max_size: i32,
pub instance_type: Option<String>,
}
Expand description
Describes the configuration of an Auto Scaling group.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.desired_capacity: i32
The desired capacity, or number of instances, for the Auto Scaling group.
min_size: i32
The minimum size, or minimum number of instances, for the Auto Scaling group.
max_size: i32
The maximum size, or maximum number of instances, for the Auto Scaling group.
instance_type: Option<String>
The instance type for the Auto Scaling group.
Implementations§
source§impl AutoScalingGroupConfiguration
impl AutoScalingGroupConfiguration
sourcepub fn desired_capacity(&self) -> i32
pub fn desired_capacity(&self) -> i32
The desired capacity, or number of instances, for the Auto Scaling group.
sourcepub fn min_size(&self) -> i32
pub fn min_size(&self) -> i32
The minimum size, or minimum number of instances, for the Auto Scaling group.
sourcepub fn max_size(&self) -> i32
pub fn max_size(&self) -> i32
The maximum size, or maximum number of instances, for the Auto Scaling group.
sourcepub fn instance_type(&self) -> Option<&str>
pub fn instance_type(&self) -> Option<&str>
The instance type for the Auto Scaling group.
source§impl AutoScalingGroupConfiguration
impl AutoScalingGroupConfiguration
sourcepub fn builder() -> AutoScalingGroupConfigurationBuilder
pub fn builder() -> AutoScalingGroupConfigurationBuilder
Creates a new builder-style object to manufacture AutoScalingGroupConfiguration
.
Trait Implementations§
source§impl Clone for AutoScalingGroupConfiguration
impl Clone for AutoScalingGroupConfiguration
source§fn clone(&self) -> AutoScalingGroupConfiguration
fn clone(&self) -> AutoScalingGroupConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for AutoScalingGroupConfiguration
impl PartialEq for AutoScalingGroupConfiguration
source§fn eq(&self, other: &AutoScalingGroupConfiguration) -> bool
fn eq(&self, other: &AutoScalingGroupConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoScalingGroupConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for AutoScalingGroupConfiguration
impl Send for AutoScalingGroupConfiguration
impl Sync for AutoScalingGroupConfiguration
impl Unpin for AutoScalingGroupConfiguration
impl UnwindSafe for AutoScalingGroupConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.