test_grid_sessions
Creates, updates, deletes, gets or lists a test_grid_sessions resource.
Overview
| Name | test_grid_sessions |
| Type | Resource |
| Id | aws.devicefarm.test_grid_sessions |
Fields
The following fields are returned by SELECT queries:
- list_test_grid_sessions
- get_test_grid_session
| Name | Datatype | Description |
|---|---|---|
next_token | string | Pagination token. |
test_grid_sessions | array | The sessions that match the criteria in a ListTestGridSessionsRequest. |
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the session. (pattern: <code>^arn:aws:devicefarm:.+</code>) |
billing_minutes | number (double) | The number of billed minutes that were used for this session. |
created | string (date-time) | The time that the session was started. |
ended | string (date-time) | The time the session ended. |
selenium_properties | string | A JSON object of options and parameters passed to the Selenium WebDriver. |
status | string | The state of the session. (ACTIVE, CLOSED, ERRORED) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_test_grid_sessions | select | region | Retrieves a list of sessions for a TestGridProject. | |
get_test_grid_session | select | region | A session is an instance of a browser created through a RemoteWebDriver with the URL from CreateTestGridUrlResult$url. You can use the following to look up sessions: The session ARN (GetTestGridSessionRequest$sessionArn). The project ARN and a session ID (GetTestGridSessionRequest$projectArn and GetTestGridSessionRequest$sessionId). |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_test_grid_sessions
- get_test_grid_session
Retrieves a list of sessions for a TestGridProject.
SELECT
next_token,
test_grid_sessions
FROM aws.devicefarm.test_grid_sessions
WHERE region = '{{ region }}' -- required
;
A session is an instance of a browser created through a RemoteWebDriver with the URL from CreateTestGridUrlResult$url. You can use the following to look up sessions: The session ARN (GetTestGridSessionRequest$sessionArn). The project ARN and a session ID (GetTestGridSessionRequest$projectArn and GetTestGridSessionRequest$sessionId).
SELECT
arn,
billing_minutes,
created,
ended,
selenium_properties,
status
FROM aws.devicefarm.test_grid_sessions
WHERE region = '{{ region }}' -- required
;