Long-Term Debt (Details) | Jun. 24, 2019USD ($) | Feb. 15, 2019USD ($) | Feb. 06, 2019 | Feb. 05, 2019 | Jan. 16, 2019USD ($) | Jun. 30, 2019USD ($) | Jun. 30, 2018USD ($) | Jun. 30, 2019USD ($) | Jun. 30, 2018USD ($) | Jun. 30, 2019GBP (£) | Jun. 30, 2019EUR (€) |
Debt Instrument [Line Items] | | | | | | | | | | | |
Debt costs | | | | | | $ 37,000,000 | $ 0 | $ 96,000,000 | $ 0 | | |
Senior Notes | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Debt instrument, face amount | $ 9,000,000,000 | | | | | | | | | £ 1,050,000,000 | € 1,500,000,000 |
Redemption price, percentage | 101.00% | | | | | | | | | | |
Senior Notes | Senior Notes Due July 2024 | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Carrying value of debt | $ 2,000,000,000 | | | | | | | | | | |
Debt instrument, interest rate | 2.75% | | | | | | | | | | |
Senior Notes | Senior Notes Due July 2026 | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Carrying value of debt | $ 2,000,000,000 | | | | | | | | | | |
Debt instrument, interest rate | 3.20% | | | | | | | | | | |
Senior Notes | Senior Notes Due July 2029 | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Carrying value of debt | $ 3,000,000,000 | | | | | | | | | | |
Debt instrument, interest rate | 3.50% | | | | | | | | | | |
Senior Notes | Senior Notes Due July 2049 | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Carrying value of debt | $ 2,000,000,000 | | | | | | | | | | |
Debt instrument, interest rate | 4.40% | | | | | | | | | | |
Senior Notes | Senior Notes Due July 2023 | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Carrying value of debt | € | | | | | | | | | | | € 500,000,000 |
Debt instrument, interest rate | | | | | | 0.375% | | 0.375% | | 0.375% | 0.375% |
Senior Notes | Senior Notes Due July 2027 | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Carrying value of debt | € | | | | | | | | | | | € 500,000,000 |
Debt instrument, interest rate | | | | | | 1.125% | | 1.125% | | 1.125% | 1.125% |
Senior Notes | Senior Notes Due July 2030 | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Carrying value of debt | € | | | | | | | | | | | € 500,000,000 |
Debt instrument, interest rate | | | | | | 1.625% | | 1.625% | | 1.625% | 1.625% |
Senior Notes | Senior Notes Due July 2025 | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Carrying value of debt | £ | | | | | | | | | | £ 525,000,000 | |
Debt instrument, interest rate | | | | | | 2.25% | | 2.25% | | 2.25% | 2.25% |
Senior Notes | Senior Notes Due July 2031 | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Carrying value of debt | £ | | | | | | | | | | £ 525,000,000 | |
Debt instrument, interest rate | | | | | | 3.00% | | 3.00% | | 3.00% | 3.00% |
Revolving Credit Facility | Line of Credit | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Debt instrument terms for line of credit,debt to income ratio | | | | 3.5 | | | | | | | |
Revolving credit, increase limit | | $ 1,500,000,000 | | | | | | | | | |
Extinguishment of debt | $ 790,000,000 | | | | | | | | | | |
Term Loan Facility | Line of Credit | Senior Unsecured Term Loan Facility | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Maximum borrowing capacity | | 5,000,000,000 | | | | | | | | | |
Term Loan Facility | Line of Credit | Senior Unsecured Term Loan Facility, Loans With Three Year Maturity | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Maximum borrowing capacity | | $ 1,500,000,000 | | | | | | | | | |
Debt term | | 3 years | | | | | | | | | |
Term Loan Facility | Line of Credit | Senior Unsecured Term Loan Facility, Loans With Five Year Maturity | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Maximum borrowing capacity | | $ 3,500,000,000 | | | | | | | | | |
Debt term | | 5 years | | | | | | | | | |
Line of Credit | Bridge Loan | Senior Unsecured Bridge Term Loan Facility | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Maximum borrowing capacity | | | | | $ 17,000,000,000 | | | | | | |
Debt costs | | | | | | $ 37,000,000 | | $ 96,000,000 | | | |
Outstanding borrowings | | | | | | 0 | | 0 | | | |
Debt term | | | | | 364 days | | | | | | |
Debt Instrument, Option, One | Revolving Credit Facility | Line of Credit | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Debt instrument terms for line of credit,debt to income ratio | | | 4 | | | | | | | | |
Debt Instrument, Option, Two | Revolving Credit Facility | Line of Credit | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Debt instrument terms for line of credit,debt to income ratio | | | 4.5 | | | | | | | | |
Debt Instrument, Amortization, Period One | Term Loan Facility | Line of Credit | Senior Unsecured Term Loan Facility | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Amortization rate | | 5.00% | | | | | | | | | |
Debt Instrument, Amortization, Period Two | Term Loan Facility | Line of Credit | Senior Unsecured Term Loan Facility | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Amortization rate | | 7.50% | | | | | | | | | |
Debt Instrument, Amortization, Period Three | Term Loan Facility | Line of Credit | Senior Unsecured Term Loan Facility | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Amortization rate | | 10.00% | | | | | | | | | |
Foreign currency forward exchange contracts | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Total fair value of derivatives | | | | | | 2,000,000 | | 2,000,000 | | | |
United Kingdom, Pounds | Foreign currency forward exchange contracts | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Notional amount of derivatives | | | | | | 1,340,000,000 | | 1,340,000,000 | | £ 1,050,000,000 | |
Euro Member Countries, Euro | Foreign currency forward exchange contracts | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | |
Notional amount of derivatives | | | | | | $ 641,000,000 | | $ 641,000,000 | | | € 563,000,000 |