Struct aws_sdk_gamelift::types::Ec2InstanceCounts
source · #[non_exhaustive]pub struct Ec2InstanceCounts {
pub desired: Option<i32>,
pub minimum: Option<i32>,
pub maximum: Option<i32>,
pub pending: Option<i32>,
pub active: Option<i32>,
pub idle: Option<i32>,
pub terminating: Option<i32>,
}
Expand description
Resource capacity settings. Fleet capacity is measured in Amazon EC2 instances. Pending and terminating counts are non-zero when the fleet capacity is adjusting to a scaling event or if access to resources is temporarily affected.
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.desired: Option<i32>
Requested number of active instances. Amazon GameLift takes action as needed to maintain the desired number of instances. Capacity is scaled up or down by changing the desired instances. A change in the desired instances value can take up to 1 minute to be reflected when viewing a fleet's capacity settings.
minimum: Option<i32>
The minimum instance count value allowed.
maximum: Option<i32>
The maximum instance count value allowed.
pending: Option<i32>
Number of instances that are starting but not yet active.
active: Option<i32>
Actual number of instances that are ready to host game sessions.
idle: Option<i32>
Number of active instances that are not currently hosting a game session.
terminating: Option<i32>
Number of instances that are no longer active but haven't yet been terminated.
Implementations§
source§impl Ec2InstanceCounts
impl Ec2InstanceCounts
sourcepub fn desired(&self) -> Option<i32>
pub fn desired(&self) -> Option<i32>
Requested number of active instances. Amazon GameLift takes action as needed to maintain the desired number of instances. Capacity is scaled up or down by changing the desired instances. A change in the desired instances value can take up to 1 minute to be reflected when viewing a fleet's capacity settings.
sourcepub fn active(&self) -> Option<i32>
pub fn active(&self) -> Option<i32>
Actual number of instances that are ready to host game sessions.
sourcepub fn idle(&self) -> Option<i32>
pub fn idle(&self) -> Option<i32>
Number of active instances that are not currently hosting a game session.
sourcepub fn terminating(&self) -> Option<i32>
pub fn terminating(&self) -> Option<i32>
Number of instances that are no longer active but haven't yet been terminated.
source§impl Ec2InstanceCounts
impl Ec2InstanceCounts
sourcepub fn builder() -> Ec2InstanceCountsBuilder
pub fn builder() -> Ec2InstanceCountsBuilder
Creates a new builder-style object to manufacture Ec2InstanceCounts
.
Trait Implementations§
source§impl Clone for Ec2InstanceCounts
impl Clone for Ec2InstanceCounts
source§fn clone(&self) -> Ec2InstanceCounts
fn clone(&self) -> Ec2InstanceCounts
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Ec2InstanceCounts
impl Debug for Ec2InstanceCounts
source§impl PartialEq for Ec2InstanceCounts
impl PartialEq for Ec2InstanceCounts
source§fn eq(&self, other: &Ec2InstanceCounts) -> bool
fn eq(&self, other: &Ec2InstanceCounts) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Ec2InstanceCounts
Auto Trait Implementations§
impl Freeze for Ec2InstanceCounts
impl RefUnwindSafe for Ec2InstanceCounts
impl Send for Ec2InstanceCounts
impl Sync for Ec2InstanceCounts
impl Unpin for Ec2InstanceCounts
impl UnwindSafe for Ec2InstanceCounts
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