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