Skip to content

Commit

Permalink
Merge pull request #117 from sebasslash/add-replace-paths-field
Browse files Browse the repository at this point in the history
Add `ReplacePaths` to `Change` struct
  • Loading branch information
kmoe authored Dec 21, 2023
2 parents 41fa8df + e112901 commit 884568c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,15 @@ type Change struct {
// might change in the future. However, not all Importing changes will
// contain generated config.
GeneratedConfig string `json:"generated_config,omitempty"`

// ReplacePaths contains a set of paths that point to attributes/elements
// that are causing the overall resource to be replaced rather than simply
// updated.
//
// This field is always a slice of indexes, where an index in this context
// is either an integer pointing to a child of a set/list, or a string
// pointing to the child of a map, object, or block.
ReplacePaths []interface{} `json:"replace_paths,omitempty"`
}

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

0 comments on commit 884568c

Please sign in to comment.