#[non_exhaustive]pub struct GameServerGroupAutoScalingPolicy {
pub estimated_instance_warmup: Option<i32>,
pub target_tracking_configuration: Option<TargetTrackingConfiguration>,
}
Expand description
This data type is used with the Amazon GameLift FleetIQ and game server groups.
Configuration settings for intelligent automatic scaling that uses target tracking. These settings are used to add an Auto Scaling policy when creating the corresponding Auto Scaling group. After the Auto Scaling group is created, all updates to Auto Scaling policies, including changing this policy and adding or removing other policies, is done directly on the Auto Scaling group.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.estimated_instance_warmup: Option<i32>
Length of time, in seconds, it takes for a new instance to start new game server processes and register with Amazon GameLift FleetIQ. Specifying a warm-up time can be useful, particularly with game servers that take a long time to start up, because it avoids prematurely starting new instances.
target_tracking_configuration: Option<TargetTrackingConfiguration>
Settings for a target-based scaling policy applied to Auto Scaling group. These settings are used to create a target-based policy that tracks the Amazon GameLift FleetIQ metric "PercentUtilizedGameServers"
and specifies a target value for the metric. As player usage changes, the policy triggers to adjust the game server group capacity so that the metric returns to the target value.
Implementations§
source§impl GameServerGroupAutoScalingPolicy
impl GameServerGroupAutoScalingPolicy
sourcepub fn estimated_instance_warmup(&self) -> Option<i32>
pub fn estimated_instance_warmup(&self) -> Option<i32>
Length of time, in seconds, it takes for a new instance to start new game server processes and register with Amazon GameLift FleetIQ. Specifying a warm-up time can be useful, particularly with game servers that take a long time to start up, because it avoids prematurely starting new instances.
sourcepub fn target_tracking_configuration(
&self
) -> Option<&TargetTrackingConfiguration>
pub fn target_tracking_configuration( &self ) -> Option<&TargetTrackingConfiguration>
Settings for a target-based scaling policy applied to Auto Scaling group. These settings are used to create a target-based policy that tracks the Amazon GameLift FleetIQ metric "PercentUtilizedGameServers"
and specifies a target value for the metric. As player usage changes, the policy triggers to adjust the game server group capacity so that the metric returns to the target value.
source§impl GameServerGroupAutoScalingPolicy
impl GameServerGroupAutoScalingPolicy
sourcepub fn builder() -> GameServerGroupAutoScalingPolicyBuilder
pub fn builder() -> GameServerGroupAutoScalingPolicyBuilder
Creates a new builder-style object to manufacture GameServerGroupAutoScalingPolicy
.
Trait Implementations§
source§impl Clone for GameServerGroupAutoScalingPolicy
impl Clone for GameServerGroupAutoScalingPolicy
source§fn clone(&self) -> GameServerGroupAutoScalingPolicy
fn clone(&self) -> GameServerGroupAutoScalingPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for GameServerGroupAutoScalingPolicy
impl PartialEq for GameServerGroupAutoScalingPolicy
source§fn eq(&self, other: &GameServerGroupAutoScalingPolicy) -> bool
fn eq(&self, other: &GameServerGroupAutoScalingPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GameServerGroupAutoScalingPolicy
Auto Trait Implementations§
impl Freeze for GameServerGroupAutoScalingPolicy
impl RefUnwindSafe for GameServerGroupAutoScalingPolicy
impl Send for GameServerGroupAutoScalingPolicy
impl Sync for GameServerGroupAutoScalingPolicy
impl Unpin for GameServerGroupAutoScalingPolicy
impl UnwindSafe for GameServerGroupAutoScalingPolicy
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
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>
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>
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 more