func()

in awscdk/awsbedrock/CfnFlow__checks.go [230:370]


func (j *jsiiProxy_CfnFlow) validateSetDefinitionSubstitutionsParameters(val interface{}) error {
	switch val.(type) {
	case awscdk.IResolvable:
		// ok
	case *map[string]interface{}:
		val := val.(*map[string]interface{})
		for idx_97dfc6, v := range *val {
			switch v.(type) {
			case *string:
				// ok
			case string:
				// ok
			case *float64:
				// ok
			case float64:
				// ok
			case *int:
				// ok
			case int:
				// ok
			case *uint:
				// ok
			case uint:
				// ok
			case *int8:
				// ok
			case int8:
				// ok
			case *int16:
				// ok
			case int16:
				// ok
			case *int32:
				// ok
			case int32:
				// ok
			case *int64:
				// ok
			case int64:
				// ok
			case *uint8:
				// ok
			case uint8:
				// ok
			case *uint16:
				// ok
			case uint16:
				// ok
			case *uint32:
				// ok
			case uint32:
				// ok
			case *uint64:
				// ok
			case uint64:
				// ok
			case *bool:
				// ok
			case bool:
				// ok
			case awscdk.IResolvable:
				// ok
			default:
				if !_jsii_.IsAnonymousProxy(v) {
					return fmt.Errorf("parameter val[%#v] must be one of the allowed types: *string, *float64, *bool, awscdk.IResolvable; received %#v (a %T)", idx_97dfc6, v, v)
				}
			}
		}
	case map[string]interface{}:
		val_ := val.(map[string]interface{})
		val := &val_
		for idx_97dfc6, v := range *val {
			switch v.(type) {
			case *string:
				// ok
			case string:
				// ok
			case *float64:
				// ok
			case float64:
				// ok
			case *int:
				// ok
			case int:
				// ok
			case *uint:
				// ok
			case uint:
				// ok
			case *int8:
				// ok
			case int8:
				// ok
			case *int16:
				// ok
			case int16:
				// ok
			case *int32:
				// ok
			case int32:
				// ok
			case *int64:
				// ok
			case int64:
				// ok
			case *uint8:
				// ok
			case uint8:
				// ok
			case *uint16:
				// ok
			case uint16:
				// ok
			case *uint32:
				// ok
			case uint32:
				// ok
			case *uint64:
				// ok
			case uint64:
				// ok
			case *bool:
				// ok
			case bool:
				// ok
			case awscdk.IResolvable:
				// ok
			default:
				if !_jsii_.IsAnonymousProxy(v) {
					return fmt.Errorf("parameter val[%#v] must be one of the allowed types: *string, *float64, *bool, awscdk.IResolvable; 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, *map[string]interface{}; received %#v (a %T)", val, val)
		}
	}

	return nil
}