UNPKG

@pulumi/gcp

Version:

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

58 lines 2.08 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.getCertificateOutput = exports.getCertificate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get info about a Google Compute SSL Certificate from its name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const myCert = gcp.compute.getCertificate({ * name: "my-cert", * }); * export const certificate = myCert.then(myCert => myCert.certificate); * export const certificateId = myCert.then(myCert => myCert.certificateId); * export const selfLink = myCert.then(myCert => myCert.selfLink); * ``` */ function getCertificate(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:compute/getCertificate:getCertificate", { "name": args.name, "project": args.project, }, opts); } exports.getCertificate = getCertificate; /** * Get info about a Google Compute SSL Certificate from its name. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const myCert = gcp.compute.getCertificate({ * name: "my-cert", * }); * export const certificate = myCert.then(myCert => myCert.certificate); * export const certificateId = myCert.then(myCert => myCert.certificateId); * export const selfLink = myCert.then(myCert => myCert.selfLink); * ``` */ function getCertificateOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:compute/getCertificate:getCertificate", { "name": args.name, "project": args.project, }, opts); } exports.getCertificateOutput = getCertificateOutput; //# sourceMappingURL=getCertificate.js.map