Replies: 1 comment
-
This is closed, as passing the properties as array. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Team - I'm trying to create an appflow job and one of the block is to pass 'Task Property' using 'TaskPropertiesObjectProperty' class. But it fails with below error, and I could figure out, the error points to 'task_property' .
Class reference
classCfnFlow.TaskPropertiesObjectProperty(*, key, value)
Code
myflow.CfnFlow.TaskProperty(
task_type='Map_all',
source_fields=[],
task_properties=myflow.CfnFlow.TaskPropertiesObjectProperty(key='EXCLUDE_SOURCE_FIELDS_LIST',value=[]),
connector_operator=myflow.CfnFlow.ConnectorOperatorProperty(zendesk='NO_OP')
Error
jsii.errors.JSIIError: Value did not match any type in union: Value did not match any type in union: Value did not match any type in union: Expected array type, got {"$jsii.struct":{"fqn":"@aws-cdk/aws-appflow.CfnFlow.TaskPropertiesObjectProperty","data":{"key":"EXCLUDE_SOURCE_FIELDS_LIST","value":[]}}},
Reference URL https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_appflow/CfnFlow.html#aws_cdk.aws_appflow.CfnFlow.TaskPropertiesObjectProperty
Environment
CDK CLI Version : 1.114.0 (build 7e41b6b)
Framework Version:
Language: Python.3.6.8
Any helps on this, as the CDK/class expects the key/value to be string, but the value must be an empty list '[]', below the working YAML block.
,,,
Tasks:
SourceFields: []
TaskProperties:
- Key: EXCLUDE_SOURCE_FIELDS_LIST
Value: '[]'
ConnectorOperator:
Zendesk: NO_OP
,,,
Beta Was this translation helpful? Give feedback.
All reactions