Struct aws_sdk_gamelift::client::fluent_builders::CreatePlayerSession [−][src]
pub struct CreatePlayerSession<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreatePlayerSession
.
Reserves an open player slot in a game session for a player. New player sessions can be
created in any game session with an open slot that is in ACTIVE
status and
has a player creation policy of ACCEPT_ALL
. You can add a group of players
to a game session with CreatePlayerSessions.
To create a player session, specify a game session ID, player ID, and optionally a set of player data.
If successful, a slot is reserved in the game session for the player and a new PlayerSession object is returned with a player session ID. The player references the player session ID when sending a connection request to the game session, and the game server can use it to validate the player reservation with the GameLift service. Player sessions cannot be updated.
Available in Amazon GameLift Local.
Related actions
CreatePlayerSession | CreatePlayerSessions | DescribePlayerSessions | StartGameSessionPlacement | DescribeGameSessionPlacement | All APIs by task
Implementations
impl<C, M, R> CreatePlayerSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreatePlayerSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreatePlayerSessionOutput, SdkError<CreatePlayerSessionError>> where
R::Policy: SmithyRetryPolicy<CreatePlayerSessionInputOperationOutputAlias, CreatePlayerSessionOutput, CreatePlayerSessionError, CreatePlayerSessionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreatePlayerSessionOutput, SdkError<CreatePlayerSessionError>> where
R::Policy: SmithyRetryPolicy<CreatePlayerSessionInputOperationOutputAlias, CreatePlayerSessionOutput, CreatePlayerSessionError, CreatePlayerSessionInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A unique identifier for the game session to add a player to.
A unique identifier for the game session to add a player to.
A unique identifier for a player. Player IDs are developer-defined.
A unique identifier for a player. Player IDs are developer-defined.
Developer-defined information related to a player. GameLift does not use this data, so it can be formatted as needed for use in the game.
Developer-defined information related to a player. GameLift does not use this data, so it can be formatted as needed for use in the game.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreatePlayerSession<C, M, R>
impl<C, M, R> Send for CreatePlayerSession<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreatePlayerSession<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreatePlayerSession<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreatePlayerSession<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more