Skip to content
v2.278.0

FlowDefinitionProperty Struct ​

The configurations that control how Customer Profiles retrieves data from the source, Amazon AppFlow.

Customer Profiles uses this information to create an AppFlow flow on behalf of customers.

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 flowDefinitionProperty: customerprofiles.CfnIntegration.FlowDefinitionProperty = {
  flowName: 'flowName',
  kmsArn: 'kmsArn',
  sourceFlowConfig: {
    connectorType: 'connectorType',
    sourceConnectorProperties: {
      marketo: {
        object: 'object',
      },
      s3: {
        bucketName: 'bucketName',

        // the properties below are optional
        bucketPrefix: 'bucketPrefix',
      },
      salesforce: {
        object: 'object',

        // the properties below are optional
        enableDynamicFieldUpdate: false,
        includeDeletedRecords: false,
      },
      serviceNow: {
        object: 'object',
      },
      zendesk: {
        object: 'object',
      },
    },

    // the properties below are optional
    connectorProfileName: 'connectorProfileName',
    incrementalPullConfig: {
      datetimeTypeFieldName: 'datetimeTypeFieldName',
    },
  },
  tasks: [{
    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',
    }],
  }],
  triggerConfig: {
    triggerType: 'triggerType',

    // the properties below are optional
    triggerProperties: {
      scheduled: {
        scheduleExpression: 'scheduleExpression',

        // the properties below are optional
        dataPullMode: 'dataPullMode',
        firstExecutionFrom: 123,
        scheduleEndTime: 123,
        scheduleOffset: 123,
        scheduleStartTime: 123,
        timezone: 'timezone',
      },
    },
  },

  // the properties below are optional
  description: 'description',
};
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

flow_definition_property = customerprofiles.CfnIntegration.FlowDefinitionProperty(
    flow_name="flowName",
    kms_arn="kmsArn",
    source_flow_config=customerprofiles.CfnIntegration.SourceFlowConfigProperty(
        connector_type="connectorType",
        source_connector_properties=customerprofiles.CfnIntegration.SourceConnectorPropertiesProperty(
            marketo=customerprofiles.CfnIntegration.MarketoSourcePropertiesProperty(
                object="object"
            ),
            s3=customerprofiles.CfnIntegration.S3SourcePropertiesProperty(
                bucket_name="bucketName",

                # the properties below are optional
                bucket_prefix="bucketPrefix"
            ),
            salesforce=customerprofiles.CfnIntegration.SalesforceSourcePropertiesProperty(
                object="object",

                # the properties below are optional
                enable_dynamic_field_update=False,
                include_deleted_records=False
            ),
            service_now=customerprofiles.CfnIntegration.ServiceNowSourcePropertiesProperty(
                object="object"
            ),
            zendesk=customerprofiles.CfnIntegration.ZendeskSourcePropertiesProperty(
                object="object"
            )
        ),

        # the properties below are optional
        connector_profile_name="connectorProfileName",
        incremental_pull_config=customerprofiles.CfnIntegration.IncrementalPullConfigProperty(
            datetime_type_field_name="datetimeTypeFieldName"
        )
    ),
    tasks=[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"
        )]
    )],
    trigger_config=customerprofiles.CfnIntegration.TriggerConfigProperty(
        trigger_type="triggerType",

        # the properties below are optional
        trigger_properties=customerprofiles.CfnIntegration.TriggerPropertiesProperty(
            scheduled=customerprofiles.CfnIntegration.ScheduledTriggerPropertiesProperty(
                schedule_expression="scheduleExpression",

                # the properties below are optional
                data_pull_mode="dataPullMode",
                first_execution_from=123,
                schedule_end_time=123,
                schedule_offset=123,
                schedule_start_time=123,
                timezone="timezone"
            )
        )
    ),

    # the properties below are optional
    description="description"
)
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.*;

