code: func AttributePathToPath(ap *proto.AttributePath) cty.Path {
  	var p cty.Path
  	for _, step := range ap.Steps {
  		switch selector := step.Selector.(type) {
  		case *proto.AttributePath_Step_AttributeName:
  			p = p.GetAttr(selector.AttributeName)
  		case *proto.AttributePath_Step_ElementKeyString:
  			p = p.Index(cty.StringVal(selector.ElementKeyString))
  		case *proto.AttributePath_Step_ElementKeyInt:
  			p = p.Index(cty.NumberIntVal(selector.ElementKeyInt))
  		}
  	}
  	return p
  }
docs: // AttributePathToPath takes the proto encoded path and converts it to a cty.Path