AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the GetComputeAuthToken operation.
Requests an authentication token from Amazon GameLift for a compute resource in an
Amazon GameLift Anywhere fleet or container fleet. Game servers that are running on
the compute use this token to communicate with the Amazon GameLift service, such as
when calling the Amazon GameLift server SDK action InitSDK()
. Authentication
tokens are valid for a limited time span, so you need to request a fresh token before
the current token expires.
Use this operation based on the fleet compute type:
For EC2
fleets, auth token retrieval and refresh is handled automatically.
All game servers that are running on all fleet instances have access to a valid auth
token.
For ANYWHERE
and CONTAINER
fleets, if you're using the Amazon GameLift
Agent, auth token retrieval and refresh is handled automatically for any container
or Anywhere compute where the Agent is running. If you're not using the Agent, create
a mechanism to retrieve and refresh auth tokens for computes that are running game
server processes.
Learn more
Server SDK reference guides (for version 5.x)
Namespace: Amazon.GameLift.Model
Assembly: AWSSDK.GameLift.dll
Version: 3.x.y.z
public class GetComputeAuthTokenRequest : AmazonGameLiftRequest IAmazonWebServiceRequest
The GetComputeAuthTokenRequest type exposes the following members
Name | Description | |
---|---|---|
GetComputeAuthTokenRequest() |
Name | Type | Description | |
---|---|---|---|
ComputeName | System.String |
Gets and sets the property ComputeName.
The name of the compute resource you are requesting the authentication token for.
For an Anywhere fleet compute, use the registered compute name. For an EC2 fleet instance,
use the instance ID. For a container fleet, use the compute name (for example, |
|
FleetId | System.String |
Gets and sets the property FleetId. A unique identifier for the fleet that the compute is registered to. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5