FlowDefinitionProperty flowDefinitionProperty = FlowDefinitionProperty.builder()
        .flowName("flowName")
        .kmsArn("kmsArn")
        .sourceFlowConfig(SourceFlowConfigProperty.builder()
                .connectorType("connectorType")
                .sourceConnectorProperties(SourceConnectorPropertiesProperty.builder()
                        .marketo(MarketoSourcePropertiesProperty.builder()
                                .object("object")
                                .build())
                        .s3(S3SourcePropertiesProperty.builder()
                                .bucketName("bucketName")

                                // the properties below are optional
                                .bucketPrefix("bucketPrefix")
                                .build())
                        .salesforce(SalesforceSourcePropertiesProperty.builder()
                                .object("object")

                                // the properties below are optional
                                .enableDynamicFieldUpdate(false)
                                .includeDeletedRecords(false)
                                .build())
                        .serviceNow(ServiceNowSourcePropertiesProperty.builder()
                                .object("object")
                                .build())
                        .zendesk(ZendeskSourcePropertiesProperty.builder()
                                .object("object")
                                .build())
                        .build())

                // the properties below are optional
                .connectorProfileName("connectorProfileName")
                .incrementalPullConfig(IncrementalPullConfigProperty.builder()
                        .datetimeTypeFieldName("datetimeTypeFieldName")
                        .build())
                .build())
        .tasks(List.of(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()))
        .triggerConfig(TriggerConfigProperty.builder()
                .triggerType("triggerType")

                // the properties below are optional
                .triggerProperties(TriggerPropertiesProperty.builder()
                        .scheduled(ScheduledTriggerPropertiesProperty.builder()
                                .scheduleExpression("scheduleExpression")

                                // the properties below are optional
                                .dataPullMode("dataPullMode")
                                .firstExecutionFrom(123)
                                .scheduleEndTime(123)
                                .scheduleOffset(123)
                                .scheduleStartTime(123)
                                .timezone("timezone")
                                .build())
                        .build())
                .build())

        // the properties below are optional
        .description("description")
        .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 flowDefinitionProperty = new FlowDefinitionProperty {
    FlowName = "flowName",
    KmsArn = "kmsArn",
    SourceFlowConfig = new SourceFlowConfigProperty {
        ConnectorType = "connectorType",
        SourceConnectorProperties = new SourceConnectorPropertiesProperty {
            Marketo = new MarketoSourcePropertiesProperty {
                Object = "object"
            },
            S3 = new S3SourcePropertiesProperty {
                BucketName = "bucketName",

                // the properties below are optional
                BucketPrefix = "bucketPrefix"
            },
            Salesforce = new SalesforceSourcePropertiesProperty {
                Object = "object",

                // the properties below are optional
                EnableDynamicFieldUpdate = false,
                IncludeDeletedRecords = false
            },
            ServiceNow = new ServiceNowSourcePropertiesProperty {
                Object = "object"
            },
            Zendesk = new ZendeskSourcePropertiesProperty {
                Object = "object"
            }
        },

        // the properties below are optional
        ConnectorProfileName = "connectorProfileName",
        IncrementalPullConfig = new IncrementalPullConfigProperty {
            DatetimeTypeFieldName = "datetimeTypeFieldName"
        }
    },
    Tasks = new [] { 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"
        } }
    } },
    TriggerConfig = new TriggerConfigProperty {
        TriggerType = "triggerType",

        // the properties below are optional
        TriggerProperties = new TriggerPropertiesProperty {
            Scheduled = new ScheduledTriggerPropertiesProperty {
                ScheduleExpression = "scheduleExpression",

                // the properties below are optional
                DataPullMode = "dataPullMode",
                FirstExecutionFrom = 123,
                ScheduleEndTime = 123,
                ScheduleOffset = 123,
                ScheduleStartTime = 123,
                Timezone = "timezone"
            }
        }
    },

    // the properties below are optional
    Description = "description"
};
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"

flowDefinitionProperty := &FlowDefinitionProperty{
	FlowName: jsii.String("flowName"),
	KmsArn: jsii.String("kmsArn"),
	SourceFlowConfig: &SourceFlowConfigProperty{
		ConnectorType: jsii.String("connectorType"),
		SourceConnectorProperties: &SourceConnectorPropertiesProperty{
			Marketo: &MarketoSourcePropertiesProperty{
				Object: jsii.String("object"),
			},
			S3: &S3SourcePropertiesProperty{
				BucketName: jsii.String("bucketName"),

				// the properties below are optional
				BucketPrefix: jsii.String("bucketPrefix"),
			},
			Salesforce: &SalesforceSourcePropertiesProperty{
				Object: jsii.String("object"),

				// the properties below are optional
				EnableDynamicFieldUpdate: jsii.Boolean(false),
				IncludeDeletedRecords: jsii.Boolean(false),
			},
			ServiceNow: &ServiceNowSourcePropertiesProperty{
				Object: jsii.String("object"),
			},
			Zendesk: &ZendeskSourcePropertiesProperty{
				Object: jsii.String("object"),
			},
		},

		// the properties below are optional
		ConnectorProfileName: jsii.String("connectorProfileName"),
		IncrementalPullConfig: &IncrementalPullConfigProperty{
			DatetimeTypeFieldName: jsii.String("datetimeTypeFieldName"),
		},
	},
	Tasks: []interface{}{
		&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"),
				},
			},
		},
	},
	TriggerConfig: &TriggerConfigProperty{
		TriggerType: jsii.String("triggerType"),

		// the properties below are optional
		TriggerProperties: &TriggerPropertiesProperty{
			Scheduled: &ScheduledTriggerPropertiesProperty{
				ScheduleExpression: jsii.String("scheduleExpression"),

				// the properties below are optional
				DataPullMode: jsii.String("dataPullMode"),
				FirstExecutionFrom: jsii.Number(123),
				ScheduleEndTime: jsii.Number(123),
				ScheduleOffset: jsii.Number(123),
				ScheduleStartTime: jsii.Number(123),
				Timezone: jsii.String("timezone"),
			},
		},
	},

	// the properties below are optional
	Description: jsii.String("description"),
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
A description of the flow you want to create.
flowNamestringflow_namestrflowNameStringFlowNamestringFlowName*string required #
The specified name of the flow.

Use underscores (_) or hyphens (-) only. Spaces are not allowed.

kmsArnstringkms_arnstrkmsArnStringKmsArnstringKmsArn*string required #
The Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key you provide for encryption.
sourceFlowConfigIResolvable | CfnIntegration.SourceFlowConfigPropertysource_flow_configtyping.Union[IResolvable, SourceFlowConfigProperty]sourceFlowConfigIResolvableSourceFlowConfigIResolvableSourceFlowConfiginterface{} required #
The configuration that controls how Customer Profiles retrieves data from the source.
tasksIResolvable | IResolvable | CfnIntegration.TaskProperty[]taskstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TaskProperty]]]tasksIResolvableTasksIResolvableTasksinterface{} required #
A list of tasks that Customer Profiles performs while transferring the data in the flow run.
triggerConfigIResolvable | CfnIntegration.TriggerConfigPropertytrigger_configtyping.Union[IResolvable, TriggerConfigProperty]triggerConfigIResolvableTriggerConfigIResolvableTriggerConfiginterface{} required #
The trigger settings that determine how and when the flow runs.