Class CfnWorkflow
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.omics.CfnWorkflow
- All Implemented Interfaces:
IInspectable,ITaggable,IWorkflowRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:44.208Z")
@Stability(Stable)
public class CfnWorkflow
extends CfnResource
implements IInspectable, IWorkflowRef, ITaggable
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 AWS 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 AWS 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 AWS 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 AWS HealthOmics in the AWS HealthOmics User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.omics.*;
CfnWorkflow cfnWorkflow = CfnWorkflow.Builder.create(this, "MyCfnWorkflow")
.accelerators("accelerators")
.containerRegistryMap(ContainerRegistryMapProperty.builder()
.imageMappings(List.of(ImageMappingProperty.builder()
.destinationImage("destinationImage")
.sourceImage("sourceImage")
.build()))
.registryMappings(List.of(RegistryMappingProperty.builder()
.ecrAccountId("ecrAccountId")
.ecrRepositoryPrefix("ecrRepositoryPrefix")
.upstreamRegistryUrl("upstreamRegistryUrl")
.upstreamRepositoryPrefix("upstreamRepositoryPrefix")
.build()))
.build())
.containerRegistryMapUri("containerRegistryMapUri")
.definitionRepository(DefinitionRepositoryProperty.builder()
.connectionArn("connectionArn")
.excludeFilePatterns(List.of("excludeFilePatterns"))
.fullRepositoryId("fullRepositoryId")
.sourceReference(SourceReferenceProperty.builder()
.type("type")
.value("value")
.build())
.build())
.definitionUri("definitionUri")
.description("description")
.engine("engine")
.main("main")
.name("name")
.parameterTemplate(Map.of(
"parameterTemplateKey", WorkflowParameterProperty.builder()
.description("description")
.optional(false)
.build()))
.parameterTemplatePath("parameterTemplatePath")
.readmeMarkdown("readmeMarkdown")
.readmePath("readmePath")
.readmeUri("readmeUri")
.storageCapacity(123)
.storageType("storageType")
.tags(Map.of(
"tagsKey", "tags"))
.workflowBucketOwnerId("workflowBucketOwnerId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnWorkflow.static interfaceUse a container registry map to specify mappings between the ECR private repository and one or more upstream registries.static interfaceContains information about a source code repository that hosts the workflow definition files.static interfaceSpecifies image mappings that workflow tasks can use.static interfaceIf you are using the ECR pull through cache feature, the registry mapping maps between the ECR repository and the upstream registry where container images are pulled and synchronized.static interfaceContains information about the source reference in a code repository, such as a branch, tag, or commit.static interfaceA workflow parameter.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.omics.IWorkflowRef
IWorkflowRef.Jsii$Default, IWorkflowRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnWorkflow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorkflow(software.amazon.jsii.JsiiObjectRef objRef) CfnWorkflow(software.constructs.Construct scope, String id) CfnWorkflow(software.constructs.Construct scope, String id, CfnWorkflowProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN for the workflow.When the workflow was created.The workflow's ID.The workflow's status.The workflow's type.Use a container registry map to specify mappings between the ECR private repository and one or more upstream registries.Contains information about a source code repository that hosts the workflow definition files.The URI of a definition for the workflow.The parameter's description.An engine for the workflow.getMain()The path of the main definition file for the workflow.getName()The workflow's name.The workflow's parameter template.Path to the primary workflow parameter template JSON file inside the repository.The markdown content for the workflow's README file.The path to the workflow README markdown file within the repository.The S3 URI of the README file for the workflow.The default static storage capacity (in gibibytes) for runs that use this workflow or workflow version.getTags()Tag Manager which manages the tags for this resource.Tags for the workflow.Optional workflow bucket owner ID to verify the workflow bucket.A reference to a Workflow resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccelerators(String value) voidUse a container registry map to specify mappings between the ECR private repository and one or more upstream registries.voidUse a container registry map to specify mappings between the ECR private repository and one or more upstream registries.voidsetContainerRegistryMapUri(String value) voidContains information about a source code repository that hosts the workflow definition files.voidContains information about a source code repository that hosts the workflow definition files.voidsetDefinitionUri(String value) The URI of a definition for the workflow.voidsetDescription(String value) The parameter's description.voidAn engine for the workflow.voidThe path of the main definition file for the workflow.voidThe workflow's name.voidsetParameterTemplate(Map<String, Object> value) The workflow's parameter template.voidsetParameterTemplate(IResolvable value) The workflow's parameter template.voidsetParameterTemplatePath(String value) Path to the primary workflow parameter template JSON file inside the repository.voidsetReadmeMarkdown(String value) The markdown content for the workflow's README file.voidsetReadmePath(String value) The path to the workflow README markdown file within the repository.voidsetReadmeUri(String value) The S3 URI of the README file for the workflow.voidsetStorageCapacity(Number value) The default static storage capacity (in gibibytes) for runs that use this workflow or workflow version.voidsetStorageType(String value) voidsetTagsRaw(Map<String, String> value) Tags for the workflow.voidsetWorkflowBucketOwnerId(String value) Optional workflow bucket owner ID to verify the workflow bucket.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnWorkflow
protected CfnWorkflow(software.amazon.jsii.JsiiObjectRef objRef) -
CfnWorkflow
protected CfnWorkflow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnWorkflow
@Stability(Stable) public CfnWorkflow(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnWorkflowProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties.
-
CfnWorkflow
@Stability(Stable) public CfnWorkflow(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The ARN for the workflow. -
getAttrCreationTime
When the workflow was created. -
getAttrId
The workflow's ID. -
getAttrStatus
The workflow's status. -
getAttrType
The workflow's type. -
getAttrUuid
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getWorkflowRef
A reference to a Workflow resource.- Specified by:
getWorkflowRefin interfaceIWorkflowRef
-
getAccelerators
-
setAccelerators
-
getContainerRegistryMap
Use a container registry map to specify mappings between the ECR private repository and one or more upstream registries.Returns union: either
IResolvableorCfnWorkflow.ContainerRegistryMapProperty -
setContainerRegistryMap
Use a container registry map to specify mappings between the ECR private repository and one or more upstream registries. -
setContainerRegistryMap
@Stability(Stable) public void setContainerRegistryMap(@Nullable CfnWorkflow.ContainerRegistryMapProperty value) Use a container registry map to specify mappings between the ECR private repository and one or more upstream registries. -
getContainerRegistryMapUri
-
setContainerRegistryMapUri
-
getDefinitionRepository
Contains information about a source code repository that hosts the workflow definition files.Returns union: either
IResolvableorCfnWorkflow.DefinitionRepositoryProperty -
setDefinitionRepository
Contains information about a source code repository that hosts the workflow definition files. -
setDefinitionRepository
@Stability(Stable) public void setDefinitionRepository(@Nullable CfnWorkflow.DefinitionRepositoryProperty value) Contains information about a source code repository that hosts the workflow definition files. -
getDefinitionUri
The URI of a definition for the workflow. -
setDefinitionUri
The URI of a definition for the workflow. -
getDescription
The parameter's description. -
setDescription
The parameter's description. -
getEngine
An engine for the workflow. -
setEngine
An engine for the workflow. -
getMain
The path of the main definition file for the workflow. -
setMain
The path of the main definition file for the workflow. -
getName
The workflow's name. -
setName
The workflow's name. -
getParameterTemplate
The workflow's parameter template.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnWorkflow.WorkflowParameterProperty> -
setParameterTemplate
The workflow's parameter template. -
setParameterTemplate
The workflow's parameter template. -
getParameterTemplatePath
Path to the primary workflow parameter template JSON file inside the repository. -
setParameterTemplatePath
Path to the primary workflow parameter template JSON file inside the repository. -
getReadmeMarkdown
The markdown content for the workflow's README file. -
setReadmeMarkdown
The markdown content for the workflow's README file. -
getReadmePath
The path to the workflow README markdown file within the repository. -
setReadmePath
The path to the workflow README markdown file within the repository. -
getReadmeUri
The S3 URI of the README file for the workflow. -
setReadmeUri
The S3 URI of the README file for the workflow. -
getStorageCapacity
The default static storage capacity (in gibibytes) for runs that use this workflow or workflow version. -
setStorageCapacity
The default static storage capacity (in gibibytes) for runs that use this workflow or workflow version. -
getStorageType
-
setStorageType
-
getTagsRaw
Tags for the workflow. -
setTagsRaw
Tags for the workflow. -
getWorkflowBucketOwnerId
Optional workflow bucket owner ID to verify the workflow bucket. -
setWorkflowBucketOwnerId
Optional workflow bucket owner ID to verify the workflow bucket.
-