Skip to content
v2.278.0

TaskProperty Struct ​

The Task property type specifies the 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_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
# 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
// 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();
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"
    } }
};
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 ​

connectorOperatoroptionalIResolvable | CfnIntegration.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*[]*string required #
The source fields to which a particular task is applied.
taskPropertiesoptionalIResolvable | IResolvable | CfnIntegration.TaskPropertiesMapProperty[]task_propertiesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TaskPropertiesMapProperty]]]taskPropertiesoptionalIResolvableTaskPropertiesoptionalIResolvableTaskPropertiesoptionalinterface{} #
A map used to store task-related information.

The service looks for particular information based on the TaskType.

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