github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/output-funcs/go/mypkg/getClientConfig.go (about) 1 // Code generated by test DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package mypkg 5 6 import ( 7 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 8 ) 9 10 // Failing example taken from azure-native. Original doc: Use this function to access the current configuration of the native Azure provider. 11 func GetClientConfig(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetClientConfigResult, error) { 12 var rv GetClientConfigResult 13 err := ctx.Invoke("mypkg::getClientConfig", nil, &rv, opts...) 14 if err != nil { 15 return nil, err 16 } 17 return &rv, nil 18 } 19 20 // Configuration values returned by getClientConfig. 21 type GetClientConfigResult struct { 22 // Azure Client ID (Application Object ID). 23 ClientId string `pulumi:"clientId"` 24 // Azure Object ID of the current user or service principal. 25 ObjectId string `pulumi:"objectId"` 26 // Azure Subscription ID 27 SubscriptionId string `pulumi:"subscriptionId"` 28 // Azure Tenant ID 29 TenantId string `pulumi:"tenantId"` 30 }