create_workflow_version
¶
create_workflow_version(
workflow_id: WorkflowId,
version_name: WorkflowVersionName,
request_id: WorkflowRequestId,
*,
config_overrides: Optional[OmicsClientConfig] = 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/omics.py
7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 | |