22// SPDX-License-Identifier: MPL-2.0
33package tfjson
44
5- import "encoding/json"
6-
75const (
86 MessageListStart LogMessageType = "list_start"
97 MessageListResourceFound LogMessageType = "list_resource_found"
@@ -17,9 +15,9 @@ type ListStartMessage struct {
1715}
1816
1917type ListStartData struct {
20- Address string `json:"address"`
21- ResourceType string `json:"resource_type"`
22- InputConfig map [string ]json. RawMessage `json:"input_config,omitempty"`
18+ Address string `json:"address"`
19+ ResourceType string `json:"resource_type"`
20+ InputConfig map [string ]any `json:"input_config,omitempty"`
2321}
2422
2523// ListResourceFoundMessage represents "query" result message of type "list_resource_found"
@@ -29,14 +27,14 @@ type ListResourceFoundMessage struct {
2927}
3028
3129type ListResourceFoundData struct {
32- Address string `json:"address"`
33- DisplayName string `json:"display_name"`
34- Identity map [string ]json. RawMessage `json:"identity"`
35- IdentityVersion int64 `json:"identity_version"`
36- ResourceType string `json:"resource_type"`
37- ResourceObject map [string ]json. RawMessage `json:"resource_object,omitempty"`
38- Config string `json:"config,omitempty"`
39- ImportConfig string `json:"import_config,omitempty"`
30+ Address string `json:"address"`
31+ DisplayName string `json:"display_name"`
32+ Identity map [string ]any `json:"identity"`
33+ IdentityVersion int64 `json:"identity_version"`
34+ ResourceType string `json:"resource_type"`
35+ ResourceObject map [string ]any `json:"resource_object,omitempty"`
36+ Config string `json:"config,omitempty"`
37+ ImportConfig string `json:"import_config,omitempty"`
4038}
4139
4240// ListCompleteMessage represents "query" result message of type "list_complete"
0 commit comments