Skip to main content

workflow_versions

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

Overview

Nameworkflow_versions
TypeResource
Idaws.omics.workflow_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
acceleratorsstringThe accelerator for this workflow version. (GPU)
arnstringARN of the workflow version. (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 version was created.
definitionstringDefinition of the workflow version. (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 version definition files.
descriptionstringDescription of the workflow version. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
digeststringThe workflow version's digest.
enginestringThe workflow engine for this workflow version. (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>)
metadataobjectThe metadata for the workflow version.
parameter_templateobjectThe parameter template for the workflow version.
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 version. Profiles allow you to select predefined configuration settings at runtime.
readmestringThe README content for the workflow version, providing documentation and usage information specific to this version. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
readme_pathstringThe path to the workflow version 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 version status (CREATING, ACTIVE, UPDATING, DELETED, FAILED, INACTIVE)
status_messagestringThe workflow version status message (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
storage_capacityintegerThe default run storage capacity for static storage.
storage_typestringThe default storage type for the run. (STATIC, DYNAMIC)
tagsobjectThe workflow version tags
type_stringThe workflow version type (PRIVATE, READY2RUN)
uuidstringThe universally unique identifier (UUID) value for this workflow version (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>)
version_namestringThe workflow version name. (pattern: <code>[A-Za-z0-9][A-Za-z0-9-._]*</code>)
workflow_bucket_owner_idstringAmazon Web Services Id of the owner of the bucket. (pattern: <code>[0-9]{12}</code>)
workflow_idstringThe workflow's ID. (pattern: <code>[0-9]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_workflow_versionselectworkflow_id, version_name, regiontype, export, workflowOwnerIdGets information about a workflow version. For more information, see Workflow versioning in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.
list_workflow_versionsselectworkflow_id, regiontype, workflowOwnerId, startingToken, maxResultsLists the workflow versions for the specified workflow. For more information, see Workflow versioning in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.
create_workflow_versioninsertworkflow_id, region, versionName, requestIdCreates a new workflow version for the workflow that you specify with the workflowId parameter. When you create a new version of a workflow, you need to specify the configuration for the new version. It doesn't inherit any configuration values from the workflow. Provide a version name that is unique for this workflow. You cannot change the name after HealthOmics creates the version. Don't include any personally identifiable information (PII) in the version name. Version names appear in the workflow version ARN. For more information, see Workflow versioning in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.
update_workflow_versionupdateworkflow_id, version_name, regionUpdates information about the workflow version. For more information, see Workflow versioning in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.
delete_workflow_versiondeleteworkflow_id, version_name, regionDeletes a workflow version. Deleting a workflow version doesn't affect any ongoing runs that are using the workflow version. For more information, see Workflow versioning in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.

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)
version_namestringThe workflow version name.
workflow_idstringThe workflow's ID.
exportarrayThe export format for the workflow.
maxResultsintegerThe maximum number of workflows to return in one page of results.
startingTokenstringSpecify the pagination token from a previous request to retrieve the next page of results.
typestringThe workflow type.
workflowOwnerIdstringThe 12-digit account ID of the workflow owner. The workflow owner ID can be retrieved using the GetShare API operation. If you are the workflow owner, you do not need to include this ID.

SELECT examples

Gets information about a workflow version. For more information, see Workflow versioning in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.

SELECT
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,
version_name,
workflow_bucket_owner_id,
workflow_id
FROM aws.omics.workflow_versions
WHERE workflow_id = '{{ workflow_id }}' -- required
AND version_name = '{{ version_name }}' -- required
AND region = '{{ region }}' -- required
AND type = '{{ type }}'
AND export = '{{ export }}'
AND workflowOwnerId = '{{ workflowOwnerId }}'
;

INSERT examples

Creates a new workflow version for the workflow that you specify with the workflowId parameter. When you create a new version of a workflow, you need to specify the configuration for the new version. It doesn't inherit any configuration values from the workflow. Provide a version name that is unique for this workflow. You cannot change the name after HealthOmics creates the version. Don't include any personally identifiable information (PII) in the version name. Version names appear in the workflow version ARN. For more information, see Workflow versioning in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.

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

UPDATE examples

Updates information about the workflow version. For more information, see Workflow versioning in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.

UPDATE aws.omics.workflow_versions
SET
description = '{{ description }}',
storageType = '{{ storageType }}',
storageCapacity = {{ storageCapacity }},
readmeMarkdown = '{{ readmeMarkdown }}'
WHERE
workflow_id = '{{ workflow_id }}' --required
AND version_name = '{{ version_name }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a workflow version. Deleting a workflow version doesn't affect any ongoing runs that are using the workflow version. For more information, see Workflow versioning in Amazon Web Services HealthOmics in the Amazon Web Services HealthOmics User Guide.

DELETE FROM aws.omics.workflow_versions
WHERE workflow_id = '{{ workflow_id }}' --required
AND version_name = '{{ version_name }}' --required
AND region = '{{ region }}' --required
;