@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
68 lines • 2.16 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to access the configuration of the Google Cloud provider.
*
* > **Warning**: This resource persists a sensitive credential in the remote state used by Terraform.
* Please take appropriate measures to protect your remote state.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const current = gcp.organizations.getClientConfig({});
* export const project = current.then(current => current.project);
* ```
*
* ### Configure Kubernetes Provider With OAuth2 Access Token
*/
export declare function getClientConfig(opts?: pulumi.InvokeOptions): Promise<GetClientConfigResult>;
/**
* 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 default labels configured on the provider.
*/
readonly defaultLabels: {
[key: string]: string;
};
readonly id: 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;
}
/**
* Use this data source to access the configuration of the Google Cloud provider.
*
* > **Warning**: This resource persists a sensitive credential in the remote state used by Terraform.
* Please take appropriate measures to protect your remote state.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const current = gcp.organizations.getClientConfig({});
* export const project = current.then(current => current.project);
* ```
*
* ### Configure Kubernetes Provider With OAuth2 Access Token
*/
export declare function getClientConfigOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetClientConfigResult>;
//# sourceMappingURL=getClientConfig.d.ts.map