create_workflow_version
async
¶
create_workflow_version(
workflow_id: WorkflowId,
version_name: WorkflowVersionName,
request_id: WorkflowRequestId,
*,
config_overrides: Optional[AsyncOmicsClientConfig] = None,
definition_zip: Optional[bytes] = None,
definition_uri: Optional[WorkflowDefinition] = None,
accelerators: Optional[Accelerators] = None,
description: Optional[WorkflowVersionDescription] = None,
engine: Optional[WorkflowEngine] = None,
main: Optional[WorkflowMain] = None,
parameter_template: Optional[WorkflowParameterTemplate] = None,
storage_type: Optional[StorageType] = None,
storage_capacity: Optional[int] = None,
tags: Optional[TagMap] = None,
workflow_bucket_owner_id: Optional[WorkflowBucketOwnerId] = 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,
readme_uri: Optional[S3UriForObject] = None,
) -> CreateWorkflowVersionResponse
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.
Parameters:
-
workflow_id(WorkflowId) –The ID of the workflow where you are creating the new version. The
workflowIdis not the UUID. -
version_name(WorkflowVersionName) –A name for the workflow version. Provide a version name that is unique for this workflow. You cannot change the name after HealthOmics creates the version.
The version name must start with a letter or number and it can include upper-case and lower-case letters, numbers, hyphens, periods and underscores. The maximum length is 64 characters. You can use a simple naming scheme, such as version1, version2, version3. You can also match your workflow versions with your own internal versioning conventions, such as 2.7.0, 2.7.1, 2.7.2.
-
definition_zip(Optional[bytes], default:None) –A ZIP archive containing the main workflow definition file and dependencies that it imports for this workflow version. 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 this workflow version. The S3 bucket must be in the same region as this workflow version.
-
accelerators(Optional[Accelerators], default:None) –The computational accelerator for this workflow version.
-
description(Optional[WorkflowVersionDescription], default:None) –A description for this workflow version.
-
engine(Optional[WorkflowEngine], default:None) –The workflow engine for this workflow version. This is only required if you have workflow definition files from more than one engine in your zip file. Otherwise, the service can detect the engine automatically from your workflow definition.
-
main(Optional[WorkflowMain], default:None) –The path of the main definition file for this workflow version. 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 this workflow version. 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.
-
request_id(WorkflowRequestId) –An idempotency token to ensure that duplicate workflows are not created when Amazon Web Services HealthOmics submits retry requests.
-
storage_type(Optional[StorageType], default:None) –The default storage type for runs that use this workflow version. The
storageTypecan be overridden at run time.DYNAMICstorage dynamically scales the storage up or down, based on file system utilization. STATIC storage 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. -
storage_capacity(Optional[int], default:None) –The default static storage capacity (in gibibytes) for runs that use this 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 this workflow version. 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.
-
workflow_bucket_owner_id(Optional[WorkflowBucketOwnerId], default:None) –Amazon Web Services Id of the owner of the S3 bucket that contains the workflow definition. You need to specify this parameter if your account is not the bucket owner.
-
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 version's README file. This provides documentation and usage information for users of this specific workflow version.
-
parameter_template_path(Optional[ParameterTemplatePath], default:None) –The path to the workflow version parameter template JSON file within the repository. This file defines the input parameters for runs that use this workflow version. If not specified, the workflow version will be created without a parameter template.
-
readme_path(Optional[ReadmePath], default:None) –The 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.mdfile from the root directory of the repository will be used. -
definition_repository(Optional[DefinitionRepository], default:None) –The repository information for the workflow version definition. This allows you to source your workflow version definition directly from a code repository.
-
readme_uri(Optional[S3UriForObject], default:None) –The S3 URI of the README file for the workflow version. This file provides documentation and usage information for the workflow version. 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/async_omics.py
7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 | |