in awscdk/awsentityresolution/CfnMatchingWorkflow__checks.go [206:267]
func (j *jsiiProxy_CfnMatchingWorkflow) validateSetInputSourceConfigParameters(val interface{}) error {
if val == nil {
return fmt.Errorf("parameter val is required, but nil was provided")
}
switch val.(type) {
case awscdk.IResolvable:
// ok
case *[]interface{}:
val := val.(*[]interface{})
for idx_97dfc6, v := range *val {
switch v.(type) {
case awscdk.IResolvable:
// ok
case *CfnMatchingWorkflow_InputSourceProperty:
v := v.(*CfnMatchingWorkflow_InputSourceProperty)
if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil {
return err
}
case CfnMatchingWorkflow_InputSourceProperty:
v_ := v.(CfnMatchingWorkflow_InputSourceProperty)
v := &v_
if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil {
return err
}
default:
if !_jsii_.IsAnonymousProxy(v) {
return fmt.Errorf("parameter val[%#v] must be one of the allowed types: awscdk.IResolvable, *CfnMatchingWorkflow_InputSourceProperty; received %#v (a %T)", idx_97dfc6, v, v)
}
}
}
case []interface{}:
val_ := val.([]interface{})
val := &val_
for idx_97dfc6, v := range *val {
switch v.(type) {
case awscdk.IResolvable:
// ok
case *CfnMatchingWorkflow_InputSourceProperty:
v := v.(*CfnMatchingWorkflow_InputSourceProperty)
if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil {
return err
}
case CfnMatchingWorkflow_InputSourceProperty:
v_ := v.(CfnMatchingWorkflow_InputSourceProperty)
v := &v_
if err := _jsii_.ValidateStruct(v, func() string { return fmt.Sprintf("parameter val[%#v]", idx_97dfc6) }); err != nil {
return err
}
default:
if !_jsii_.IsAnonymousProxy(v) {
return fmt.Errorf("parameter val[%#v] must be one of the allowed types: awscdk.IResolvable, *CfnMatchingWorkflow_InputSourceProperty; received %#v (a %T)", idx_97dfc6, v, v)
}
}
}
default:
if !_jsii_.IsAnonymousProxy(val) {
return fmt.Errorf("parameter val must be one of the allowed types: awscdk.IResolvable, *[]interface{}; received %#v (a %T)", val, val)
}
}
return nil
}