I want to programmatically create a new AppFlow flow to transfer data from Google Analytics 4 to an S3 bucket. Getting an error:
"An error occurred (ValidationException) when calling the CreateFlow operation: ConnectorRuntimeSettings object are not required but found."
This is the code
response = client.create_flow(
flowName='GA4_flow_test1',
description='GA4 flow',
triggerConfig={
'triggerType': 'OnDemand'
},
sourceFlowConfig={
'connectorType': 'CustomConnector',
'apiVersion': 'v1beta',
'connectorProfileName': 'my_connector',
'sourceConnectorProperties': {
'CustomConnector': {
'entityName': 'Googleanalytics4',
'customProperties': {
'object': 'core-reports'
}
}
},
'incrementalPullConfig': {
'datetimeTypeFieldName': 'startDate'
}
},
destinationFlowConfigList=[
{
'connectorType': 'S3',
'destinationConnectorProperties': {
'S3': {
'bucketName': 'my-bucket',
'bucketPrefix': 'ga4',
's3OutputFormatConfig': {
'fileType': 'JSON',
'aggregationConfig': {
'aggregationType': 'None'
}
}
}
}
}
],
tasks=[
{
"taskType": "Map",
"sourceFields": ["Dimension:customUser:GroupId"],
"destinationField": "customUser:GroupId"
}
]
)
Looks like there is something wrong with tasks[] param. I tried different values for the taskType but nothing seems to work. Any ideas?