Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idaws.codecatalyst.projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the project in the space.
descriptionstringThe description of the project.
display_namestringThe friendly name of the project displayed to users in Amazon CodeCatalyst.
space_namestringThe name of the space. (pattern: <code>[a-zA-Z0-9]+(?:[-_.][a-zA-Z0-9]+)*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_projectselectspace_name, name, regionReturns information about a project.
list_projectsselectspace_name, regionRetrieves a list of projects.
create_projectinsertspace_name, region, displayNameCreates a project in a specified space.
update_projectupdatespace_name, name, regionChanges one or more values for a project.
delete_projectdeletespace_name, name, regionDeletes a project in a space.
start_dev_environmentexecspace_name, project_name, id, regionStarts a specified Dev Environment and puts it into an active state.
stop_dev_environmentexecspace_name, project_name, id, regionPauses a specified Dev Environment and places it in a non-running state. Stopped Dev Environments do not consume compute minutes.

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
idstringThe system-generated unique ID of the Dev Environment.
namestringThe name of the project in the space. To retrieve a list of project names, use ListProjects.
project_namestringThe name of the project in the space.
regionstringAWS region (default: us-east-1)
space_namestringThe name of the space.

SELECT examples

Returns information about a project.

SELECT
name,
description,
display_name,
space_name
FROM aws.codecatalyst.projects
WHERE space_name = '{{ space_name }}' -- required
AND name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a project in a specified space.

INSERT INTO aws.codecatalyst.projects (
displayName,
description,
space_name,
region
)
SELECT
'{{ displayName }}' /* required */,
'{{ description }}',
'{{ space_name }}',
'{{ region }}'
RETURNING
name,
description,
display_name,
space_name
;

UPDATE examples

Changes one or more values for a project.

UPDATE aws.codecatalyst.projects
SET
description = '{{ description }}'
WHERE
space_name = '{{ space_name }}' --required
AND name = '{{ name }}' --required
AND region = '{{ region }}' --required
RETURNING
name,
description,
display_name,
space_name;

DELETE examples

Deletes a project in a space.

DELETE FROM aws.codecatalyst.projects
WHERE space_name = '{{ space_name }}' --required
AND name = '{{ name }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Starts a specified Dev Environment and puts it into an active state.

EXEC aws.codecatalyst.projects.start_dev_environment
@space_name='{{ space_name }}' --required,
@project_name='{{ project_name }}' --required,
@id='{{ id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"ides": "{{ ides }}",
"instanceType": "{{ instanceType }}",
"inactivityTimeoutMinutes": {{ inactivityTimeoutMinutes }}
}'
;