Skip to main content

remote_access_sessions

Creates, updates, deletes, gets or lists a remote_access_sessions resource.

Overview

Nameremote_access_sessions
TypeResource
Idaws.devicefarm.remote_access_sessions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the remote access session.
app_uploadstringThe ARN for the app to be installed onto your device. (pattern: <code>^arn:aws:devicefarm:.+</code>)
arnstringThe Amazon Resource Name (ARN) of the remote access session. (pattern: <code>^arn:aws:devicefarm:.+</code>)
billing_methodstringThe billing method of the remote access session. Possible values include METERED or UNMETERED. For more information about metered devices, see AWS Device Farm terminology. (METERED, UNMETERED)
createdstring (date-time)The date and time the remote access session was created.
deviceobjectThe device (phone or tablet) used in the remote access session.
device_minutesobjectThe number of minutes a device is used in a remote access session (including setup and teardown minutes).
device_proxyobjectThe device proxy configured for the remote access session.
device_udidstringUnique device identifier for the remote device. Only returned if remote debugging is enabled for the remote access session. Remote debugging is no longer supported.
endpointstringThe endpoint for the remote access session. This field is deprecated, and is replaced by the new endpoints.interactiveEndpoint field.
endpointsobjectRepresents the remote endpoints for viewing and controlling a device during a remote access session.
instance_arnstringThe ARN of the instance. (pattern: <code>^arn:aws:devicefarm:.+</code>)
interaction_modestringThe interaction mode of the remote access session. Changing the interactive mode of remote access sessions is no longer available. (INTERACTIVE, NO_VIDEO, VIDEO_ONLY)
messagestringA message about the remote access session.
resultstringThe result of the remote access session. Can be any of the following: PENDING. PASSED. WARNED. FAILED. SKIPPED. ERRORED. STOPPED. (PENDING, PASSED, WARNED, FAILED, SKIPPED, ERRORED, STOPPED)
skip_app_resignbooleanWhen set to true, for private devices, Device Farm does not sign your app again. For public devices, Device Farm always signs your apps again. For more information about how Device Farm re-signs your apps, see Do you modify my app? in the AWS Device Farm FAQs.
startedstring (date-time)The date and time the remote access session was started.
statusstringThe status of the remote access session. Can be any of the following: PENDING. PENDING_CONCURRENCY. PENDING_DEVICE. PROCESSING. SCHEDULING. PREPARING. RUNNING. COMPLETED. STOPPING. (PENDING, PENDING_CONCURRENCY, PENDING_DEVICE, PROCESSING, SCHEDULING, PREPARING, RUNNING, COMPLETED, STOPPING)
stoppedstring (date-time)The date and time the remote access session was stopped.
vpc_configobjectThe VPC security groups and subnets that are attached to a project.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_remote_access_sessionselectregionReturns a link to a currently running remote access session.
create_remote_access_sessioninsertregion, projectArn, deviceArnSpecifies and starts a remote access session.
delete_remote_access_sessiondeleteregionDeletes a completed remote access session and its results. You cannot delete a remote access session if it is still active. You cannot undo this operation.
install_to_remote_access_sessionexecregion, remoteAccessSessionArn, appArnInstalls an application to the device in a remote access session. For Android applications, the file must be in .apk format. For iOS applications, the file must be in .ipa format.
list_remote_access_sessionsexecregion, arnReturns a list of all currently running remote access sessions.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a link to a currently running remote access session.

SELECT
name,
app_upload,
arn,
billing_method,
created,
device,
device_minutes,
device_proxy,
device_udid,
endpoint,
endpoints,
instance_arn,
interaction_mode,
message,
result,
skip_app_resign,
started,
status,
stopped,
vpc_config
FROM aws.devicefarm.remote_access_sessions
WHERE region = '{{ region }}' -- required
;

INSERT examples

Specifies and starts a remote access session.

INSERT INTO aws.devicefarm.remote_access_sessions (
projectArn,
deviceArn,
appArn,
instanceArn,
name,
configuration,
interactionMode,
skipAppResign,
region
)
SELECT
'{{ projectArn }}' /* required */,
'{{ deviceArn }}' /* required */,
'{{ appArn }}',
'{{ instanceArn }}',
'{{ name }}',
'{{ configuration }}',
'{{ interactionMode }}',
{{ skipAppResign }},
'{{ region }}'
RETURNING
remote_access_session
;

DELETE examples

Deletes a completed remote access session and its results. You cannot delete a remote access session if it is still active. You cannot undo this operation.

DELETE FROM aws.devicefarm.remote_access_sessions
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Installs an application to the device in a remote access session. For Android applications, the file must be in .apk format. For iOS applications, the file must be in .ipa format.

EXEC aws.devicefarm.remote_access_sessions.install_to_remote_access_session
@region='{{ region }}' --required
@@json=
'{
"remoteAccessSessionArn": "{{ remoteAccessSessionArn }}",
"appArn": "{{ appArn }}"
}'
;