Derivative Instruments - Schedule of Derivatives Not Designated as Hedging Instruments Recognized in Income (Details) - Derivatives not designated as hedging instruments: - USD ($) $ in Millions |
12 Months Ended | ||
---|---|---|---|
Jun. 30, 2024 |
Jun. 30, 2023 |
Jun. 30, 2022 |
|
Derivative [Line Items] | |||
Derivative Instruments Not Designated as Hedging Instruments, Gain (Loss), Net | $ (1) | $ 9 | $ (45) |
Forward exchange contracts | |||
Derivative [Line Items] | |||
Derivative Instruments Not Designated as Hedging Instruments, Gain (Loss), Net | $ 15 | (7) | (45) |
Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration] | Other income/(expenses), net | ||
Interest rate swaps | |||
Derivative [Line Items] | |||
Derivative Instruments Not Designated as Hedging Instruments, Gain (Loss), Net | $ (16) | $ 16 | $ 0 |
Derivative, Gain (Loss), Statement of Income or Comprehensive Income [Extensible Enumeration] | Other income/(expenses), net |