#[non_exhaustive]pub struct ScalingConfigurationInput {
pub scaling_type: Option<FleetScalingType>,
pub target_tracking_scaling_configs: Option<Vec<TargetTrackingScalingConfiguration>>,
pub max_capacity: Option<i32>,
}
Expand description
The scaling configuration input 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.
Implementations§
source§impl ScalingConfigurationInput
impl ScalingConfigurationInput
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.
source§impl ScalingConfigurationInput
impl ScalingConfigurationInput
sourcepub fn builder() -> ScalingConfigurationInputBuilder
pub fn builder() -> ScalingConfigurationInputBuilder
Creates a new builder-style object to manufacture ScalingConfigurationInput
.
Trait Implementations§
source§impl Clone for ScalingConfigurationInput
impl Clone for ScalingConfigurationInput
source§fn clone(&self) -> ScalingConfigurationInput
fn clone(&self) -> ScalingConfigurationInput
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 ScalingConfigurationInput
impl Debug for ScalingConfigurationInput
source§impl PartialEq for ScalingConfigurationInput
impl PartialEq for ScalingConfigurationInput
source§fn eq(&self, other: &ScalingConfigurationInput) -> bool
fn eq(&self, other: &ScalingConfigurationInput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ScalingConfigurationInput
Auto Trait Implementations§
impl RefUnwindSafe for ScalingConfigurationInput
impl Send for ScalingConfigurationInput
impl Sync for ScalingConfigurationInput
impl Unpin for ScalingConfigurationInput
impl UnwindSafe for ScalingConfigurationInput
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.