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
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:56:07.081Z")
@Stability(Stable)
public class CfnWorkflow
extends CfnResource
implements IInspectable, 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
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnWorkflow
.static interface
Details for a step that performs a file copy.static interface
Details for a step that invokes an AWS Lambda function.static interface
Details for a step that decrypts an encrypted file.static interface
An object that contains the name and file location for a file being deleted by a workflow.static interface
Specifies the Amazon EFS identifier and the path for the file being used.static interface
Specifies the location for the file that's being processed.static interface
Specifies the S3 details for the file being used, such as bucket, ETag, and so forth.static interface
Specifies the details for the Amazon S3 location for an input file to a workflow.static interface
Specifies the key-value pair that are assigned to a file during the execution of a Tagging step.static interface
Details for a step that creates one or more tags.static interface
The basic building block of a workflow.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnWorkflow
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnWorkflow
(software.amazon.jsii.JsiiObjectRef objRef) CfnWorkflow
(software.constructs.Construct scope, String id, CfnWorkflowProps props) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies 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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDescription
(String value) Specifies the text description for the workflow.void
setOnExceptionSteps
(List<Object> value) Specifies the steps (actions) to take if errors are encountered during execution of the workflow.void
setOnExceptionSteps
(IResolvable value) Specifies the steps (actions) to take if errors are encountered during execution of the workflow.void
Specifies the details for the steps that are in the specified workflow.void
setSteps
(IResolvable value) Specifies the details for the steps that are in the specified workflow.void
setTagsRaw
(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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in 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:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getSteps
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. -
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. -
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.
-