Deductions & credits

Do I understand that it is the amount I contributed to the HSA that is deductible rather than the amount of expenses I paid with the funds?