Skip to main content

test_grid_projects

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

Overview

Nametest_grid_projects
TypeResource
Idaws.devicefarm.test_grid_projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringA human-readable name for the project.
arnstringThe ARN for the project. (pattern: <code>^arn:aws:devicefarm:.+</code>)
createdstring (date-time)When the project was created.
descriptionstringA human-readable description for the project.
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_test_grid_projectselectregionRetrieves information about a Selenium testing project.
list_test_grid_projectsselectregionGets a list of all Selenium testing projects in your account.
create_test_grid_projectinsertregion, nameCreates a Selenium testing project. Projects are used to track TestGridSession instances.
update_test_grid_projectupdateregion, projectArnChange details of a project.
delete_test_grid_projectdeleteregionDeletes a Selenium testing project and all content generated under it. You cannot delete a project if it has active sessions. You cannot undo this operation.

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

Retrieves information about a Selenium testing project.

SELECT
name,
arn,
created,
description,
vpc_config
FROM aws.devicefarm.test_grid_projects
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a Selenium testing project. Projects are used to track TestGridSession instances.

INSERT INTO aws.devicefarm.test_grid_projects (
name,
description,
vpcConfig,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ vpcConfig }}',
'{{ region }}'
RETURNING
test_grid_project
;

UPDATE examples

Change details of a project.

UPDATE aws.devicefarm.test_grid_projects
SET
projectArn = '{{ projectArn }}',
name = '{{ name }}',
description = '{{ description }}',
vpcConfig = '{{ vpcConfig }}'
WHERE
region = '{{ region }}' --required
AND projectArn = '{{ projectArn }}' --required
RETURNING
test_grid_project;

DELETE examples

Deletes a Selenium testing project and all content generated under it. You cannot delete a project if it has active sessions. You cannot undo this operation.

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