v3.24.2.u1
Borrowings - Additional Information (Details) - USD ($)
1 Months Ended 12 Months Ended
Aug. 17, 2023
May 31, 2021
Apr. 30, 2021
Mar. 31, 2021
Dec. 31, 2019
Mar. 31, 2019
Jun. 30, 2016
Jun. 30, 2024
Jun. 30, 2023
Jun. 30, 2022
Debt Instrument [Line Items]                    
Principal amount               $ 3,370,000,000    
Fair value of fixed-rate notes               3,111,600,000    
Outstanding borrowings under lines of credit               0 $ 0  
Revolving Credit Facility                    
Debt Instrument [Line Items]                    
Principal amount               0    
Fair value of fixed-rate notes               0    
Term Loans                    
Debt Instrument [Line Items]                    
Principal amount               0    
Fair value of fixed-rate notes               0    
Senior Notes                    
Debt Instrument [Line Items]                    
Principal amount               2,250,000,000    
Fair value of fixed-rate notes               $ 1,991,600,000    
Fiscal 2021 Revolving Credit Facility | Revolving Credit Facility                    
Debt Instrument [Line Items]                    
Maximum borrowing capacity     $ 1,500,000,000              
Debt instrument, term     5 years              
Annual facility fee (as basis points)               0.15%    
Annual facility fee, step up (as basis points)               0.20%    
Annual facility fee, step down (as basis points)               0.07%    
Fiscal 2021 Revolving Credit Facility | Revolving Credit Facility | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate                    
Debt Instrument [Line Items]                    
Basis spread on variable rate               1.10%    
Fiscal 2021 Revolving Credit Facility | Revolving Credit Facility | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate, Step Ups                    
Debt Instrument [Line Items]                    
Basis spread on variable rate               1.175%    
Fiscal 2021 Revolving Credit Facility | Revolving Credit Facility | Secured Overnight Financing Raye (SOFR) Overnight Index Swap Rate, Step Downs                    
Debt Instrument [Line Items]                    
Basis spread on variable rate               0.805%    
Fiscal 2021 Revolving Credit Facility | Revolving Credit Facility | Sterling Overnight Interbank Average Rate (SONIA)                    
Debt Instrument [Line Items]                    
Basis spread on variable rate               1.1326%    
Fiscal 2021 Revolving Credit Facility | Revolving Credit Facility | Sterling Overnight Interbank Average Rate (SONIA), Step Up                    
Debt Instrument [Line Items]                    
Basis spread on variable rate               1.2076%    
Fiscal 2021 Revolving Credit Facility | Revolving Credit Facility | Sterling Overnight Interbank Average Rate (SONIA), Step Down                    
Debt Instrument [Line Items]                    
Basis spread on variable rate               0.8376%    
Fiscal 2019 Revolving Credit Facility | Revolving Credit Facility                    
Debt Instrument [Line Items]                    
Maximum borrowing capacity           $ 1,500,000,000        
Debt instrument, term           5 years        
Fiscal 2021 Revolving Credit Facility, U.S. Dollar Tranche | Revolving Credit Facility                    
Debt Instrument [Line Items]                    
Maximum borrowing capacity     $ 1,100,000,000              
Principal amount               $ 0    
Fair value of fixed-rate notes               0    
Fiscal 2021 Revolving Credit Facility, Multicurrency Tranche | Revolving Credit Facility                    
Debt Instrument [Line Items]                    
Maximum borrowing capacity     $ 400,000,000.0              
Principal amount               0    
Fair value of fixed-rate notes               $ 0    
Revolving Credit Facilities | Revolving Credit Facility                    
Debt Instrument [Line Items]                    
Weighted-average interest rate               6.50% 4.95% 1.30%
Fiscal 2021 Term Loans | Term Loans                    
Debt Instrument [Line Items]                    
Principal amount       $ 2,550,000,000            
Fiscal 2021 Term Loans Tranche 1 | Term Loans                    
Debt Instrument [Line Items]                    
Debt instrument, term       18 months            
Principal amount       $ 1,000,000,000            
Fiscal 2021 Term Loans Tranche 2 | Term Loans                    
Debt Instrument [Line Items]                    
Principal amount       $ 1,550,000,000            
Fiscal 2021 Term Loans Tranche 2 | Term Loans | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate                    
Debt Instrument [Line Items]                    
Basis spread on variable rate       1.00%            
Fiscal 2021 Term Loans Tranche 2 | Term Loans | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate, Step Ups                    
Debt Instrument [Line Items]                    
Basis spread on variable rate       1.25%            
Fiscal 2021 Term Loans Tranche 2 | Term Loans | Secured Overnight Financing Raye (SOFR) Overnight Index Swap Rate, Step Downs                    
Debt Instrument [Line Items]                    
Basis spread on variable rate       0.75%            
Fiscal 2024 Amended Term Loans | Term Loans                    
Debt Instrument [Line Items]                    
Principal amount $ 1,300,000,000             $ 1,120,000,000    
Fair value of fixed-rate notes               1,120,000,000    
Fiscal 2024 Amended Term Loans | Term Loans | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate                    
Debt Instrument [Line Items]                    
Basis spread on variable rate 1.25%                  
Fiscal 2024 Amended Term Loans | Term Loans | Secured Overnight Financing Rate (SOFR) Overnight Index Swap Rate, Step Ups                    
Debt Instrument [Line Items]                    
Basis spread on variable rate 1.375%                  
Fiscal 2024 Amended Term Loans | Term Loans | Secured Overnight Financing Raye (SOFR) Overnight Index Swap Rate, Step Downs | Maximum                    
Debt Instrument [Line Items]                    
Basis spread on variable rate 1.125%                  
Fiscal 2024 Amended Term Loans | Term Loans | Secured Overnight Financing Raye (SOFR) Overnight Index Swap Rate, Step Downs | Minimum                    
Debt Instrument [Line Items]                    
Basis spread on variable rate 1.00%                  
Fiscal 2016 Senior Notes | Senior Notes                    
Debt Instrument [Line Items]                    
Principal amount             $ 500,000,000 500,000,000.0    
Stated interest rate             3.40%      
Percentage of principal amount at issuance             99.589%      
Effective interest rate             3.449%      
Fair value of fixed-rate notes               480,400,000    
Fiscal 2016 Senior Notes | Senior Notes | Long-term debt, excluding current portion                    
Debt Instrument [Line Items]                    
Fair value of fixed-rate notes               480,400,000 $ 471,400,000  
Fiscal 2020 Senior Notes | Senior Notes                    
Debt Instrument [Line Items]                    
Principal amount         $ 750,000,000     750,000,000.0    
Stated interest rate         2.90%          
Percentage of principal amount at issuance         99.717%          
Effective interest rate         2.933%          
Fair value of fixed-rate notes               667,700,000 641,000,000.0  
Fiscal 2021 Senior Notes | Senior Notes                    
Debt Instrument [Line Items]                    
Principal amount   $ 1,000,000,000           1,000,000,000    
Stated interest rate   2.60%                
Percentage of principal amount at issuance   99.957%                
Effective interest rate   2.605%                
Fair value of fixed-rate notes               $ 843,500,000    
Fiscal 2021 Senior Notes | Senior Notes | Long-term debt, excluding current portion                    
Debt Instrument [Line Items]                    
Fair value of fixed-rate notes                 $ 817,400,000