# TaskProperty

A class for modeling different type of tasks.

Task implementation varies based on the `TaskType` .

- Source: Generated code
- 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_appflow as appflow } from 'aws-cdk-lib';
const taskProperty: appflow.CfnFlow.TaskProperty = {
  sourceFields: ['sourceFields'],
  taskType: 'taskType',

  // the properties below are optional
  connectorOperator: {
    amplitude: 'amplitude',
    customConnector: 'customConnector',
    datadog: 'datadog',
    dynatrace: 'dynatrace',
    googleAnalytics: 'googleAnalytics',
    inforNexus: 'inforNexus',
    marketo: 'marketo',
    pardot: 'pardot',
    s3: 's3',
    salesforce: 'salesforce',
    sapoData: 'sapoData',
    serviceNow: 'serviceNow',
    singular: 'singular',
    slack: 'slack',
    trendmicro: 'trendmicro',
    veeva: 'veeva',
    zendesk: 'zendesk',
  },
  destinationField: 'destinationField',
  taskProperties: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `connectorOperator`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.ConnectorOperatorProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnFlow.ConnectorOperatorProperty.html) — The operation to be performed on the provided source fields.

- `destinationField`: string — A field in a destination connector, or a field value against which Amazon AppFlow validates a source field.

- `sourceFields`: string[] (required) — The source fields to which a particular task is applied.

- `taskProperties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.TaskPropertiesObjectProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_appflow.CfnFlow.TaskPropertiesObjectProperty.html)[] — A map used to store task-related information.

  The execution service looks for particular information based on the `TaskType` .

- `taskType`: string (required) — Specifies the particular task implementation that Amazon AppFlow performs.

  *Allowed values* : `Arithmetic` | `Filter` | `Map` | `Map_all` | `Mask` | `Merge` | `Truncate` | `Validate`
