workflows
Creates, updates, deletes or gets a workflow resource or lists workflows in a region
Overview
| Name | workflows |
| Type | Resource |
| Description | Definition of AWS::Omics::Workflow Resource Type |
| Id | awscc.omics.workflows |
Fields
| Name | Datatype | Description |
|---|---|---|
arn | string | |
creation_time | string | |
definition_uri | string | |
description | string | |
engine | string | |
id | string | |
main | string | |
name | string | |
parameter_template | object | |
status | string | |
accelerators | string | |
storage_capacity | number | |
tags | object | A map of resource tags |
type | string | |
storage_type | string | |
uuid | string | |
workflow_bucket_owner_id | string | Optional workflow bucket owner ID to verify the workflow bucket |
definition_repository | object | |
parameter_template_path | string | Path to the primary workflow parameter template JSON file inside the repository |
readme_path | string | The path to the workflow README markdown file within the repository. This file provides documentation and usage information for the workflow. If not specified, the README.md file from the root directory of the repository will be used. |
readme_uri | string | The S3 URI of the README file for the workflow. This file provides documentation and usage information for the workflow. The S3 URI must begin with s3://USER-OWNED-BUCKET/. The requester must have access to the S3 bucket and object. The max README content length is 500 KiB. |
readme_markdown | string | The markdown content for the workflow's README file. This provides documentation and usage information for users of the workflow. |
region | string | AWS region. |
For more information, see AWS::Omics::Workflow.
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 properties from an individual workflow.
SELECT
region,
arn,
creation_time,
definition_uri,
description,
engine,
id,
main,
name,
parameter_template,
status,
accelerators,
storage_capacity,
tags,
type,
storage_type,
uuid,
workflow_bucket_owner_id,
definition_repository,
parameter_template_path,
readme_path,
readme_uri,
readme_markdown
FROM awscc.omics.workflows
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';
INSERT example
Use the following StackQL query and manifest file to create a new workflow resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.omics.workflows (
DefinitionUri,
Description,
Engine,
Main,
Name,
ParameterTemplate,
Accelerators,
StorageCapacity,
Tags,
StorageType,
WorkflowBucketOwnerId,
DefinitionRepository,
ParameterTemplatePath,
readmePath,
readmeUri,
readmeMarkdown,
region
)
SELECT
'{{ DefinitionUri }}',
'{{ Description }}',
'{{ Engine }}',
'{{ Main }}',
'{{ Name }}',
'{{ ParameterTemplate }}',
'{{ Accelerators }}',
'{{ StorageCapacity }}',
'{{ Tags }}',
'{{ StorageType }}',
'{{ WorkflowBucketOwnerId }}',
'{{ DefinitionRepository }}',
'{{ ParameterTemplatePath }}',
'{{ readmePath }}',
'{{ readmeUri }}',
'{{ readmeMarkdown }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.omics.workflows (
DefinitionUri,
Description,
Engine,
Main,
Name,
ParameterTemplate,
Accelerators,
StorageCapacity,
Tags,
StorageType,
WorkflowBucketOwnerId,
DefinitionRepository,
ParameterTemplatePath,
readmePath,
readmeUri,
readmeMarkdown,
region
)
SELECT
'{{ DefinitionUri }}',
'{{ Description }}',
'{{ Engine }}',
'{{ Main }}',
'{{ Name }}',
'{{ ParameterTemplate }}',
'{{ Accelerators }}',
'{{ StorageCapacity }}',
'{{ Tags }}',
'{{ StorageType }}',
'{{ WorkflowBucketOwnerId }}',
'{{ DefinitionRepository }}',
'{{ ParameterTemplatePath }}',
'{{ readmePath }}',
'{{ readmeUri }}',
'{{ readmeMarkdown }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: workflow
props:
- name: DefinitionUri
value: '{{ DefinitionUri }}'
- name: Description
value: '{{ Description }}'
- name: Engine
value: '{{ Engine }}'
- name: Main
value: '{{ Main }}'
- name: Name
value: '{{ Name }}'
- name: ParameterTemplate
value: {}
- name: Accelerators
value: '{{ Accelerators }}'
- name: StorageCapacity
value: null
- name: Tags
value: {}
- name: StorageType
value: '{{ StorageType }}'
- name: WorkflowBucketOwnerId
value: '{{ WorkflowBucketOwnerId }}'
- name: DefinitionRepository
value:
connectionArn: '{{ connectionArn }}'
fullRepositoryId: '{{ fullRepositoryId }}'
sourceReference:
type: '{{ type }}'
value: '{{ value }}'
excludeFilePatterns:
- '{{ excludeFilePatterns[0] }}'
- name: ParameterTemplatePath
value: '{{ ParameterTemplatePath }}'
- name: readmePath
value: '{{ readmePath }}'
- name: readmeUri
value: '{{ readmeUri }}'
- name: readmeMarkdown
value: '{{ readmeMarkdown }}'
DELETE example
/*+ delete */
DELETE FROM awscc.omics.workflows
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';
Permissions
To operate on the workflows resource, the following permissions are required:
Create
omics:CreateWorkflow,
omics:GetWorkflow,
omics:TagResource,
s3:PutObject,
s3:GetObject,
s3:GetObjectAttributes,
s3:HeadObject,
s3:GetEncryptionConfiguration,
kms:Decrypt,
kms:GenerateDataKey,
kms:GenerateDataKeyPair,
kms:GenerateDataKeyPairWithoutPlaintext,
kms:GenerateDataKeyWithoutPlaintext,
codeconnections:UseConnection,
codeconnections:GetConnection,
codeconnections:GetHost
Read
omics:GetWorkflow
Update
omics:UpdateWorkflow,
omics:GetWorkflow,
omics:TagResource,
omics:ListTagsForResource,
omics:UntagResource
Delete
omics:DeleteWorkflow,
omics:GetWorkflow
List
omics:ListWorkflows