Skip to main content

AWS Cost Explorer

Type ID: costExplorer  ·  Kind: Action  ·  Ports: 1 in, 1 out

Interact with AWS Cost Explorer.

Credentials​

AWS Cost Explorer (read-only)

{
"credentials": {
"name": "aws_cost_explorer",
"id": "<credential-id>"
}
}

Resources & operations​

  • Cost and Usage (costAndUsage)
    • Get (get) - Get cost and usage data

Properties​

Common​

PropertyKeyTypeRequiredDefaultPossible valuesApplies when
ResourceresourceoptionsYescostAndUsageCost and Usage (costAndUsage)-
OperationoperationoptionsYesgetGet (get)resource = costAndUsage

Cost and Usage → Get​

PropertyKeyTypeRequiredDefaultPossible valuesApplies when
Date RangedateRangeoptionsYeslast7DaysYesterday (yesterday), Last 7 Days (last7Days), Last 30 Days (last30Days), Month to Date (monthToDate), Last Month (lastMonth), Custom (custom)resource = costAndUsage, operation = get
Start Date (YYYY-MM-DD)startDatestringYes''Start dateresource = costAndUsage, operation = get, dateRange = custom
End Date (YYYY-MM-DD)endDatestringYes''Exclusive. E.g., for data up to and including Jan 31, enter Feb 01.resource = costAndUsage, operation = get, dateRange = custom
GranularitygranularityoptionsYesDAILYDaily (DAILY), Monthly (MONTHLY)resource = costAndUsage, operation = get
MetricmetricoptionsYesNetUnblendedCostNet Unblended Cost (NetUnblendedCost), Net Amortized Cost (NetAmortizedCost), Unblended Cost (UnblendedCost), Blended Cost (BlendedCost), Amortized Cost (AmortizedCost)resource = costAndUsage, operation = get
Group BygroupByjsonNo[]Array of up to two { type: "DIMENSION" | "TAG" | "COST_CATEGORY", key: "string" }resource = costAndUsage, operation = get
Services FilterservicesjsonNo[]Array of service names to filter byresource = costAndUsage, operation = get
Account IDs FilteraccountIdsjsonNo[]Array of account IDs to filter byresource = costAndUsage, operation = get
Raw Filter ExpressionfilterExpressionjsonNo''Advanced: raw AWS Expression objectresource = costAndUsage, operation = get
Output FormatoutputFormatoptionsYessimpleSimple (simple), Raw (raw)resource = costAndUsage, operation = get
LimitlimitnumberNo100Max number of ResultByTime items to fetchresource = costAndUsage, operation = get

Notes​

  • Get output (Simple): { success, totalCost, data, items, truncated, truncationReason }.
  • Get output (Raw): { success, GroupDefinitions, ResultsByTime, items, truncated, truncationReason }.