Skip to content
v2.276.0

TaskProperty Struct ​

A class for modeling different type of tasks.

Task implementation varies based on the TaskType .

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',
  }],
};
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_appflow as appflow

task_property = appflow.CfnFlow.TaskProperty(
    source_fields=["sourceFields"],
    task_type="taskType",

    # the properties below are optional
    connector_operator=appflow.CfnFlow.ConnectorOperatorProperty(
        amplitude="amplitude",
        custom_connector="customConnector",
        datadog="datadog",
        dynatrace="dynatrace",
        google_analytics="googleAnalytics",
        infor_nexus="inforNexus",
        marketo="marketo",
        pardot="pardot",
        s3="s3",
        salesforce="salesforce",
        sapo_data="sapoData",
        service_now="serviceNow",
        singular="singular",
        slack="slack",
        trendmicro="trendmicro",
        veeva="veeva",
        zendesk="zendesk"
    ),
    destination_field="destinationField",
    task_properties=[appflow.CfnFlow.TaskPropertiesObjectProperty(
        key="key",
        value="value"
    )]
)
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.appflow.*;

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

        // the properties below are optional
        .connectorOperator(ConnectorOperatorProperty.builder()
                .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")
                .build())
        .destinationField("destinationField")
        .taskProperties(List.of(TaskPropertiesObjectProperty.builder()
                .key("key")
                .value("value")
                .build()))
        .build();
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.AppFlow;

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

    // the properties below are optional
    ConnectorOperator = new ConnectorOperatorProperty {
        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 = new [] { new TaskPropertiesObjectProperty {
        Key = "key",
        Value = "value"
    } }
};
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{
		Amplitude: jsii.String("amplitude"),
		CustomConnector: jsii.String("customConnector"),
		Datadog: jsii.String("datadog"),
		Dynatrace: jsii.String("dynatrace"),
		GoogleAnalytics: jsii.String("googleAnalytics"),
		InforNexus: jsii.String("inforNexus"),
		Marketo: jsii.String("marketo"),
		Pardot: jsii.String("pardot"),
		S3: jsii.String("s3"),
		Salesforce: jsii.String("salesforce"),
		SapoData: jsii.String("sapoData"),
		ServiceNow: jsii.String("serviceNow"),
		Singular: jsii.String("singular"),
		Slack: jsii.String("slack"),
		Trendmicro: jsii.String("trendmicro"),
		Veeva: jsii.String("veeva"),
		Zendesk: jsii.String("zendesk"),
	},
	DestinationField: jsii.String("destinationField"),
	TaskProperties: []interface{}{
		&TaskPropertiesObjectProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

connectorOperatoroptionalIResolvable | CfnFlow.ConnectorOperatorPropertyconnector_operatoroptionaltyping.Union[IResolvable, ConnectorOperatorProperty]connectorOperatoroptionalIResolvableConnectorOperatoroptionalIResolvableConnectorOperatoroptionalinterface{}#
The operation to be performed on the provided source fields.
destinationFieldoptionalstringdestination_fieldoptionalstrdestinationFieldoptionalStringDestinationFieldoptionalstringDestinationFieldoptional*string#
A field in a destination connector, or a field value against which Amazon AppFlow validates a source field.
sourceFieldsstring[]source_fieldstyping.List[str]sourceFieldsList<String>SourceFieldsstring[]SourceFields*[]*stringrequired#
The source fields to which a particular task is applied.
taskPropertiesoptionalIResolvable | IResolvable | CfnFlow.TaskPropertiesObjectProperty[]task_propertiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TaskPropertiesObjectProperty]]]taskPropertiesoptionalIResolvableTaskPropertiesoptionalIResolvableTaskPropertiesoptionalinterface{}#
A map used to store task-related information.

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

taskTypestringtask_typestrtaskTypeStringTaskTypestringTaskType*stringrequired#
Specifies the particular task implementation that Amazon AppFlow performs.

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