code: func StateValueFromInstanceState(is *terraform.InstanceState, ty cty.Type) (cty.Value, error) {
  	return is.AttrsAsObjectValue(ty)
  }
docs: // StateValueFromInstanceState converts a terraform.InstanceState to a
  // cty.Value as described by the provided cty.Type, and maintains the resource
  // ID as the "id" attribute.