UNPKG

@pulumi/gcp

Version:

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

66 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.getTagKeysOutput = exports.getTagKeys = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get tag keys by org or project `parent`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKeys({ * parent: "organizations/12345", * }); * ``` * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKeys({ * parent: "projects/abc", * }); * ``` */ function getTagKeys(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("gcp:tags/getTagKeys:getTagKeys", { "parent": args.parent, }, opts); } exports.getTagKeys = getTagKeys; /** * Get tag keys by org or project `parent`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKeys({ * parent: "organizations/12345", * }); * ``` * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const environmentTagKey = gcp.tags.getTagKeys({ * parent: "projects/abc", * }); * ``` */ function getTagKeysOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("gcp:tags/getTagKeys:getTagKeys", { "parent": args.parent, }, opts); } exports.getTagKeysOutput = getTagKeysOutput; //# sourceMappingURL=getTagKeys.js.map