Struct aws_sdk_gamelift::types::GameServerInstance
source · #[non_exhaustive]pub struct GameServerInstance {
pub game_server_group_name: Option<String>,
pub game_server_group_arn: Option<String>,
pub instance_id: Option<String>,
pub instance_status: Option<GameServerInstanceStatus>,
}
Expand description
This data type is used with the Amazon GameLift FleetIQ and game server groups.
Additional properties, including status, that describe an EC2 instance in a game server group. Instance configurations are set with game server group properties (see DescribeGameServerGroup
and with the EC2 launch template that was used when creating the game server group.
Retrieve game server instances for a game server group by calling DescribeGameServerInstances
.
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.game_server_group_name: Option<String>
A developer-defined identifier for the game server group that includes the game server instance. The name is unique for each Region in each Amazon Web Services account.
game_server_group_arn: Option<String>
A generated unique identifier for the game server group that includes the game server instance.
instance_id: Option<String>
The unique identifier for the instance where the game server is running. This ID is available in the instance metadata. EC2 instance IDs use a 17-character format, for example: i-1234567890abcdef0
.
instance_status: Option<GameServerInstanceStatus>
Current status of the game server instance
Implementations§
source§impl GameServerInstance
impl GameServerInstance
sourcepub fn game_server_group_name(&self) -> Option<&str>
pub fn game_server_group_name(&self) -> Option<&str>
A developer-defined identifier for the game server group that includes the game server instance. The name is unique for each Region in each Amazon Web Services account.
sourcepub fn game_server_group_arn(&self) -> Option<&str>
pub fn game_server_group_arn(&self) -> Option<&str>
A generated unique identifier for the game server group that includes the game server instance.
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The unique identifier for the instance where the game server is running. This ID is available in the instance metadata. EC2 instance IDs use a 17-character format, for example: i-1234567890abcdef0
.
sourcepub fn instance_status(&self) -> Option<&GameServerInstanceStatus>
pub fn instance_status(&self) -> Option<&GameServerInstanceStatus>
Current status of the game server instance
source§impl GameServerInstance
impl GameServerInstance
sourcepub fn builder() -> GameServerInstanceBuilder
pub fn builder() -> GameServerInstanceBuilder
Creates a new builder-style object to manufacture GameServerInstance
.
Trait Implementations§
source§impl Clone for GameServerInstance
impl Clone for GameServerInstance
source§fn clone(&self) -> GameServerInstance
fn clone(&self) -> GameServerInstance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GameServerInstance
impl Debug for GameServerInstance
source§impl PartialEq for GameServerInstance
impl PartialEq for GameServerInstance
source§fn eq(&self, other: &GameServerInstance) -> bool
fn eq(&self, other: &GameServerInstance) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GameServerInstance
Auto Trait Implementations§
impl Freeze for GameServerInstance
impl RefUnwindSafe for GameServerInstance
impl Send for GameServerInstance
impl Sync for GameServerInstance
impl Unpin for GameServerInstance
impl UnwindSafe for GameServerInstance
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