#[non_exhaustive]pub struct ScalingConfigurationOutput {
pub scaling_type: Option<FleetScalingType>,
pub target_tracking_scaling_configs: Option<Vec<TargetTrackingScalingConfiguration>>,
pub max_capacity: Option<i32>,
pub desired_capacity: Option<i32>,
}
Expand description
The scaling configuration output of a compute fleet.
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.scaling_type: Option<FleetScalingType>
The scaling type for a compute fleet.
target_tracking_scaling_configs: Option<Vec<TargetTrackingScalingConfiguration>>
A list of TargetTrackingScalingConfiguration
objects.
max_capacity: Option<i32>
The maximum number of instances in the fleet when auto-scaling.
desired_capacity: Option<i32>
The desired number of instances in the fleet when auto-scaling.
Implementations§
source§impl ScalingConfigurationOutput
impl ScalingConfigurationOutput
sourcepub fn scaling_type(&self) -> Option<&FleetScalingType>
pub fn scaling_type(&self) -> Option<&FleetScalingType>
The scaling type for a compute fleet.
sourcepub fn target_tracking_scaling_configs(
&self,
) -> &[TargetTrackingScalingConfiguration]
pub fn target_tracking_scaling_configs( &self, ) -> &[TargetTrackingScalingConfiguration]
A list of TargetTrackingScalingConfiguration
objects.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .target_tracking_scaling_configs.is_none()
.
sourcepub fn max_capacity(&self) -> Option<i32>
pub fn max_capacity(&self) -> Option<i32>
The maximum number of instances in the fleet when auto-scaling.
sourcepub fn desired_capacity(&self) -> Option<i32>
pub fn desired_capacity(&self) -> Option<i32>
The desired number of instances in the fleet when auto-scaling.
source§impl ScalingConfigurationOutput
impl ScalingConfigurationOutput
sourcepub fn builder() -> ScalingConfigurationOutputBuilder
pub fn builder() -> ScalingConfigurationOutputBuilder
Creates a new builder-style object to manufacture ScalingConfigurationOutput
.
Trait Implementations§
source§impl Clone for ScalingConfigurationOutput
impl Clone for ScalingConfigurationOutput
source§fn clone(&self) -> ScalingConfigurationOutput
fn clone(&self) -> ScalingConfigurationOutput
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 Debug for ScalingConfigurationOutput
impl Debug for ScalingConfigurationOutput
source§impl PartialEq for ScalingConfigurationOutput
impl PartialEq for ScalingConfigurationOutput
source§fn eq(&self, other: &ScalingConfigurationOutput) -> bool
fn eq(&self, other: &ScalingConfigurationOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScalingConfigurationOutput
Auto Trait Implementations§
impl Freeze for ScalingConfigurationOutput
impl RefUnwindSafe for ScalingConfigurationOutput
impl Send for ScalingConfigurationOutput
impl Sync for ScalingConfigurationOutput
impl Unpin for ScalingConfigurationOutput
impl UnwindSafe for ScalingConfigurationOutput
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.