Some of the AWS specs redefine basic types, so the code ends up with things like: type alias Username = String Or even: type alias String = String Should not create aliases for basic types. Remove these aliases and just use the basic type directly.