Struct aws_sdk_gamelift::client::fluent_builders::UpdateGameSession [−][src]
pub struct UpdateGameSession<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to UpdateGameSession
.
Updates the mutable properties of a game session.
To update a game session, specify the game session ID and the values you want to change.
If successful, the updated GameSession
object is returned.
Related actions
CreateGameSession | DescribeGameSessions | DescribeGameSessionDetails | SearchGameSessions | UpdateGameSession | GetGameSessionLogUrl | StartGameSessionPlacement | DescribeGameSessionPlacement | StopGameSessionPlacement | All APIs by task
Implementations
impl<C, M, R> UpdateGameSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> UpdateGameSession<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<UpdateGameSessionOutput, SdkError<UpdateGameSessionError>> where
R::Policy: SmithyRetryPolicy<UpdateGameSessionInputOperationOutputAlias, UpdateGameSessionOutput, UpdateGameSessionError, UpdateGameSessionInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<UpdateGameSessionOutput, SdkError<UpdateGameSessionError>> where
R::Policy: SmithyRetryPolicy<UpdateGameSessionInputOperationOutputAlias, UpdateGameSessionOutput, UpdateGameSessionError, UpdateGameSessionInputOperationRetryAlias>,
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 update.
A unique identifier for the game session to update.
The maximum number of players that can be connected simultaneously to the game session.
The maximum number of players that can be connected simultaneously to the game session.
A descriptive label that is associated with a game session. Session names do not need to be unique.
A descriptive label that is associated with a game session. Session names do not need to be unique.
A policy that determines whether the game session is accepting new players.
pub fn set_player_session_creation_policy(
self,
input: Option<PlayerSessionCreationPolicy>
) -> Self
pub fn set_player_session_creation_policy(
self,
input: Option<PlayerSessionCreationPolicy>
) -> Self
A policy that determines whether the game session is accepting new players.
Game session protection policy to apply to this game session only.
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
Game session protection policy to apply to this game session only.
-
NoProtection -- The game session can be terminated during a scale-down event.
-
FullProtection -- If the game session is in an
ACTIVE
status, it cannot be terminated during a scale-down event.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for UpdateGameSession<C, M, R>
impl<C, M, R> Send for UpdateGameSession<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for UpdateGameSession<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for UpdateGameSession<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for UpdateGameSession<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