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.GetComputeAccess

Description

Requests remote access to a fleet instance. Remote access is useful for debugging, gathering benchmarking data, or observing activity in real time.

To remotely access an instance, you need credentials that match the operating system of the instance. For a Windows instance, GameLift returns a user name and password as strings for use with a Windows Remote Desktop client. For a Linux instance, GameLift returns a user name and RSA private key, also as strings, for use with an SSH client. The private key must be saved in the proper format to a .pem file before using. If you're making this request using the CLI, saving the secret can be handled as part of the GetInstanceAccess request, as shown in one of the examples for this operation.

To request access to a specific instance, specify the IDs of both the instance and the fleet it belongs to.

Learn more

Remotely Access Fleet Instances

Debug Fleet Issues

Synopsis

Creating a Request

data GetComputeAccess Source #

See: newGetComputeAccess smart constructor.

Constructors

GetComputeAccess' 

Fields

  • fleetId :: Text

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

  • computeName :: Text

    The name of the compute resource you are requesting credentials for.

Instances

Instances details
ToJSON GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

ToHeaders GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

ToPath GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

ToQuery GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

AWSRequest GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

Associated Types

type AWSResponse GetComputeAccess #

Generic GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

Associated Types

type Rep GetComputeAccess :: Type -> Type #

Read GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

Show GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

NFData GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

Methods

rnf :: GetComputeAccess -> () #

Eq GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

Hashable GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

type AWSResponse GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

type Rep GetComputeAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

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

newGetComputeAccess Source #

Create a value of GetComputeAccess 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:

GetComputeAccess, getComputeAccess_fleetId - A unique identifier for the fleet that the compute resource is registered to.

GetComputeAccess, getComputeAccess_computeName - The name of the compute resource you are requesting credentials for.

Request Lenses

getComputeAccess_fleetId :: Lens' GetComputeAccess Text Source #

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

getComputeAccess_computeName :: Lens' GetComputeAccess Text Source #

The name of the compute resource you are requesting credentials for.

Destructuring the Response

data GetComputeAccessResponse Source #

See: newGetComputeAccessResponse smart constructor.

Constructors

GetComputeAccessResponse' 

Fields

  • 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 requested credentials for.

  • credentials :: Maybe (Sensitive AwsCredentials)

    The access credentials for the compute resource.

  • 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

    The fleet ID of compute resource.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetComputeAccessResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

Associated Types

type Rep GetComputeAccessResponse :: Type -> Type #

Show GetComputeAccessResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

NFData GetComputeAccessResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

Eq GetComputeAccessResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

type Rep GetComputeAccessResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetComputeAccess

type Rep GetComputeAccessResponse = D1 ('MetaData "GetComputeAccessResponse" "Amazonka.GameLift.GetComputeAccess" "amazonka-gamelift-2.0-IjhNQby9jLV6gj30IrgsyK" 'False) (C1 ('MetaCons "GetComputeAccessResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "computeArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "computeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "credentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive AwsCredentials))))) :*: (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)))))

newGetComputeAccessResponse Source #

Create a value of GetComputeAccessResponse 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:

GetComputeAccessResponse, getComputeAccessResponse_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.

GetComputeAccess, getComputeAccessResponse_computeName - The name of the compute resource you requested credentials for.

GetComputeAccessResponse, getComputeAccessResponse_credentials - The access credentials for the compute resource.

GetComputeAccessResponse, getComputeAccessResponse_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.

GetComputeAccess, getComputeAccessResponse_fleetId - The fleet ID of compute resource.

$sel:httpStatus:GetComputeAccessResponse', getComputeAccessResponse_httpStatus - The response's http status code.

Response Lenses

getComputeAccessResponse_computeArn :: Lens' GetComputeAccessResponse (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.

getComputeAccessResponse_computeName :: Lens' GetComputeAccessResponse (Maybe Text) Source #

The name of the compute resource you requested credentials for.

getComputeAccessResponse_fleetArn :: Lens' GetComputeAccessResponse (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.