libZSservicesZSamazonka-gameliftZSamazonka-gamelift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.GameLift.GetInstanceAccess

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 AWS 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. You can retrieve a fleet's instance IDs by calling DescribeInstances. If successful, an InstanceAccess object is returned that contains the instance's IP address and a set of credentials.

Learn more

Remotely Access Fleet Instances

Debug Fleet Issues

Related actions

DescribeInstances | GetInstanceAccess | DescribeEC2InstanceLimits | All APIs by task

Synopsis

Creating a Request

data GetInstanceAccess Source #

Represents the input for a request operation.

See: newGetInstanceAccess smart constructor.

Constructors

GetInstanceAccess' 

Fields

  • fleetId :: Text

    A unique identifier for the fleet that contains the instance you want access to. You can use either the fleet ID or ARN value. The fleet can be in any of the following statuses: ACTIVATING, ACTIVE, or ERROR. Fleets with an ERROR status may be accessible for a short time before they are deleted.

  • instanceId :: Text

    A unique identifier for the instance you want to get access to. You can access an instance in any status.

Instances

Instances details
Eq GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

Read GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

Show GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

Generic GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

Associated Types

type Rep GetInstanceAccess :: Type -> Type #

NFData GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

Methods

rnf :: GetInstanceAccess -> () #

Hashable GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

ToJSON GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

AWSRequest GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

Associated Types

type AWSResponse GetInstanceAccess #

ToHeaders GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

ToPath GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

ToQuery GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

type Rep GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

type Rep GetInstanceAccess = D1 ('MetaData "GetInstanceAccess" "Amazonka.GameLift.GetInstanceAccess" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "GetInstanceAccess'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fleetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetInstanceAccess Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

newGetInstanceAccess Source #

Create a value of GetInstanceAccess 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:fleetId:GetInstanceAccess', getInstanceAccess_fleetId - A unique identifier for the fleet that contains the instance you want access to. You can use either the fleet ID or ARN value. The fleet can be in any of the following statuses: ACTIVATING, ACTIVE, or ERROR. Fleets with an ERROR status may be accessible for a short time before they are deleted.

$sel:instanceId:GetInstanceAccess', getInstanceAccess_instanceId - A unique identifier for the instance you want to get access to. You can access an instance in any status.

Request Lenses

getInstanceAccess_fleetId :: Lens' GetInstanceAccess Text Source #

A unique identifier for the fleet that contains the instance you want access to. You can use either the fleet ID or ARN value. The fleet can be in any of the following statuses: ACTIVATING, ACTIVE, or ERROR. Fleets with an ERROR status may be accessible for a short time before they are deleted.

getInstanceAccess_instanceId :: Lens' GetInstanceAccess Text Source #

A unique identifier for the instance you want to get access to. You can access an instance in any status.

Destructuring the Response

data GetInstanceAccessResponse Source #

Represents the returned data in response to a request operation.

See: newGetInstanceAccessResponse smart constructor.

Constructors

GetInstanceAccessResponse' 

Fields

Instances

Instances details
Eq GetInstanceAccessResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

Show GetInstanceAccessResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

Generic GetInstanceAccessResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

Associated Types

type Rep GetInstanceAccessResponse :: Type -> Type #

NFData GetInstanceAccessResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

type Rep GetInstanceAccessResponse Source # 
Instance details

Defined in Amazonka.GameLift.GetInstanceAccess

type Rep GetInstanceAccessResponse = D1 ('MetaData "GetInstanceAccessResponse" "Amazonka.GameLift.GetInstanceAccess" "libZSservicesZSamazonka-gameliftZSamazonka-gamelift" 'False) (C1 ('MetaCons "GetInstanceAccessResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "instanceAccess") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe InstanceAccess)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetInstanceAccessResponse Source #

Create a value of GetInstanceAccessResponse 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:instanceAccess:GetInstanceAccessResponse', getInstanceAccessResponse_instanceAccess - The connection information for a fleet instance, including IP address and access credentials.

$sel:httpStatus:GetInstanceAccessResponse', getInstanceAccessResponse_httpStatus - The response's http status code.

Response Lenses

getInstanceAccessResponse_instanceAccess :: Lens' GetInstanceAccessResponse (Maybe InstanceAccess) Source #

The connection information for a fleet instance, including IP address and access credentials.