UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

60 lines 1.93 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getClientOutput = exports.getClient = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get info about a Google Cloud IAP Client. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const project = gcp.organizations.getProject({ * projectId: "foobar", * }); * const projectClient = project.then(project => gcp.iap.getClient({ * brand: `projects/${project.number}/brands/[BRAND_NUMBER]`, * clientId: apps.googleusercontent.com, * })); * ``` */ function getClient(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:iap/getClient:getClient", { "brand": args.brand, "clientId": args.clientId, }, opts); } exports.getClient = getClient; /** * Get info about a Google Cloud IAP Client. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const project = gcp.organizations.getProject({ * projectId: "foobar", * }); * const projectClient = project.then(project => gcp.iap.getClient({ * brand: `projects/${project.number}/brands/[BRAND_NUMBER]`, * clientId: apps.googleusercontent.com, * })); * ``` */ function getClientOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:iap/getClient:getClient", { "brand": args.brand, "clientId": args.clientId, }, opts); } exports.getClientOutput = getClientOutput; //# sourceMappingURL=getClient.js.map