Class CfnWorkflow
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.transfer.CfnWorkflow
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:35.950Z")
@Stability(Stable)
public class CfnWorkflow
extends CfnResource
implements IInspectable
A CloudFormation
AWS::Transfer::Workflow.
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())
.name("name")
.overwriteExisting("overwriteExisting")
.sourceFileLocation("sourceFileLocation")
.type("type")
.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())
.name("name")
.overwriteExisting("overwriteExisting")
.sourceFileLocation("sourceFileLocation")
.type("type")
.build())
.deleteStepDetails(deleteStepDetails)
.tagStepDetails(tagStepDetails)
.type("type")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnWorkflow(Construct scope, String id, CfnWorkflowProps props) Create a newAWS::Transfer::Workflow.protectedCfnWorkflow(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnWorkflow(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionA 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()Key-value pairs that can be used to group and search for workflows.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.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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.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 Construct scope, @NotNull String id, @NotNull CfnWorkflowProps props) Create a newAWS::Transfer::Workflow.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
-
getAttrWorkflowId
A unique identifier for a workflow. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Key-value pairs that can be used to group and search for workflows.Tags are metadata attached to workflows for any purpose.
-
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.
-