# WorkflowDetailProperty

Specifies the workflow ID for the workflow to assign and the execution role that's used for executing the workflow.

In addition to a workflow to execute when a file is uploaded completely, `WorkflowDetails` can also contain a workflow ID (and execution role) for a workflow to execute on partial upload. A partial upload occurs when a file is open when the session disconnects.

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

## Example

TypeScript:

```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 workflowDetailProperty: transfer.CfnServer.WorkflowDetailProperty = {
  executionRole: 'executionRole',
  workflowId: 'workflowId',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_transfer as transfer

workflow_detail_property = transfer.CfnServer.WorkflowDetailProperty(
    execution_role="executionRole",
    workflow_id="workflowId"
)
```

Java:

```java
// 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.*;

WorkflowDetailProperty workflowDetailProperty = WorkflowDetailProperty.builder()
        .executionRole("executionRole")
        .workflowId("workflowId")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Transfer;

var workflowDetailProperty = new WorkflowDetailProperty {
    ExecutionRole = "executionRole",
    WorkflowId = "workflowId"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

workflowDetailProperty := &WorkflowDetailProperty{
	ExecutionRole: jsii.String("executionRole"),
	WorkflowId: jsii.String("workflowId"),
}
```

## Properties

- `executionRole`: string (required) — Includes the necessary permissions for S3, EFS, and Lambda operations that Transfer can assume, so that all workflow steps can operate on the required resources.

- `workflowId`: string (required) — A unique identifier for the workflow.
