amazonka-gamelift-2.0: Amazon GameLift SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.GameLift.GetComputeAuthToken

Description

Requests an authorization token from GameLift. The authorization token is used by your game server to authenticate with GameLift. Each authentication token has an expiration token. To continue using the compute resource to host your game server, regularly retrieve a new authorization token.

Synopsis

Creating a Request

data GetComputeAuthToken Source #

See: newGetComputeAuthToken smart constructor.

Constructors

GetComputeAuthToken' 

Fields

  • fleetId :: Text

    A unique identifier for the fleet that the compute is registered to.

  • computeName :: Text

    The name of the compute resource you are requesting the authorization token for.

Instances

Instances details
ToJSON GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

ToHeaders GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

ToPath GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

ToQuery GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

AWSRequest GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

Associated Types

type AWSResponse GetComputeAuthToken #

Generic GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

Associated Types

type Rep GetComputeAuthToken :: Type -> Type #

Read GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

Show GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

NFData GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

Methods

rnf :: GetComputeAuthToken -> () #

Eq GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

Hashable GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

type AWSResponse GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

type Rep GetComputeAuthToken Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

type Rep GetComputeAuthToken = D1 ('MetaData "GetComputeAuthToken" "Amazonka.GameLift.GetComputeAuthToken" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "GetComputeAuthToken'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "computeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newGetComputeAuthToken Source #

Create a value of GetComputeAuthToken with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

GetComputeAuthToken, getComputeAuthToken_fleetId - A unique identifier for the fleet that the compute is registered to.

GetComputeAuthToken, getComputeAuthToken_computeName - The name of the compute resource you are requesting the authorization token for.

Request Lenses

getComputeAuthToken_fleetId :: Lens' GetComputeAuthToken Text Source #

A unique identifier for the fleet that the compute is registered to.

getComputeAuthToken_computeName :: Lens' GetComputeAuthToken Text Source #

The name of the compute resource you are requesting the authorization token for.

Destructuring the Response

data GetComputeAuthTokenResponse Source #

See: newGetComputeAuthTokenResponse smart constructor.

Constructors

GetComputeAuthTokenResponse' 

Fields

  • authToken :: Maybe Text

    The authorization token that your game server uses to authenticate with GameLift.

  • computeArn :: Maybe Text

    The Amazon Resource Name (ARN) that is assigned to a GameLift compute resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912

  • computeName :: Maybe Text

    The name of the compute resource you are requesting the authorization token for.

  • expirationTimestamp :: Maybe POSIX

    The amount of time until the authorization token is no longer valid. To continue using the compute resource for game server hosting, renew the authorization token by using this operation again.

  • fleetArn :: Maybe Text

    The Amazon Resource Name (ARN) that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

  • fleetId :: Maybe Text

    A unique identifier for the fleet that the compute is registered to.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetComputeAuthTokenResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

Associated Types

type Rep GetComputeAuthTokenResponse :: Type -> Type #

Read GetComputeAuthTokenResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

Show GetComputeAuthTokenResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

NFData GetComputeAuthTokenResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

Eq GetComputeAuthTokenResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

type Rep GetComputeAuthTokenResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAuthToken

type Rep GetComputeAuthTokenResponse = D1 ('MetaData "GetComputeAuthTokenResponse" "Amazonka.GameLift.GetComputeAuthToken" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "GetComputeAuthTokenResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "authToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "computeArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "computeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "expirationTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "fleetArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetComputeAuthTokenResponse Source #

Create a value of GetComputeAuthTokenResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:authToken:GetComputeAuthTokenResponse', getComputeAuthTokenResponse_authToken - The authorization token that your game server uses to authenticate with GameLift.

GetComputeAuthTokenResponse, getComputeAuthTokenResponse_computeArn - The Amazon Resource Name (ARN) that is assigned to a GameLift compute resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912

GetComputeAuthToken, getComputeAuthTokenResponse_computeName - The name of the compute resource you are requesting the authorization token for.

$sel:expirationTimestamp:GetComputeAuthTokenResponse', getComputeAuthTokenResponse_expirationTimestamp - The amount of time until the authorization token is no longer valid. To continue using the compute resource for game server hosting, renew the authorization token by using this operation again.

GetComputeAuthTokenResponse, getComputeAuthTokenResponse_fleetArn - The Amazon Resource Name (ARN) that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

GetComputeAuthToken, getComputeAuthTokenResponse_fleetId - A unique identifier for the fleet that the compute is registered to.

$sel:httpStatus:GetComputeAuthTokenResponse', getComputeAuthTokenResponse_httpStatus - The response's http status code.

Response Lenses

getComputeAuthTokenResponse_authToken :: Lens' GetComputeAuthTokenResponse (Maybe Text) Source #

The authorization token that your game server uses to authenticate with GameLift.

getComputeAuthTokenResponse_computeArn :: Lens' GetComputeAuthTokenResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) that is assigned to a GameLift compute resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::compute/compute-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912

getComputeAuthTokenResponse_computeName :: Lens' GetComputeAuthTokenResponse (Maybe Text) Source #

The name of the compute resource you are requesting the authorization token for.

getComputeAuthTokenResponse_expirationTimestamp :: Lens' GetComputeAuthTokenResponse (Maybe UTCTime) Source #

The amount of time until the authorization token is no longer valid. To continue using the compute resource for game server hosting, renew the authorization token by using this operation again.

getComputeAuthTokenResponse_fleetArn :: Lens' GetComputeAuthTokenResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) that is assigned to a GameLift fleet resource and uniquely identifies it. ARNs are unique across all Regions. Format is arn:aws:gamelift:<region>::fleet/fleet-a1234567-b8c9-0d1e-2fa3-b45c6d7e8912.

getComputeAuthTokenResponse_fleetId :: Lens' GetComputeAuthTokenResponse (Maybe Text) Source #

A unique identifier for the fleet that the compute is registered to.