Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Requests remote access to a fleet instance. Remote access is useful for debugging, gathering benchmarking data, or watching activity in real time.
Access requires credentials that match the operating system of the instance. For a Windows instance, GameLift returns a username and password as strings for use with a Windows Remote Desktop client. For a Linux instance, GameLift returns a username 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 (see the example later in this topic). For more information on remote access, see Remotely Accessing an Instance .
To request access to a specific instance, specify the IDs of the instance and the fleet it belongs to. If successful, an InstanceAccess
object is returned containing the instance's IP address and a set of credentials.
- getInstanceAccess :: Text -> Text -> GetInstanceAccess
- data GetInstanceAccess
- giaFleetId :: Lens' GetInstanceAccess Text
- giaInstanceId :: Lens' GetInstanceAccess Text
- getInstanceAccessResponse :: Int -> GetInstanceAccessResponse
- data GetInstanceAccessResponse
- giarsInstanceAccess :: Lens' GetInstanceAccessResponse (Maybe InstanceAccess)
- giarsResponseStatus :: Lens' GetInstanceAccessResponse Int
Creating a Request
Creates a value of GetInstanceAccess
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
giaFleetId
- Unique identifier for a fleet. Specify the fleet that contain the instance you want access to. The fleet can be in any of the following statuses: ACTIVATING, ACTIVE, or ERROR. Fleets with an ERROR status can be accessed for a few hours before being deleted.giaInstanceId
- Unique identifier for an instance. Specify the instance you want to get access to. You can access an instance in any status.
data GetInstanceAccess Source #
See: getInstanceAccess
smart constructor.
Request Lenses
giaFleetId :: Lens' GetInstanceAccess Text Source #
Unique identifier for a fleet. Specify the fleet that contain the instance you want access to. The fleet can be in any of the following statuses: ACTIVATING, ACTIVE, or ERROR. Fleets with an ERROR status can be accessed for a few hours before being deleted.
giaInstanceId :: Lens' GetInstanceAccess Text Source #
Unique identifier for an instance. Specify the instance you want to get access to. You can access an instance in any status.
Destructuring the Response
getInstanceAccessResponse Source #
Creates a value of GetInstanceAccessResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
giarsInstanceAccess
- Object containing connection information for a fleet instance, including IP address and access credentials.giarsResponseStatus
- -- | The response status code.
data GetInstanceAccessResponse Source #
See: getInstanceAccessResponse
smart constructor.
Response Lenses
giarsInstanceAccess :: Lens' GetInstanceAccessResponse (Maybe InstanceAccess) Source #
Object containing connection information for a fleet instance, including IP address and access credentials.
giarsResponseStatus :: Lens' GetInstanceAccessResponse Int Source #
- - | The response status code.