Skip to main content

workflows

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

Overview

Nameworkflows
TypeResource
Idaws.omics.workflows

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe workflow's ID. (pattern: <code>[0-9]+</code>)
namestringThe workflow's name. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
acceleratorsstringThe computational accelerator specified to run the workflow. (GPU)
arnstringThe workflow's ARN. (pattern: <code>arn:.+</code>)
container_registry_mapobjectUse a container registry map to specify mappings between the ECR private repository and one or more upstream registries. For more information, see Container images in the Amazon Web Services HealthOmics User Guide.
creation_timestring (date-time)When the workflow was created.
definitionstringThe workflow's definition. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
definition_repository_detailsobjectDetails about the source code repository that hosts the workflow definition files.
descriptionstringThe workflow's description. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
digeststringThe workflow's digest.
enginestringThe workflow's engine. (WDL, NEXTFLOW, CWL, WDL_LENIENT)
mainstringThe path of the main definition file for the workflow. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
metadataobjectGets metadata for the workflow.
parameter_templateobjectThe workflow's parameter template.
profile_parameter_templatesobjectA mapping of profile names to their parameter templates. Each profile defines its own set of parameters that you can use when starting a run with that profile.
profilesarrayThe list of Nextflow profiles that are available for this workflow. Profiles allow you to select predefined configuration settings at runtime.
readmestringThe README content for the workflow, providing documentation and usage information. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
readme_pathstringThe 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. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
statusstringThe workflow's status. (CREATING, ACTIVE, UPDATING, DELETED, FAILED, INACTIVE)
status_messagestringThe workflow's status message. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
storage_capacityintegerThe default static storage capacity (in gibibytes) for runs that use this workflow or workflow version.
storage_typestringThe default storage type for runs using this workflow. (STATIC, DYNAMIC)
tagsobjectThe workflow's tags.
type_stringThe workflow's type. (PRIVATE, READY2RUN)
uuidstringThe universally unique identifier (UUID) value for this workflow. (pattern: <code>[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workflowselectid, regiontype, export, workflowOwnerIdGets all information about a workflow using its ID. If a workflow is shared with you, you cannot export the workflow. For more information about your workflow status, see Verify the workflow status in the Amazon Web Services HealthOmics User Guide.
list_workflowsselectregiontype, name, startingToken, maxResultsRetrieves a list of existing workflows. You can filter for specific workflows by their name and type. Using the type parameter, specify PRIVATE to retrieve a list of private workflows or specify READY2RUN for a list of all Ready2Run workflows. If you do not specify the type of workflow, this operation returns a list of existing workflows.
create_workflowinsertregion, requestIdCreates a private workflow. Before you create a private workflow, you must create and configure these required resources: Workflow definition file: A workflow definition file written in WDL, Nextflow, or CWL. The workflow definition specifies the inputs and outputs for runs that use the workflow. It also includes specifications for the runs and run tasks for your workflow, including compute and memory requirements. The workflow definition file must be in .zip format. For more information, see Workflow definition files in Amazon Web Services HealthOmics. You can use Amazon Q CLI to build and validate your workflow definition files in WDL, Nextflow, and CWL. For more information, see Example prompts for Amazon Q CLI and the Amazon Web Services HealthOmics Agentic generative AI tutorial on GitHub. (Optional) Parameter template file: A parameter template file written in JSON. Create the file to define the run parameters, or Amazon Web Services HealthOmics generates the parameter template for you. For more information, see Parameter template files for HealthOmics workflows. ECR container images: Create container images for the workflow in a private ECR repository, or synchronize images from a supported upstream registry with your Amazon ECR private repository. (Optional) Sentieon licenses: Request a Sentieon license to use the Sentieon software in private workflows. For more information, see Creating or updating a private workflow in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.
update_workflowupdateid, regionUpdates information about a workflow. You can update the following workflow information: Name Description Default storage type Default storage capacity (with workflow ID) This operation returns a response with no body if the operation is successful. You can check the workflow updates by calling the GetWorkflow API operation. For more information, see Update a private workflow in the Amazon Web Services HealthOmics User Guide.
delete_workflowdeleteid, regionDeletes a workflow by specifying its ID. This operation returns a response with no body if the deletion is successful. To verify that the workflow is deleted: Use ListWorkflows to confirm the workflow no longer appears in the list. Use GetWorkflow 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 workflow's ID.
regionstringAWS region (default: us-east-1)
exportarrayThe export format for the workflow.
maxResultsintegerThe maximum number of workflows to return in one page of results.
namestringFilter the list by workflow name.
startingTokenstringSpecify the pagination token from a previous request to retrieve the next page of results.
typestringFilter the list by workflow type.
workflowOwnerIdstringThe ID of the workflow owner.

SELECT examples

Gets all information about a workflow using its ID. If a workflow is shared with you, you cannot export the workflow. For more information about your workflow status, see Verify the workflow status in the Amazon Web Services HealthOmics User Guide.

SELECT
id,
name,
accelerators,
arn,
container_registry_map,
creation_time,
definition,
definition_repository_details,
description,
digest,
engine,
main,
metadata,
parameter_template,
profile_parameter_templates,
profiles,
readme,
readme_path,
status,
status_message,
storage_capacity,
storage_type,
tags,
type_,
uuid
FROM aws.omics.workflows
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
AND type = '{{ type }}'
AND export = '{{ export }}'
AND workflowOwnerId = '{{ workflowOwnerId }}'
;

INSERT examples

Creates a private workflow. Before you create a private workflow, you must create and configure these required resources: Workflow definition file: A workflow definition file written in WDL, Nextflow, or CWL. The workflow definition specifies the inputs and outputs for runs that use the workflow. It also includes specifications for the runs and run tasks for your workflow, including compute and memory requirements. The workflow definition file must be in .zip format. For more information, see Workflow definition files in Amazon Web Services HealthOmics. You can use Amazon Q CLI to build and validate your workflow definition files in WDL, Nextflow, and CWL. For more information, see Example prompts for Amazon Q CLI and the Amazon Web Services HealthOmics Agentic generative AI tutorial on GitHub. (Optional) Parameter template file: A parameter template file written in JSON. Create the file to define the run parameters, or Amazon Web Services HealthOmics generates the parameter template for you. For more information, see Parameter template files for HealthOmics workflows. ECR container images: Create container images for the workflow in a private ECR repository, or synchronize images from a supported upstream registry with your Amazon ECR private repository. (Optional) Sentieon licenses: Request a Sentieon license to use the Sentieon software in private workflows. For more information, see Creating or updating a private workflow in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.

INSERT INTO aws.omics.workflows (
name,
description,
engine,
definitionZip,
definitionUri,
main,
parameterTemplate,
storageCapacity,
tags,
requestId,
accelerators,
storageType,
containerRegistryMap,
containerRegistryMapUri,
readmeMarkdown,
parameterTemplatePath,
readmePath,
definitionRepository,
workflowBucketOwnerId,
readmeUri,
region
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ engine }}',
'{{ definitionZip }}',
'{{ definitionUri }}',
'{{ main }}',
'{{ parameterTemplate }}',
{{ storageCapacity }},
'{{ tags }}',
'{{ requestId }}' /* required */,
'{{ accelerators }}',
'{{ storageType }}',
'{{ containerRegistryMap }}',
'{{ containerRegistryMapUri }}',
'{{ readmeMarkdown }}',
'{{ parameterTemplatePath }}',
'{{ readmePath }}',
'{{ definitionRepository }}',
'{{ workflowBucketOwnerId }}',
'{{ readmeUri }}',
'{{ region }}'
RETURNING
id,
arn,
status,
tags,
uuid
;

UPDATE examples

Updates information about a workflow. You can update the following workflow information: Name Description Default storage type Default storage capacity (with workflow ID) This operation returns a response with no body if the operation is successful. You can check the workflow updates by calling the GetWorkflow API operation. For more information, see Update a private workflow in the Amazon Web Services HealthOmics User Guide.

UPDATE aws.omics.workflows
SET
name = '{{ name }}',
description = '{{ description }}',
storageType = '{{ storageType }}',
storageCapacity = {{ storageCapacity }},
readmeMarkdown = '{{ readmeMarkdown }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a workflow by specifying its ID. This operation returns a response with no body if the deletion is successful. To verify that the workflow is deleted: Use ListWorkflows to confirm the workflow no longer appears in the list. Use GetWorkflow to verify the workflow cannot be found.

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