in awscdk/awslambda/FilterRule__checks.go [29:91]
func validateFilterRule_IsEqualParameters(item interface{}) error {
if item == nil {
return fmt.Errorf("parameter item is required, but nil was provided")
}
switch item.(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
default:
return fmt.Errorf("parameter item must be one of the allowed types: *string, *float64, *bool; received %#v (a %T)", item, item)
}
return nil
}