create_workflow
¶
create_workflow(
request_id: WorkflowRequestId,
*,
config_overrides: Optional[OmicsClientConfig] = None,
name: Optional[WorkflowName] = None,
description: Optional[WorkflowDescription] = None,
engine: Optional[WorkflowEngine] = None,
definition_zip: Optional[bytes] = None,
definition_uri: Optional[WorkflowDefinition] = None,
main: Optional[WorkflowMain] = None,
parameter_template: Optional[WorkflowParameterTemplate] = None,
storage_capacity: Optional[int] = None,
tags: Optional[TagMap] = None,
accelerators: Optional[Accelerators] = None,
storage_type: Optional[StorageType] = None,
container_registry_map: Optional[ContainerRegistryMap] = None,
container_registry_map_uri: Optional[Uri] = None,
readme_markdown: Optional[ReadmeMarkdown] = None,
parameter_template_path: Optional[ParameterTemplatePath] = None,
readme_path: Optional[ReadmePath] = None,
definition_repository: Optional[DefinitionRepository] = None,
workflow_bucket_owner_id: Optional[WorkflowBucketOwnerId] = None,
readme_uri: Optional[S3UriForObject] = None,
) -> CreateWorkflowResponse
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
.zipformat. 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.
Parameters:
-
name(Optional[WorkflowName], default:None) –Name (optional but highly recommended) for the workflow to locate relevant information in the CloudWatch logs and Amazon Web Services HealthOmics console.
-
description(Optional[WorkflowDescription], default:None) –A description for the workflow.
-
engine(Optional[WorkflowEngine], default:None) –The workflow engine for the workflow. By default, Amazon Web Services HealthOmics detects the engine automatically from your workflow definition. Provide a value if you have workflow definition files from more than one engine in your zip file, or to use WDL lenient.
WDL lenient is designed to handle workflows migrated from Cromwell. It supports customer Cromwell directives and some non-conformant logic. For details, see Implicit type conversion in WDL lenient in the Amazon Web Services HealthOmics User Guide.
-
definition_zip(Optional[bytes], default:None) –A ZIP archive containing the main workflow definition file and dependencies that it imports for the workflow. You can use a file with a ://fileb prefix instead of the Base64 string. For more information, see Workflow definition requirements in the Amazon Web Services HealthOmics User Guide.
-
definition_uri(Optional[WorkflowDefinition], default:None) –The S3 URI of a definition for the workflow. The S3 bucket must be in the same region as the workflow.
-
main(Optional[WorkflowMain], default:None) –The path of the main definition file for the workflow. This parameter is not required if the ZIP archive contains only one workflow definition file, or if the main definition file is named “main”. An example path is:
workflow-definition/main-file.wdl. -
parameter_template(Optional[WorkflowParameterTemplate], default:None) –A parameter template for the workflow. If this field is blank, Amazon Web Services HealthOmics will automatically parse the parameter template values from your workflow definition file. To override these service generated default values, provide a parameter template. To view an example of a parameter template, see Parameter template files in the Amazon Web Services HealthOmics User Guide.
-
storage_capacity(Optional[int], default:None) –The default static storage capacity (in gibibytes) for runs that use this workflow or workflow version. The
storageCapacitycan be overwritten at run time. The storage capacity is not required for runs with aDYNAMICstorage type. -
tags(Optional[TagMap], default:None) –Tags for the workflow. You can define up to 50 tags for the workflow. For more information, see Adding a tag in the Amazon Web Services HealthOmics User Guide.
-
request_id(WorkflowRequestId) –An idempotency token to ensure that duplicate workflows are not created when Amazon Web Services HealthOmics submits retry requests.
-
accelerators(Optional[Accelerators], default:None) –The computational accelerator specified to run the workflow.
-
storage_type(Optional[StorageType], default:None) –The default storage type for runs that use this workflow. The
storageTypecan be overridden at run time.DYNAMICstorage dynamically scales the storage up or down, based on file system utilization.STATICstorage allocates a fixed amount of storage. For more information about dynamic and static storage types, see Run storage types in the Amazon Web Services HealthOmics User Guide. -
container_registry_map(Optional[ContainerRegistryMap], default:None) –(Optional) Use 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.
-
container_registry_map_uri(Optional[Uri], default:None) –(Optional) URI of the S3 location for the registry mapping file.
-
readme_markdown(Optional[ReadmeMarkdown], default:None) –The markdown content for the workflow's README file. This provides documentation and usage information for users of the workflow.
-
parameter_template_path(Optional[ParameterTemplatePath], default:None) –The path to the workflow parameter template JSON file within the repository. This file defines the input parameters for runs that use this workflow. If not specified, the workflow will be created without a parameter template.
-
readme_path(Optional[ReadmePath], default:None) –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.mdfile from the root directory of the repository will be used. -
definition_repository(Optional[DefinitionRepository], default:None) –The repository information for the workflow definition. This allows you to source your workflow definition directly from a code repository.
-
workflow_bucket_owner_id(Optional[WorkflowBucketOwnerId], default:None) –The Amazon Web Services account ID of the expected owner of the S3 bucket that contains the workflow definition. If not specified, the service skips the validation.
-
readme_uri(Optional[S3UriForObject], default:None) –The S3 URI of the README file for the workflow. This file provides documentation and usage information for the workflow. Requirements include:
-
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.
-
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request cannot be applied to the target resource in its current state.
-
InternalServerException–An unexpected error occurred. Try the request again.
-
RequestTimeoutException–The request timed out.
-
ResourceNotFoundException–The target resource was not found in the current Region.
-
ServiceQuotaExceededException–The request exceeds a service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_omics/_services/omics.py
6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 | |