UNPKG

@pulumi/gcp

Version:

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

72 lines 2.17 kB
"use strict"; // *** 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! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getTagKeyOutput = exports.getTagKey = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get a tag key by org or project `parent` and `shortName`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKey({ * parent: "organizations/12345", * shortName: "environment", * }); * ``` * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKey({ * parent: "projects/abc", * shortName: "environment", * }); * ``` */ function getTagKey(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:tags/getTagKey:getTagKey", { "parent": args.parent, "shortName": args.shortName, }, opts); } exports.getTagKey = getTagKey; /** * Get a tag key by org or project `parent` and `shortName`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKey({ * parent: "organizations/12345", * shortName: "environment", * }); * ``` * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKey({ * parent: "projects/abc", * shortName: "environment", * }); * ``` */ function getTagKeyOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:tags/getTagKey:getTagKey", { "parent": args.parent, "shortName": args.shortName, }, opts); } exports.getTagKeyOutput = getTagKeyOutput; //# sourceMappingURL=getTagKey.js.map