# TaskProperty

The `Task` property type specifies the class for modeling different type of tasks.

Task implementation varies based on the TaskType.

- 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_customerprofiles as customerprofiles } from 'aws-cdk-lib';
const taskProperty: customerprofiles.CfnIntegration.TaskProperty = {
  sourceFields: ['sourceFields'],
  taskType: 'taskType',

  // the properties below are optional
  connectorOperator: {
    marketo: 'marketo',
    s3: 's3',
    salesforce: 'salesforce',
    serviceNow: 'serviceNow',
    zendesk: 'zendesk',
  },
  destinationField: 'destinationField',
  taskProperties: [{
    operatorPropertyKey: 'operatorPropertyKey',
    property: 'property',
  }],
};
```

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_customerprofiles as customerprofiles

task_property = customerprofiles.CfnIntegration.TaskProperty(
    source_fields=["sourceFields"],
    task_type="taskType",

    # the properties below are optional
    connector_operator=customerprofiles.CfnIntegration.ConnectorOperatorProperty(
        marketo="marketo",
        s3="s3",
        salesforce="salesforce",
        service_now="serviceNow",
        zendesk="zendesk"
    ),
    destination_field="destinationField",
    task_properties=[customerprofiles.CfnIntegration.TaskPropertiesMapProperty(
        operator_property_key="operatorPropertyKey",
        property="property"
    )]
)
```

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.customerprofiles.*;

TaskProperty taskProperty = TaskProperty.builder()
        .sourceFields(List.of("sourceFields"))
        .taskType("taskType")

        // the properties below are optional
        .connectorOperator(ConnectorOperatorProperty.builder()
                .marketo("marketo")
                .s3("s3")
                .salesforce("salesforce")
                .serviceNow("serviceNow")
                .zendesk("zendesk")
                .build())
        .destinationField("destinationField")
        .taskProperties(List.of(TaskPropertiesMapProperty.builder()
                .operatorPropertyKey("operatorPropertyKey")
                .property("property")
                .build()))
        .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.CustomerProfiles;

var taskProperty = new TaskProperty {
    SourceFields = new [] { "sourceFields" },
    TaskType = "taskType",

    // the properties below are optional
    ConnectorOperator = new ConnectorOperatorProperty {
        Marketo = "marketo",
        S3 = "s3",
        Salesforce = "salesforce",
        ServiceNow = "serviceNow",
        Zendesk = "zendesk"
    },
    DestinationField = "destinationField",
    TaskProperties = new [] { new TaskPropertiesMapProperty {
        OperatorPropertyKey = "operatorPropertyKey",
        Property = "property"
    } }
};
```

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"

taskProperty := &TaskProperty{
	SourceFields: []*string{
		jsii.String("sourceFields"),
	},
	TaskType: jsii.String("taskType"),

	// the properties below are optional
	ConnectorOperator: &ConnectorOperatorProperty{
		Marketo: jsii.String("marketo"),
		S3: jsii.String("s3"),
		Salesforce: jsii.String("salesforce"),
		ServiceNow: jsii.String("serviceNow"),
		Zendesk: jsii.String("zendesk"),
	},
	DestinationField: jsii.String("destinationField"),
	TaskProperties: []interface{}{
		&TaskPropertiesMapProperty{
			OperatorPropertyKey: jsii.String("operatorPropertyKey"),
			Property: jsii.String("property"),
		},
	},
}
```

## Properties

- `connectorOperator`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnIntegration.ConnectorOperatorProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_customerprofiles.CfnIntegration.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](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnIntegration.TaskPropertiesMapProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_customerprofiles.CfnIntegration.TaskPropertiesMapProperty.html)[] — A map used to store task-related information.

  The service looks for particular information based on the TaskType.

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