Stockholders' Equity - Additional Information (Detail) - USD ($) |
3 Months Ended | 6 Months Ended | ||||
|---|---|---|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2022 |
Dec. 31, 2021 |
Sep. 14, 2021 |
Sep. 18, 2019 |
|
| Share Repurchases [Line Items] | ||||||
| Amount of shares repurchased to settle employee tax withholding related to vesting of stock awards | $ 859,000,000 | $ 1,200,000,000 | $ 1,800,000,000 | $ 2,700,000,000 | ||
| Share Repurchase Program 2019 | ||||||
| Share Repurchases [Line Items] | ||||||
| Amount available for repurchase under the share repurchase program approved by the company's Board of Directors | $ 40,000,000,000.0 | |||||
| Share Repurchase Program 2021 | ||||||
| Share Repurchases [Line Items] | ||||||
| Amount available for repurchase under the share repurchase program approved by the company's Board of Directors | $ 60,000,000,000.0 | |||||
| Unused amount of share repurchase program | $ 31,500,000,000 | $ 31,500,000,000 | ||||