v3.21.2
Gains (Losses) on Derivative Instruments Recognized in Other Income (Expense), Net (Detail) - Other Income (Expense), Net - USD ($)
$ in Millions
3 Months Ended
Sep. 30, 2021
Sep. 30, 2020
Foreign Exchange Contracts    
Derivative Instruments, Gain (Loss) [Line Items]    
Gains (Losses) on Derivatives Not Designated as Hedges $ 177 $ 58
Other Contracts    
Derivative Instruments, Gain (Loss) [Line Items]    
Gains (Losses) on Derivatives Not Designated as Hedges (18) 4
Fair Value Hedges | Foreign Exchange Contracts    
Derivative Instruments, Gain (Loss) [Line Items]    
Derivatives 3 (169)
Hedged items (5) 168
Excluded from effectiveness assessment 4 8
Fair Value Hedges | Interest Rate Contracts    
Derivative Instruments, Gain (Loss) [Line Items]    
Derivatives (3) 0
Hedged items 7 4
Cash Flow Hedges | Foreign Exchange Contracts    
Derivative Instruments, Gain (Loss) [Line Items]    
Amount reclassified from accumulated other comprehensive income $ (15) $ 20