JSONResource is one resource entry for JSON output.
| 34 | |
| 35 | // JSONResource is one resource entry for JSON output. |
| 36 | type JSONResource struct { |
| 37 | Name string `json:"name"` |
| 38 | SubLabel string `json:"sub_label,omitempty"` |
| 39 | Product string `json:"product"` |
| 40 | Region string `json:"region,omitempty"` |
| 41 | RegionFallback bool `json:"region_fallback,omitempty"` |
| 42 | Props map[string]string `json:"props,omitempty"` |
| 43 | Prices []JSONPriceEntry `json:"prices,omitempty"` |
| 44 | OnDemandRate string `json:"on_demand_rate,omitempty"` |
| 45 | Status string `json:"status,omitempty"` |
| 46 | // Usage-based fields |
| 47 | IsUsageBased bool `json:"is_usage_based,omitempty"` |
| 48 | UnitRate string `json:"unit_rate,omitempty"` |
| 49 | UsageUnit string `json:"usage_unit,omitempty"` |
| 50 | UsageQty float64 `json:"usage_qty,omitempty"` |
| 51 | UsageDefault bool `json:"usage_default,omitempty"` |
| 52 | UsageMonthly string `json:"cost_monthly,omitempty"` |
| 53 | // Hourly quantity multiplier (e.g. vCPU × task count for Fargate) |
| 54 | HourlyQty string `json:"hourly_qty,omitempty"` |
| 55 | } |
| 56 | |
| 57 | // JSONTotals holds the cost summary for JSON output. |
| 58 | type JSONTotals struct { |
nothing calls this directly
no outgoing calls
no test coverage detected