# WorkflowDetailsProperty

Container for the `WorkflowDetail` data type.

It is used by actions that trigger a workflow to begin execution.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_transfer as transfer } from 'aws-cdk-lib';
const workflowDetailsProperty: transfer.CfnServer.WorkflowDetailsProperty = {
  onPartialUpload: [{
    executionRole: 'executionRole',
    workflowId: 'workflowId',
  }],
  onUpload: [{
    executionRole: 'executionRole',
    workflowId: 'workflowId',
  }],
};
```

## Properties

- `onPartialUpload`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnServer.WorkflowDetailProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_transfer.CfnServer.WorkflowDetailProperty.html)[] — A trigger that starts a workflow if a file is only partially uploaded.

  You can attach a workflow to a server that executes whenever there is a partial upload.

  A *partial upload* occurs when a file is open when the session disconnects.

  > `OnPartialUpload` can contain a maximum of one `WorkflowDetail` object.

- `onUpload`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnServer.WorkflowDetailProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_transfer.CfnServer.WorkflowDetailProperty.html)[] — A trigger that starts a workflow: the workflow begins to execute after a file is uploaded.

  To remove an associated workflow from a server, you can provide an empty `OnUpload` object, as in the following example.

  `aws transfer update-server --server-id s-01234567890abcdef --workflow-details '{"OnUpload":[]}'`

  > `OnUpload` can contain a maximum of one `WorkflowDetail` object.
