Skip to main content
The Go SDK and docs are currently in beta. Report issues on GitHub.

Supported Types

ProviderName

only := components.CreateOnlyProviderName(components.ProviderName{/* values here */})

only := components.CreateOnlyStr(string{/* values here */})

Union Discrimination

Use the Type field to determine which variant is active, then access the corresponding field:
switch only.Type {
	case components.OnlyTypeProviderName:
		// only.ProviderName is populated
	case components.OnlyTypeStr:
		// only.Str is populated
}