dev_environment_sessions
Creates, updates, deletes, gets or lists a dev_environment_sessions resource.
Overview
| Name | dev_environment_sessions |
| Type | Resource |
| Id | aws.codecatalyst.dev_environment_sessions |
Fields
The following fields are returned by SELECT queries:
- list_dev_environment_sessions
| Name | Datatype | Description |
|---|---|---|
id | string | The system-generated unique ID of the Dev Environment session. |
dev_environment_id | string | The system-generated unique ID of the Dev Environment. (pattern: <code>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}</code>) |
project_name | string | The name of the project in the space. (pattern: <code>[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*</code>) |
space_name | string | The name of the space. (pattern: <code>[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*</code>) |
started_time | string (date-time) | The date and time the session started, in coordinated universal time (UTC) timestamp format as specified in RFC 3339 |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_dev_environment_sessions | select | space_name, project_name, dev_environment_id, region | Retrieves a list of active sessions for a Dev Environment in a project. |
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 |
|---|---|---|
dev_environment_id | string | The system-generated unique ID of the Dev Environment. |
project_name | string | The name of the project in the space. |
region | string | AWS region (default: us-east-1) |
space_name | string | The name of the space. |
SELECT examples
- list_dev_environment_sessions
Retrieves a list of active sessions for a Dev Environment in a project.
SELECT
id,
dev_environment_id,
project_name,
space_name,
started_time
FROM aws.codecatalyst.dev_environment_sessions
WHERE space_name = '{{ space_name }}' -- required
AND project_name = '{{ project_name }}' -- required
AND dev_environment_id = '{{ dev_environment_id }}' -- required
AND region = '{{ region }}' -- required
;