Commitments - Additional Information (Detail) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Jun. 30, 2017 |
Jun. 30, 2016 |
Jun. 30, 2015 |
|
| Capital Leases | |||
| Commitments [Line Items] | |||
| Additional purchase obligations for capital leases executed but not yet recorded | $ 3,200 | ||
| Other Current Liabilities | |||
| Commitments [Line Items] | |||
| Current capital lease obligations | 113 | $ 25 | |
| Other Long-term Liabilities | |||
| Commitments [Line Items] | |||
| Long-term capital lease obligations | 2,400 | 761 | |
| Buildings | |||
| Commitments [Line Items] | |||
| Rental expense for facilities operating leases | 1,300 | $ 1,000 | $ 989 |
| Building, Building Improvements and Leasehold Improvements | |||
| Commitments [Line Items] | |||
| Committed for construction of new buildings, building improvements and leasehold improvements | $ 1,100 | ||
| X | ||||||||||
- Definition Commitments [Line Items] No definition available.
|
| X | ||||||||||
- Definition Amount of capital lease obligation due within one year or the normal operating cycle, if longer. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
| X | ||||||||||
- Definition Amount equal to the present value (the principal) at the beginning of the lease term of minimum lease payments during the lease term (excluding that portion of the payments representing executory costs such as insurance, maintenance, and taxes to be paid by the lessor, together with any profit thereon) net of payments or other amounts applied to the principal, through the balance sheet date and due to be paid more than one year (or one operating cycle, if longer) after the balance sheet date. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
| X | ||||||||||
- Definition Fair value portion of arrangements with third parties, including, but not limited to, operating lease arrangement and arrangement in which the entity has agreed to expend funds to procure goods or services, or has agreed to commit resources to supply goods or services. Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
| X | ||||||||||
- Definition Amount of rent expense incurred for leased assets, including but not limited to, furniture and equipment, that is not directly or indirectly associated with the manufacture, sale or creation of a product or product line. No definition available.
|
| X | ||||||||||
- Definition Amount of the unrecorded obligation to transfer funds in the future for fixed or minimum amounts or quantities of goods or services at fixed or minimum prices (for example, as in take-or-pay contracts or throughput contracts). Reference 1: http://www.xbrl.org/2003/role/presentationRef
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|
| X | ||||||||||
- Details
|