Struct aws_sdk_gamelift::types::FleetCapacity
source · #[non_exhaustive]pub struct FleetCapacity {
pub fleet_id: Option<String>,
pub fleet_arn: Option<String>,
pub instance_type: Option<Ec2InstanceType>,
pub instance_counts: Option<Ec2InstanceCounts>,
pub location: Option<String>,
pub replica_container_group_counts: Option<ReplicaContainerGroupCounts>,
}
Expand description
Current resource capacity settings for managed EC2 fleets and container fleets. For multi-location fleets, location values might refer to a fleet's remote location or its home Region.
Returned by: DescribeFleetCapacity, DescribeFleetLocationCapacity, UpdateFleetCapacity
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.fleet_id: Option<String>
A unique identifier for the fleet associated with the location.
fleet_arn: Option<String>
The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:
.
instance_type: Option<Ec2InstanceType>
The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for detailed descriptions.
instance_counts: Option<Ec2InstanceCounts>
The current number of instances in the fleet, listed by instance status. Counts for pending and terminating instances might be non-zero if the fleet is adjusting to a scaling event or if access to resources is temporarily affected.
location: Option<String>
The fleet location for the instance count information, expressed as an Amazon Web Services Region code, such as us-west-2
.
replica_container_group_counts: Option<ReplicaContainerGroupCounts>
This property is used with the Amazon GameLift containers feature, which is currently in public preview. The number and status of replica container groups in a container fleet.
Implementations§
source§impl FleetCapacity
impl FleetCapacity
sourcepub fn fleet_id(&self) -> Option<&str>
pub fn fleet_id(&self) -> Option<&str>
A unique identifier for the fleet associated with the location.
sourcepub fn fleet_arn(&self) -> Option<&str>
pub fn fleet_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) that is assigned to a Amazon GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:
.
sourcepub fn instance_type(&self) -> Option<&Ec2InstanceType>
pub fn instance_type(&self) -> Option<&Ec2InstanceType>
The Amazon EC2 instance type that is used for instances in a fleet. Instance type determines the computing resources in use, including CPU, memory, storage, and networking capacity. See Amazon Elastic Compute Cloud Instance Types for detailed descriptions.
sourcepub fn instance_counts(&self) -> Option<&Ec2InstanceCounts>
pub fn instance_counts(&self) -> Option<&Ec2InstanceCounts>
The current number of instances in the fleet, listed by instance status. Counts for pending and terminating instances might be non-zero if the fleet is adjusting to a scaling event or if access to resources is temporarily affected.
sourcepub fn location(&self) -> Option<&str>
pub fn location(&self) -> Option<&str>
The fleet location for the instance count information, expressed as an Amazon Web Services Region code, such as us-west-2
.
sourcepub fn replica_container_group_counts(
&self
) -> Option<&ReplicaContainerGroupCounts>
pub fn replica_container_group_counts( &self ) -> Option<&ReplicaContainerGroupCounts>
This property is used with the Amazon GameLift containers feature, which is currently in public preview. The number and status of replica container groups in a container fleet.
source§impl FleetCapacity
impl FleetCapacity
sourcepub fn builder() -> FleetCapacityBuilder
pub fn builder() -> FleetCapacityBuilder
Creates a new builder-style object to manufacture FleetCapacity
.
Trait Implementations§
source§impl Clone for FleetCapacity
impl Clone for FleetCapacity
source§fn clone(&self) -> FleetCapacity
fn clone(&self) -> FleetCapacity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FleetCapacity
impl Debug for FleetCapacity
source§impl PartialEq for FleetCapacity
impl PartialEq for FleetCapacity
source§fn eq(&self, other: &FleetCapacity) -> bool
fn eq(&self, other: &FleetCapacity) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FleetCapacity
Auto Trait Implementations§
impl Freeze for FleetCapacity
impl RefUnwindSafe for FleetCapacity
impl Send for FleetCapacity
impl Sync for FleetCapacity
impl Unpin for FleetCapacity
impl UnwindSafe for FleetCapacity
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