Skip to main content

dev_environment_sessions

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

Overview

Namedev_environment_sessions
TypeResource
Idaws.codecatalyst.dev_environment_sessions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe system-generated unique ID of the Dev Environment session.
dev_environment_idstringThe 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_namestringThe name of the project in the space. (pattern: <code>[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*</code>)
space_namestringThe name of the space. (pattern: <code>[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*</code>)
started_timestring (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:

NameAccessible byRequired ParamsOptional ParamsDescription
list_dev_environment_sessionsselectspace_name, project_name, dev_environment_id, regionRetrieves 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.

NameDatatypeDescription
dev_environment_idstringThe system-generated unique ID of the Dev Environment.
project_namestringThe name of the project in the space.
regionstringAWS region (default: us-east-1)
space_namestringThe name of the space.

SELECT examples

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
;