Along with Bob and Glenn's posts, the device or fixture is not in the scenario. the conductor ampacity of the entire circuit is the only concern.

A manufactured fixture whip or fixture cord assembly is not part of our portion of the premises wiring system, and would be a different conversation.

Roger