add config value to ApplyResourceChange

Providers will also need the config for reference during apply, in case
some of the config values were still unknown during plan.
This commit is contained in:
James Bardin 2018-07-25 17:49:04 -04:00 committed by Martin Atkins
parent 05e85885f9
commit cd53b333f2
1 changed files with 6 additions and 0 deletions

View File

@ -227,6 +227,12 @@ type ApplyResourceChangeRequest struct {
// represent the new state, minus any remaining computed attributes.
PlannedState cty.Value
// Config is the resource configuration, before being merged with the
// PriorState. Any value not explicitly set in the configuration will be
// null. Config is supplied for reference, but Provider implementations
// should prefer the PlannedState in most circumstances.
Config cty.Value
// PlannedPrivate is the same value as returned by PlanResourceChange.
PlannedPrivate []byte
}