#[non_exhaustive]pub struct ContainerGroupsPerInstance {
pub desired_replica_container_groups_per_instance: Option<i32>,
pub max_replica_container_groups_per_instance: Option<i32>,
}
Expand description
This data type is used with the Amazon GameLift containers feature, which is currently in public preview.
Determines how many replica container groups that Amazon GameLift deploys to each instance in a container fleet.
Amazon GameLift calculates the maximum possible replica groups per instance based on the instance 's CPU and memory resources. When deploying a fleet, Amazon GameLift places replica container groups on each fleet instance based on the following:
-
If no desired value is set, Amazon GameLift places the calculated maximum.
-
If a desired number is set to a value higher than the calculated maximum, Amazon GameLift places the calculated maximum.
-
If a desired number is set to a value lower than the calculated maximum, Amazon GameLift places the desired number.
Part of: ContainerGroupsConfiguration
, ContainerGroupsAttributes
Returned by: DescribeFleetAttributes
, CreateFleet
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_replica_container_groups_per_instance: Option<i32>
The desired number of replica container groups to place on each fleet instance.
max_replica_container_groups_per_instance: Option<i32>
The maximum possible number of replica container groups that each fleet instance can have.
Implementations§
source§impl ContainerGroupsPerInstance
impl ContainerGroupsPerInstance
sourcepub fn desired_replica_container_groups_per_instance(&self) -> Option<i32>
pub fn desired_replica_container_groups_per_instance(&self) -> Option<i32>
The desired number of replica container groups to place on each fleet instance.
sourcepub fn max_replica_container_groups_per_instance(&self) -> Option<i32>
pub fn max_replica_container_groups_per_instance(&self) -> Option<i32>
The maximum possible number of replica container groups that each fleet instance can have.
source§impl ContainerGroupsPerInstance
impl ContainerGroupsPerInstance
sourcepub fn builder() -> ContainerGroupsPerInstanceBuilder
pub fn builder() -> ContainerGroupsPerInstanceBuilder
Creates a new builder-style object to manufacture ContainerGroupsPerInstance
.
Trait Implementations§
source§impl Clone for ContainerGroupsPerInstance
impl Clone for ContainerGroupsPerInstance
source§fn clone(&self) -> ContainerGroupsPerInstance
fn clone(&self) -> ContainerGroupsPerInstance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContainerGroupsPerInstance
impl Debug for ContainerGroupsPerInstance
source§impl PartialEq for ContainerGroupsPerInstance
impl PartialEq for ContainerGroupsPerInstance
source§fn eq(&self, other: &ContainerGroupsPerInstance) -> bool
fn eq(&self, other: &ContainerGroupsPerInstance) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContainerGroupsPerInstance
Auto Trait Implementations§
impl Freeze for ContainerGroupsPerInstance
impl RefUnwindSafe for ContainerGroupsPerInstance
impl Send for ContainerGroupsPerInstance
impl Sync for ContainerGroupsPerInstance
impl Unpin for ContainerGroupsPerInstance
impl UnwindSafe for ContainerGroupsPerInstance
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