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.transfer.CfnWorkflow
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IWorkflowRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:31.650Z")
@Stability(Stable)
public class CfnWorkflow
extends CfnResource
implements IInspectable, IWorkflowRef, ITaggable
Allows you to create a workflow with specified steps and step details the workflow invokes after file transfer completes.
After creating a workflow, you can associate the workflow created with any transfer servers by specifying the workflow-details field in CreateServer and UpdateServer operations.
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.transfer.*;
Object copyStepDetails;
Object customStepDetails;
Object deleteStepDetails;
Object tagStepDetails;
CfnWorkflow cfnWorkflow = CfnWorkflow.Builder.create(this, "MyCfnWorkflow")
.steps(List.of(WorkflowStepProperty.builder()
.copyStepDetails(copyStepDetails)
.customStepDetails(customStepDetails)
.decryptStepDetails(DecryptStepDetailsProperty.builder()
.destinationFileLocation(InputFileLocationProperty.builder()
.efsFileLocation(EfsInputFileLocationProperty.builder()
.fileSystemId("fileSystemId")
.path("path")
.build())
.s3FileLocation(S3InputFileLocationProperty.builder()
.bucket("bucket")
.key("key")
.build())
.build())
.type("type")
// the properties below are optional
.name("name")
.overwriteExisting("overwriteExisting")
.sourceFileLocation("sourceFileLocation")
.build())
.deleteStepDetails(deleteStepDetails)
.tagStepDetails(tagStepDetails)
.type("type")
.build()))
// the properties below are optional
.description("description")
.onExceptionSteps(List.of(WorkflowStepProperty.builder()
.copyStepDetails(copyStepDetails)
.customStepDetails(customStepDetails)
.decryptStepDetails(DecryptStepDetailsProperty.builder()
.destinationFileLocation(InputFileLocationProperty.builder()
.efsFileLocation(EfsInputFileLocationProperty.builder()
.fileSystemId("fileSystemId")
.path("path")
.build())
.s3FileLocation(S3InputFileLocationProperty.builder()
.bucket("bucket")
.key("key")
.build())
.build())
.type("type")
// the properties below are optional
.name("name")
.overwriteExisting("overwriteExisting")
.sourceFileLocation("sourceFileLocation")
.build())
.deleteStepDetails(deleteStepDetails)
.tagStepDetails(tagStepDetails)
.type("type")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnWorkflow.static interfaceDetails for a step that performs a file copy.static interfaceDetails for a step that invokes an AWS Lambda function.static interfaceDetails for a step that decrypts an encrypted file.static interfaceAn object that contains the name and file location for a file being deleted by a workflow.static interfaceSpecifies the Amazon EFS identifier and the path for the file being used.static interfaceSpecifies the location for the file that's being processed.static interfaceSpecifies the S3 details for the file being used, such as bucket, ETag, and so forth.static interfaceSpecifies the details for the Amazon S3 location for an input file to a workflow.static interfaceSpecifies the key-value pair that are assigned to a file during the execution of a Tagging step.static interfaceDetails for a step that creates one or more tags.static interfaceThe basic building block of a workflow.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.interfaces.transfer.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, CfnWorkflowProps props) Create a newAWS::Transfer::Workflow. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForWorkflow(IWorkflowRef resource) static IWorkflowReffromWorkflowArn(software.constructs.Construct scope, String id, String arn) Creates a new IWorkflowRef from an ARN.static IWorkflowReffromWorkflowId(software.constructs.Construct scope, String id, String workflowId) Creates a new IWorkflowRef from a workflowId.Specifies the unique Amazon Resource Name (ARN) for the workflow.A unique identifier for a workflow.Specifies the text description for the workflow.Specifies the steps (actions) to take if errors are encountered during execution of the workflow.getSteps()Specifies the details for the steps that are in the specified workflow.getTags()Tag Manager which manages the tags for this resource.Key-value pairs that can be used to group and search for workflows.A reference to a Workflow resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDescription(String value) Specifies the text description for the workflow.voidsetOnExceptionSteps(List<Object> value) Specifies the steps (actions) to take if errors are encountered during execution of the workflow.voidsetOnExceptionSteps(IResolvable value) Specifies the steps (actions) to take if errors are encountered during execution of the workflow.voidSpecifies the details for the steps that are in the specified workflow.voidsetSteps(IResolvable value) Specifies the details for the steps that are in the specified workflow.voidsetTagsRaw(List<CfnTag> value) Key-value pairs that can be used to group and search for workflows.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, 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.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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, @NotNull CfnWorkflowProps props) Create a newAWS::Transfer::Workflow.- 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. This parameter is required.
-
-
Method Details
-
arnForWorkflow
- Parameters:
resource- This parameter is required.
-
fromWorkflowArn
@Stability(Stable) @NotNull public static IWorkflowRef fromWorkflowArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IWorkflowRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromWorkflowId
@Stability(Stable) @NotNull public static IWorkflowRef fromWorkflowId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String workflowId) Creates a new IWorkflowRef from a workflowId.- Parameters:
scope- This parameter is required.id- This parameter is required.workflowId- This parameter is required.
-
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
Specifies the unique Amazon Resource Name (ARN) for the workflow. -
getAttrWorkflowId
A unique identifier for a workflow. -
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
-
getSteps
Specifies the details for the steps that are in the specified workflow.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnWorkflow.WorkflowStepProperty> -
setSteps
Specifies the details for the steps that are in the specified workflow. -
setSteps
Specifies the details for the steps that are in the specified workflow. -
getDescription
Specifies the text description for the workflow. -
setDescription
Specifies the text description for the workflow. -
getOnExceptionSteps
Specifies the steps (actions) to take if errors are encountered during execution of the workflow.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnWorkflow.WorkflowStepProperty> -
setOnExceptionSteps
Specifies the steps (actions) to take if errors are encountered during execution of the workflow. -
setOnExceptionSteps
Specifies the steps (actions) to take if errors are encountered during execution of the workflow. -
getTagsRaw
Key-value pairs that can be used to group and search for workflows. -
setTagsRaw
Key-value pairs that can be used to group and search for workflows.
-