-
Notifications
You must be signed in to change notification settings - Fork 52
/
getClientConfig.ts
63 lines (58 loc) · 1.86 KB
/
getClientConfig.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
import * as utilities from "../utilities";
/**
* Use this data source to access the configuration of the Google Cloud provider.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const current = gcp.organizations.getClientConfig({});
*
* export const project = current.project;
* ```
*
* > This content is derived from https://github.com/terraform-providers/terraform-provider-google/blob/master/website/docs/d/client_config.html.markdown.
*/
export function getClientConfig(opts?: pulumi.InvokeOptions): Promise<GetClientConfigResult> & GetClientConfigResult {
if (!opts) {
opts = {}
}
if (!opts.version) {
opts.version = utilities.getVersion();
}
const promise: Promise<GetClientConfigResult> = pulumi.runtime.invoke("gcp:organizations/getClientConfig:getClientConfig", {
}, opts);
return pulumi.utils.liftProperties(promise, opts);
}
/**
* A collection of values returned by getClientConfig.
*/
export interface GetClientConfigResult {
/**
* The OAuth2 access token used by the client to authenticate against the Google Cloud API.
*/
readonly accessToken: string;
/**
* The ID of the project to apply any resources to.
*/
readonly project: string;
/**
* The region to operate under.
*/
readonly region: string;
/**
* The zone to operate under.
*/
readonly zone: string;
/**
* id is the provider-assigned unique ID for this managed resource.
*/
readonly id: string;
}