Skip to main content

projects

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

Overview

Nameprojects
TypeResource
Idaws.devicefarm.projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe project's name.
arnstringThe project's ARN. (pattern: <code>^arn:aws:devicefarm:.+</code>)
createdstring (date-time)When the project was created.
default_job_timeout_minutesintegerThe default number of minutes (at the project level) a test run executes before it times out. The default value is 150 minutes.
environment_variablesarrayEnvironment variables associated with the project.
execution_role_arnstringThe IAM execution role associated with the project. (pattern: <code>^arn:aws:iam::[0-9]{12}:role/.+</code>)
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_projectselectregionGets information about a project.
list_projectsselectregionGets information about projects.
create_projectinsertregion, nameCreates a project.
update_projectupdateregion, arnModifies the specified project name, given the project ARN and a new name.
delete_projectdeleteregionDeletes an AWS Device Farm project, given the project ARN. You cannot delete a project if it has an active run or session. You cannot undo this operation.
schedule_runexecregion, projectArn, testSchedules a run.

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

Gets information about a project.

SELECT
name,
arn,
created,
default_job_timeout_minutes,
environment_variables,
execution_role_arn,
vpc_config
FROM aws.devicefarm.projects
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a project.

INSERT INTO aws.devicefarm.projects (
name,
defaultJobTimeoutMinutes,
vpcConfig,
environmentVariables,
executionRoleArn,
region
)
SELECT
'{{ name }}' /* required */,
{{ defaultJobTimeoutMinutes }},
'{{ vpcConfig }}',
'{{ environmentVariables }}',
'{{ executionRoleArn }}',
'{{ region }}'
RETURNING
project
;

UPDATE examples

Modifies the specified project name, given the project ARN and a new name.

UPDATE aws.devicefarm.projects
SET
arn = '{{ arn }}',
name = '{{ name }}',
defaultJobTimeoutMinutes = {{ defaultJobTimeoutMinutes }},
vpcConfig = '{{ vpcConfig }}',
environmentVariables = '{{ environmentVariables }}',
executionRoleArn = '{{ executionRoleArn }}'
WHERE
region = '{{ region }}' --required
AND arn = '{{ arn }}' --required
RETURNING
project;

DELETE examples

Deletes an AWS Device Farm project, given the project ARN. You cannot delete a project if it has an active run or session. You cannot undo this operation.

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

Lifecycle Methods

Schedules a run.

EXEC aws.devicefarm.projects.schedule_run
@region='{{ region }}' --required
@@json=
'{
"projectArn": "{{ projectArn }}",
"appArn": "{{ appArn }}",
"devicePoolArn": "{{ devicePoolArn }}",
"deviceSelectionConfiguration": "{{ deviceSelectionConfiguration }}",
"name": "{{ name }}",
"test": "{{ test }}",
"configuration": "{{ configuration }}",
"executionConfiguration": "{{ executionConfiguration }}"
}'
;