Skip to main content

workflows

Creates, updates, deletes or gets a workflow resource or lists workflows in a region

Overview

Nameworkflows
TypeResource
DescriptionDefinition of AWS::Omics::Workflow Resource Type
Idawscc.omics.workflows

Fields

NameDatatypeDescription
arnstring
creation_timestring
definition_uristring
descriptionstring
enginestring
idstring
mainstring
namestring
parameter_templateobject
statusstring
acceleratorsstring
storage_capacitynumber
tagsobjectA map of resource tags
typestring
storage_typestring
uuidstring
workflow_bucket_owner_idstringOptional workflow bucket owner ID to verify the workflow bucket
definition_repositoryobject
parameter_template_pathstringPath to the primary workflow parameter template JSON file inside the repository
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.
readme_uristringThe 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_markdownstringThe markdown content for the workflow's README file. This provides documentation and usage information for users of the workflow.
regionstringAWS region.

For more information, see AWS::Omics::Workflow.

Methods

NameResourceAccessible byRequired Params
create_resourceworkflowsINSERTregion
delete_resourceworkflowsDELETEIdentifier, region
update_resourceworkflowsUPDATEIdentifier, PatchDocument, region
list_resourcesworkflows_list_onlySELECTregion
get_resourceworkflowsSELECTIdentifier, 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
Identifier = '{{ id }}';

INSERT example

Use the following StackQL query and manifest file to create a new workflow resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.omics.workflows (
DefinitionUri,
Description,
Engine,
Main,
Name,
ParameterTemplate,
Accelerators,
StorageCapacity,
Tags,
StorageType,
WorkflowBucketOwnerId,
DefinitionRepository,
ParameterTemplatePath,
readmePath,
readmeUri,
readmeMarkdown,
region
)
SELECT
'{{ definition_uri }}',
'{{ description }}',
'{{ engine }}',
'{{ main }}',
'{{ name }}',
'{{ parameter_template }}',
'{{ accelerators }}',
'{{ storage_capacity }}',
'{{ tags }}',
'{{ storage_type }}',
'{{ workflow_bucket_owner_id }}',
'{{ definition_repository }}',
'{{ parameter_template_path }}',
'{{ readme_path }}',
'{{ readme_uri }}',
'{{ readme_markdown }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a workflow resource, using stack-deploy.

/*+ update */
UPDATE awscc.omics.workflows
SET PatchDocument = string('{{ {
"Description": description,
"Name": name,
"Tags": tags,
"StorageType": storage_type,
"readmeMarkdown": readme_markdown
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.omics.workflows
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';

Permissions

To operate on the workflows resource, the following permissions are required:

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