run_groups
Creates, updates, deletes or gets a run_group
resource or lists run_groups
in a region
Overview
Name | run_groups |
Type | Resource |
Description | Definition of AWS::Omics::RunGroup Resource Type |
Id | aws.omics.run_groups |
Fields
Name | Datatype | Description |
---|---|---|
arn | string | |
creation_time | string | |
id | string | |
max_cpus | number | |
max_gpus | number | |
max_duration | number | |
max_runs | number | |
name | string | |
tags | object | A map of resource tags |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all run_groups
in a region.
SELECT
region,
arn,
creation_time,
id,
max_cpus,
max_gpus,
max_duration,
max_runs,
name,
tags
FROM aws.omics.run_groups
WHERE region = 'us-east-1';
Gets all properties from an individual run_group
.
SELECT
region,
arn,
creation_time,
id,
max_cpus,
max_gpus,
max_duration,
max_runs,
name,
tags
FROM aws.omics.run_groups
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
INSERT
example
Use the following StackQL query and manifest file to create a new run_group
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.omics.run_groups (
MaxCpus,
MaxGpus,
MaxDuration,
MaxRuns,
Name,
Tags,
region
)
SELECT
'{{ MaxCpus }}',
'{{ MaxGpus }}',
'{{ MaxDuration }}',
'{{ MaxRuns }}',
'{{ Name }}',
'{{ Tags }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.omics.run_groups (
MaxCpus,
MaxGpus,
MaxDuration,
MaxRuns,
Name,
Tags,
region
)
SELECT
'{{ MaxCpus }}',
'{{ MaxGpus }}',
'{{ MaxDuration }}',
'{{ MaxRuns }}',
'{{ Name }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: run_group
props:
- name: MaxCpus
value: null
- name: MaxGpus
value: null
- name: MaxDuration
value: null
- name: MaxRuns
value: null
- name: Name
value: '{{ Name }}'
- name: Tags
value: {}
DELETE
example
/*+ delete */
DELETE FROM aws.omics.run_groups
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the run_groups
resource, the following permissions are required:
Create
omics:CreateRunGroup,
omics:TagResource
Read
omics:GetRunGroup
Update
omics:UpdateRunGroup,
omics:TagResource,
omics:GetRunGroup,
omics:ListTagsForResource,
omics:UntagResource
Delete
omics:DeleteRunGroup,
omics:GetRunGroup
List
omics:ListRunGroups