use cty.Value for connection info

For now this will be an encoded map, but it allows for a more complex
schema in the future.
This commit is contained in:
James Bardin 2018-06-21 15:03:53 -04:00 committed by Martin Atkins
parent 960553e18b
commit dc78269a3c

View File

@ -231,9 +231,9 @@ type ApplyResourceChangeResponse struct {
// known state of the resource, if it exists.
NewState cty.Value
// Connection is a map of string values used to return any information
// provisioners might require to connect to the resource.
Connection map[string]string
// Connection is used to return any information provisioners might require
// to cty.Value
Connection cty.Value
// Private is an opaque blob that will be stored in state along with the
// resource. It is intended only for interpretation by the provider itself.