UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

68 lines 2.3 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.getTagOutput = exports.getTag = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Tag data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up the "production" tag by its name. * const scmTagDs = scm.getTag({ * id: "66cbe56c-0300-4905-8455-d384978a0082", * }); * export const tagOutputs = { * productionId: scmTagDs.then(scmTagDs => scmTagDs.id), * productionColor: scmTagDs.then(scmTagDs => scmTagDs.color), * productionFolder: scmTagDs.then(scmTagDs => scmTagDs.folder), * productionSnippet: scmTagDs.then(scmTagDs => scmTagDs.snippet), * productionDevice: scmTagDs.then(scmTagDs => scmTagDs.device), * }; * ``` */ function getTag(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scm:index/getTag:getTag", { "id": args.id, "name": args.name, }, opts); } exports.getTag = getTag; /** * Tag data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up the "production" tag by its name. * const scmTagDs = scm.getTag({ * id: "66cbe56c-0300-4905-8455-d384978a0082", * }); * export const tagOutputs = { * productionId: scmTagDs.then(scmTagDs => scmTagDs.id), * productionColor: scmTagDs.then(scmTagDs => scmTagDs.color), * productionFolder: scmTagDs.then(scmTagDs => scmTagDs.folder), * productionSnippet: scmTagDs.then(scmTagDs => scmTagDs.snippet), * productionDevice: scmTagDs.then(scmTagDs => scmTagDs.device), * }; * ``` */ function getTagOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scm:index/getTag:getTag", { "id": args.id, "name": args.name, }, opts); } exports.getTagOutput = getTagOutput; //# sourceMappingURL=getTag.js.map