UNPKG

@pulumi/scm

Version:

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

64 lines 2.26 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.getPbfRuleOutput = exports.getPbfRule = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * PbfRule data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Define the data source (the item to be retrieved via API GET) * const pbfExternalWebTestGet = scm.getPbfRule({ * id: "044d67ad-1c36-4b97-bbf4-584445fe8a7d", * }); * export const retrievedIDAndName = { * id: pbfExternalWebTestGet.then(pbfExternalWebTestGet => pbfExternalWebTestGet.id), * name: pbfExternalWebTestGet.then(pbfExternalWebTestGet => pbfExternalWebTestGet.name), * }; * export const recievedResponse = pbfExternalWebTestGet; * ``` */ function getPbfRule(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scm:index/getPbfRule:getPbfRule", { "id": args.id, "name": args.name, }, opts); } exports.getPbfRule = getPbfRule; /** * PbfRule data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Define the data source (the item to be retrieved via API GET) * const pbfExternalWebTestGet = scm.getPbfRule({ * id: "044d67ad-1c36-4b97-bbf4-584445fe8a7d", * }); * export const retrievedIDAndName = { * id: pbfExternalWebTestGet.then(pbfExternalWebTestGet => pbfExternalWebTestGet.id), * name: pbfExternalWebTestGet.then(pbfExternalWebTestGet => pbfExternalWebTestGet.name), * }; * export const recievedResponse = pbfExternalWebTestGet; * ``` */ function getPbfRuleOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scm:index/getPbfRule:getPbfRule", { "id": args.id, "name": args.name, }, opts); } exports.getPbfRuleOutput = getPbfRuleOutput; //# sourceMappingURL=getPbfRule.js.map