UNPKG

@pulumi/scm

Version:

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

80 lines 3.39 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.getServiceConnectionListOutput = exports.getServiceConnectionList = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Retrieves a listing of config items. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * const config = new pulumi.Config(); * // The folder scope for the SCM resource (e.g., 'Shared', 'Predefined', or a specific folder name). * const folderScope = config.get("folderScope") || "Service Connections"; * // ------------------------------------------------------------------ * // Data Source List Lookup * // ------------------------------------------------------------------ * const allConnectionsInFolder = scm.getServiceConnectionList({ * folder: folderScope, * limit: 50, * }); * export const listOfAllConnectionNames = allConnectionsInFolder.then(allConnectionsInFolder => .map(conn => (conn.name))); * export const totalConnectionsCount = allConnectionsInFolder.then(allConnectionsInFolder => allConnectionsInFolder.datas).length; * ``` */ function getServiceConnectionList(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scm:index/getServiceConnectionList:getServiceConnectionList", { "device": args.device, "folder": args.folder, "limit": args.limit, "name": args.name, "offset": args.offset, "snippet": args.snippet, }, opts); } exports.getServiceConnectionList = getServiceConnectionList; /** * Retrieves a listing of config items. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * const config = new pulumi.Config(); * // The folder scope for the SCM resource (e.g., 'Shared', 'Predefined', or a specific folder name). * const folderScope = config.get("folderScope") || "Service Connections"; * // ------------------------------------------------------------------ * // Data Source List Lookup * // ------------------------------------------------------------------ * const allConnectionsInFolder = scm.getServiceConnectionList({ * folder: folderScope, * limit: 50, * }); * export const listOfAllConnectionNames = allConnectionsInFolder.then(allConnectionsInFolder => .map(conn => (conn.name))); * export const totalConnectionsCount = allConnectionsInFolder.then(allConnectionsInFolder => allConnectionsInFolder.datas).length; * ``` */ function getServiceConnectionListOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scm:index/getServiceConnectionList:getServiceConnectionList", { "device": args.device, "folder": args.folder, "limit": args.limit, "name": args.name, "offset": args.offset, "snippet": args.snippet, }, opts); } exports.getServiceConnectionListOutput = getServiceConnectionListOutput; //# sourceMappingURL=getServiceConnectionList.js.map