UNPKG

@pierskarsenbarg/sdm

Version:

A Pulumi package for creating and managing StrongDM cloud resources.

58 lines 2.05 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.getWorkflowRoleOutput = exports.getWorkflowRole = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * WorkflowRole links a role to a workflow. The linked roles indicate which roles a user must be a part of * to request access to a resource via the workflow. * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * const workflowRoleQuery = sdm.getWorkflowRole({ * roleId: "r-9862923", * workflowId: "aw-7935485", * }); * ``` */ function getWorkflowRole(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("sdm:index/getWorkflowRole:getWorkflowRole", { "id": args.id, "roleId": args.roleId, "workflowId": args.workflowId, }, opts); } exports.getWorkflowRole = getWorkflowRole; /** * WorkflowRole links a role to a workflow. The linked roles indicate which roles a user must be a part of * to request access to a resource via the workflow. * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * const workflowRoleQuery = sdm.getWorkflowRole({ * roleId: "r-9862923", * workflowId: "aw-7935485", * }); * ``` */ function getWorkflowRoleOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("sdm:index/getWorkflowRole:getWorkflowRole", { "id": args.id, "roleId": args.roleId, "workflowId": args.workflowId, }, opts); } exports.getWorkflowRoleOutput = getWorkflowRoleOutput; //# sourceMappingURL=getWorkflowRole.js.map