Skip to main content

run_groups

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

Overview

Namerun_groups
TypeResource
Idaws.omics.run_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe group's ID. (pattern: <code>[0-9]+</code>)
namestringThe group's name. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
arnstringThe group's ARN. (pattern: <code>arn:.+</code>)
creation_timestring (date-time)When the group was created.
max_cpusintegerThe group's maximum number of CPUs to use.
max_durationintegerThe group's maximum run time in minutes.
max_gpusintegerThe maximum GPUs that can be used by a run group.
max_runsintegerThe maximum number of concurrent runs for the group.
tagsobjectThe group's tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_run_groupselectid, regionGets information about a run group and returns its metadata.
list_run_groupsselectregionname, startingToken, maxResultsRetrieves a list of all run groups and returns the metadata for each run group.
create_run_groupinsertregion, requestIdCreates a run group to limit the compute resources for the runs that are added to the group. Returns an ARN, ID, and tags for the run group.
update_run_groupupdateid, regionUpdates the settings of a run group and returns a response with no body if the operation is successful. You can update the following settings with UpdateRunGroup: Maximum number of CPUs Run time (measured in minutes) Number of GPUs Number of concurrent runs Group name To confirm that the settings have been successfully updated, use the ListRunGroups or GetRunGroup API operations to verify that the desired changes have been made.
delete_run_groupdeleteid, regionDeletes a run group and returns a response with no body if the operation is successful. To verify that the run group is deleted: Use ListRunGroups to confirm the workflow no longer appears in the list. Use GetRunGroup to verify the workflow cannot be found.

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 run group's ID.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of run groups to return in one page of results.
namestringThe run groups' name.
startingTokenstringSpecify the pagination token from a previous request to retrieve the next page of results.

SELECT examples

Gets information about a run group and returns its metadata.

SELECT
id,
name,
arn,
creation_time,
max_cpus,
max_duration,
max_gpus,
max_runs,
tags
FROM aws.omics.run_groups
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a run group to limit the compute resources for the runs that are added to the group. Returns an ARN, ID, and tags for the run group.

INSERT INTO aws.omics.run_groups (
name,
maxCpus,
maxRuns,
maxDuration,
tags,
requestId,
maxGpus,
region
)
SELECT
'{{ name }}',
{{ maxCpus }},
{{ maxRuns }},
{{ maxDuration }},
'{{ tags }}',
'{{ requestId }}' /* required */,
{{ maxGpus }},
'{{ region }}'
RETURNING
id,
arn,
tags
;

UPDATE examples

Updates the settings of a run group and returns a response with no body if the operation is successful. You can update the following settings with UpdateRunGroup: Maximum number of CPUs Run time (measured in minutes) Number of GPUs Number of concurrent runs Group name To confirm that the settings have been successfully updated, use the ListRunGroups or GetRunGroup API operations to verify that the desired changes have been made.

UPDATE aws.omics.run_groups
SET
name = '{{ name }}',
maxCpus = {{ maxCpus }},
maxRuns = {{ maxRuns }},
maxDuration = {{ maxDuration }},
maxGpus = {{ maxGpus }}
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a run group and returns a response with no body if the operation is successful. To verify that the run group is deleted: Use ListRunGroups to confirm the workflow no longer appears in the list. Use GetRunGroup to verify the workflow cannot be found.

DELETE FROM aws.omics.run_groups
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;