Skip to content

Commit e112901

Browse files
committed
Add ReplacePaths to Change struct
1 parent 41fa8df commit e112901

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

plan.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,15 @@ type Change struct {
246246
// might change in the future. However, not all Importing changes will
247247
// contain generated config.
248248
GeneratedConfig string `json:"generated_config,omitempty"`
249+
250+
// ReplacePaths contains a set of paths that point to attributes/elements
251+
// that are causing the overall resource to be replaced rather than simply
252+
// updated.
253+
//
254+
// This field is always a slice of indexes, where an index in this context
255+
// is either an integer pointing to a child of a set/list, or a string
256+
// pointing to the child of a map, object, or block.
257+
ReplacePaths []interface{} `json:"replace_paths,omitempty"`
249258
}
250259

251260
// Importing is a nested object for the resource import metadata.

0 commit comments

Comments
 (0)