mirror of https://github.com/pulumi/pulumi.git
32 lines
981 B
Go
32 lines
981 B
Go
// *** WARNING: this file was generated by tool. ***
|
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
package codegentest
|
|
|
|
import (
|
|
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
|
)
|
|
|
|
// Use this function to access the current configuration of the native Azure provider.
|
|
func GetClientConfig(ctx *pulumi.Context, opts ...pulumi.InvokeOption) (*GetClientConfigResult, error) {
|
|
var rv GetClientConfigResult
|
|
err := ctx.Invoke("azure-native:codegentest:getClientConfig", nil, &rv, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &rv, nil
|
|
}
|
|
|
|
// Configuration values returned by getClientConfig.
|
|
type GetClientConfigResult struct {
|
|
// Azure Client ID (Application Object ID).
|
|
ClientId string `pulumi:"clientId"`
|
|
// Azure Object ID of the current user or service principal.
|
|
ObjectId string `pulumi:"objectId"`
|
|
// Azure Subscription ID
|
|
SubscriptionId string `pulumi:"subscriptionId"`
|
|
// Azure Tenant ID
|
|
TenantId string `pulumi:"tenantId"`
|
|
}
|
|
|