Struct aws_sdk_gamelift::operation::get_compute_auth_token::builders::GetComputeAuthTokenFluentBuilder
source · pub struct GetComputeAuthTokenFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to GetComputeAuthToken.
Requests an authentication token from Amazon GameLift for a registered compute in an Anywhere fleet. The game servers that are running on the compute use this token to authenticate with the Amazon GameLift service. Each server process must provide a valid authentication token in its call to the Amazon GameLift server SDK action InitSDK().
Authentication tokens are valid for a limited time span. Use a mechanism to regularly request a fresh authentication token before the current token expires.
Learn more
-
Server SDK reference guides (for version 5.x)
Implementations§
source§impl GetComputeAuthTokenFluentBuilder
impl GetComputeAuthTokenFluentBuilder
sourcepub fn as_input(&self) -> &GetComputeAuthTokenInputBuilder
pub fn as_input(&self) -> &GetComputeAuthTokenInputBuilder
Access the GetComputeAuthToken as a reference.
sourcepub async fn send(
self
) -> Result<GetComputeAuthTokenOutput, SdkError<GetComputeAuthTokenError, HttpResponse>>
pub async fn send( self ) -> Result<GetComputeAuthTokenOutput, SdkError<GetComputeAuthTokenError, HttpResponse>>
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.
sourcepub fn customize(
self
) -> CustomizableOperation<GetComputeAuthTokenOutput, GetComputeAuthTokenError, Self>
pub fn customize( self ) -> CustomizableOperation<GetComputeAuthTokenOutput, GetComputeAuthTokenError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn fleet_id(self, input: impl Into<String>) -> Self
pub fn fleet_id(self, input: impl Into<String>) -> Self
A unique identifier for the fleet that the compute is registered to.
sourcepub fn set_fleet_id(self, input: Option<String>) -> Self
pub fn set_fleet_id(self, input: Option<String>) -> Self
A unique identifier for the fleet that the compute is registered to.
sourcepub fn get_fleet_id(&self) -> &Option<String>
pub fn get_fleet_id(&self) -> &Option<String>
A unique identifier for the fleet that the compute is registered to.
sourcepub fn compute_name(self, input: impl Into<String>) -> Self
pub fn compute_name(self, input: impl Into<String>) -> Self
The name of the compute resource you are requesting the authentication token for.
sourcepub fn set_compute_name(self, input: Option<String>) -> Self
pub fn set_compute_name(self, input: Option<String>) -> Self
The name of the compute resource you are requesting the authentication token for.
sourcepub fn get_compute_name(&self) -> &Option<String>
pub fn get_compute_name(&self) -> &Option<String>
The name of the compute resource you are requesting the authentication token for.
Trait Implementations§
source§impl Clone for GetComputeAuthTokenFluentBuilder
impl Clone for GetComputeAuthTokenFluentBuilder
source§fn clone(&self) -> GetComputeAuthTokenFluentBuilder
fn clone(&self) -> GetComputeAuthTokenFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more