github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/output-funcs/nodejs/getClientConfig.ts (about) 1 // *** WARNING: this file was generated by test. *** 2 // *** Do not edit by hand unless you're certain you know what you are doing! *** 3 4 import * as pulumi from "@pulumi/pulumi"; 5 import * as utilities from "./utilities"; 6 7 /** 8 * Failing example taken from azure-native. Original doc: Use this function to access the current configuration of the native Azure provider. 9 */ 10 export function getClientConfig(opts?: pulumi.InvokeOptions): Promise<GetClientConfigResult> { 11 12 opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); 13 return pulumi.runtime.invoke("mypkg::getClientConfig", { 14 }, opts); 15 } 16 17 /** 18 * Configuration values returned by getClientConfig. 19 */ 20 export interface GetClientConfigResult { 21 /** 22 * Azure Client ID (Application Object ID). 23 */ 24 readonly clientId: string; 25 /** 26 * Azure Object ID of the current user or service principal. 27 */ 28 readonly objectId: string; 29 /** 30 * Azure Subscription ID 31 */ 32 readonly subscriptionId: string; 33 /** 34 * Azure Tenant ID 35 */ 36 readonly tenantId: string; 37 }