| 14 | } |
| 15 | |
| 16 | type DecodedResource struct { |
| 17 | Provider string |
| 18 | Region string |
| 19 | Service string |
| 20 | Name string |
| 21 | SubLabel string // non-empty when one resource produces multiple pricing queries (e.g. "Requests", "Duration") |
| 22 | RawType string // original Pulumi resource type, e.g. "aws:ec2/securityGroup:SecurityGroup" |
| 23 | Attrs map[string]string // pricing attributes used for client-side match filtering |
| 24 | QueryAttrs map[string]string // when non-nil, sent to the API instead of Attrs (use when query filters differ from match filters) |
| 25 | Props map[string]string // display properties (instance type, region, etc.) |
| 26 | InputsJSON string // formatted Pulumi input properties for debugging/inspection |
| 27 | PriceFilter string |
| 28 | NoPricing bool // true for resources that don't have pricing (e.g. security groups) |
| 29 | IsFreeType bool // true when the resource type is in the metadata free_types list |
| 30 | RegionFallback bool // true when region was not detected and us-east-1 was used as default |
| 31 | HourlyQty decimal.Decimal // quantity multiplier applied to the hourly rate (e.g. vCPU count × task count) |
| 32 | HourlyQtyLabel string // optional display label for HourlyQty (e.g. "256 × 3 tasks"); overrides numeric display |
| 33 | } |
| 34 | |
| 35 | // PriceEntry is one pricing option for a resource. |
| 36 | type PriceEntry struct { |
nothing calls this directly
no outgoing calls
no test coverage detected