Indoor decorative lights are commonly powered by plug-in/AC adapters, batteries (often AA), USB power, or by hardwiring for ceiling and pendant fixtures. Some products may offer multiple power options depending on the design.
Product listings and specifications will indicate use: some lights are labeled "Indoor" only, while others are marked "Indoor/Outdoor" or suitable for both. Check the product details and IP rating if outdoor use is intended.