// LegacyString() returns a legacy-style AbsProviderConfig string and should only be used for legacy state shimming.
LegacyString() returns a legacy-style AbsProviderConfig string and should only be used for legacy state shimming.
// LegacyString () returns a legacy - style AbsProviderConfig string and should only be used for legacy state shimming .
func (pc AbsProviderConfig) LegacyString() string {
	if pc.Alias != "" {
		if len(pc.Module) == 0 {
			return fmt.Sprintf("%s.%s.%s", "provider", pc.Provider.LegacyString(), pc.Alias)
		} else {
			return fmt.Sprintf("%s.%s.%s.%s", pc.Module.String(), "provider", pc.Provider.LegacyString(), pc.Alias)
		}
	}
	if len(pc.Module) == 0 {
		return fmt.Sprintf("%s.%s", "provider", pc.Provider.LegacyString())
	}
	return fmt.Sprintf("%s.%s.%s", pc.Module.String(), "provider", pc.Provider.LegacyString())
}
func ( pc AbsProviderConfig ) LegacyString ( ) string { if pc . Alias != " " { if len ( pc . Module ) == 0 { return fmt . Sprintf ( " " , " " , pc . Provider . LegacyString ( ) , pc . Alias ) } else { return fmt . Sprintf ( " " , pc . Module . String ( ) , " " , pc . Provider . LegacyString ( ) , pc . Alias ) } } if len ( pc . Module ) == 0 { return fmt . Sprintf ( " " , " " , pc . Provider . LegacyString ( ) ) } return fmt . Sprintf ( " " , pc . Module . String ( ) , " " , pc . Provider . LegacyString ( ) ) }
LegacyString() returns a legacy-style AbsProviderConfig string and should only be used for legacy state shimming.
LegacyString () returns a legacy - style AbsProviderConfig string and should only be used for legacy state shimming .