Some of the info can be found in 422-16(b)(2). Length 3' to 4' from grounding type plug on cord to rear of appliance.
Then check out 240-4 for wire size and OC protection relative to what the nameplate of your dishwasher says. Probably SP type cord (table 400-4) 14 or 12 AWG. You really need to check out the local code because this is a subject frequently visited and amended by state and local authorities.