UNPKG

@pulumi/gcp

Version:

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

52 lines 1.63 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.getSecretOutput = exports.getSecret = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get information about a Secret Manager Secret * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const qa = gcp.secretmanager.getSecret({ * secretId: "foobar", * }); * ``` */ function getSecret(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:secretmanager/getSecret:getSecret", { "project": args.project, "secretId": args.secretId, }, opts); } exports.getSecret = getSecret; /** * Use this data source to get information about a Secret Manager Secret * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const qa = gcp.secretmanager.getSecret({ * secretId: "foobar", * }); * ``` */ function getSecretOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:secretmanager/getSecret:getSecret", { "project": args.project, "secretId": args.secretId, }, opts); } exports.getSecretOutput = getSecretOutput; //# sourceMappingURL=getSecret.js.map