A gas turbine engine includes a compressor section and a turbine section together defining a core air flowpath. Additionally, a rotary component is rotatable with at least a portion of the compressor section and at least a portion of the turbine section. An electric machine is mounted coaxially with the rotary component and positioned at least partially inward of the core air flowpath along a radial direction of the gas turbine engine. An electric communication bus is electrically connected to the electric machine and extends through the core air flowpath to, e.g., electrically connect the electric machine to one or more systems of the gas turbine engine or a propulsion system including the gas turbine engine.