code: func GetAtt(ref, attr interface{}) interface{} {
  	switch v := ref.(type) {
  	case NamedResource:
  		ref = v.Name
  	}
  	return map[string][]interface{}{"Fn::GetAtt": []interface{}{ref, attr}}
  }
docs: // GetAtt provides a helper for the GetAtt function.