Currently this one is working well, and you can customize other options if needed:
Filter = {
"Dimensions": {
"Key": "RECORD_TYPE",
"Values": ["Usage", "Refund", "Tax"], # "Credit" is excluded
"MatchOptions": ["EQUALS"]
}
}
By the way, once you have your plot in the AWS Cost Explorer, you can open the "Amazon Q" chat engine and type something like:
Please what is the API query for this page (group by linked account, but excluding credit payment type) ?