This PR handles the case in which Cost Explorer has not been manually launched by the customer, by having the GET /cost-monitoring endpoint return active: false, instead of returning an error
Changes
update is_active() to that it returns False in case of a is_costexplorer_not_active_exception
How Has This Been Tested?
manually, by assuming credentials of an account where Cost Explorer is not enabled and verifying the client successfully returns False
verified that, before the fix, it raises an Exception
Description
This PR handles the case in which Cost Explorer has not been manually launched by the customer, by having the
GET /cost-monitoring
endpoint returnactive: false
, instead of returning an errorChanges
is_active()
to that it returnsFalse
in case of ais_costexplorer_not_active_exception
How Has This Been Tested?
PR Quality Checklist
react-i18next
library (useTranslation hook and/or Trans component), see an example herenpm run build
builds without any errorIn order to increase the likelihood of your contribution being accepted, please make sure you have read both the Contributing Guidelines and the Project Guidelines
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.