PropertyMapToAny converts a Pulumi PropertyMap to a plain map[string]any.
(pm resource.PropertyMap)
| 88 | |
| 89 | // PropertyMapToAny converts a Pulumi PropertyMap to a plain map[string]any. |
| 90 | func PropertyMapToAny(pm resource.PropertyMap) map[string]any { |
| 91 | out := make(map[string]any, len(pm)) |
| 92 | for k, v := range pm { |
| 93 | out[string(k)] = PropertyValueToAny(v) |
| 94 | } |
| 95 | return out |
| 96 | } |
| 97 | |
| 98 | // PropertyValueToAny converts a Pulumi PropertyValue to a plain Go value. |
| 99 | func PropertyValueToAny(v resource.PropertyValue) any { |
no test coverage detected