@pierskarsenbarg/sdm
Version:
A Pulumi package for creating and managing StrongDM cloud resources.
115 lines • 4.52 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWorkflowOutput = exports.getWorkflow = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("./utilities"));
/**
* Workflows are the collection of rules that define the resources to which access can be requested,
* the users that can request that access, and the mechanism for approving those requests which can either
* but automatic approval or a set of users authorized to approve the requests.
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdm from "@pierskarsenbarg/sdm";
*
* // Query workflow by name
* const workflowByName = sdm.getWorkflow({
* name: "workflow example",
* });
* // Query workflow by ID
* const workflowById = sdm.getWorkflow({
* id: "w-1234567890abcdef",
* });
* // Query workflow by approval flow ID
* const workflowByApprovalFlow = sdm.getWorkflow({
* approvalFlowId: "aw-1234567890abcdef",
* });
* ```
* <!--End PulumiCodeChooser -->
*/
function getWorkflow(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("sdm:index/getWorkflow:getWorkflow", {
"accessRequestFixedDuration": args.accessRequestFixedDuration,
"accessRequestMaxDuration": args.accessRequestMaxDuration,
"approvalFlowId": args.approvalFlowId,
"autoGrant": args.autoGrant,
"description": args.description,
"enabled": args.enabled,
"id": args.id,
"name": args.name,
"weight": args.weight,
}, opts);
}
exports.getWorkflow = getWorkflow;
/**
* Workflows are the collection of rules that define the resources to which access can be requested,
* the users that can request that access, and the mechanism for approving those requests which can either
* but automatic approval or a set of users authorized to approve the requests.
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdm from "@pierskarsenbarg/sdm";
*
* // Query workflow by name
* const workflowByName = sdm.getWorkflow({
* name: "workflow example",
* });
* // Query workflow by ID
* const workflowById = sdm.getWorkflow({
* id: "w-1234567890abcdef",
* });
* // Query workflow by approval flow ID
* const workflowByApprovalFlow = sdm.getWorkflow({
* approvalFlowId: "aw-1234567890abcdef",
* });
* ```
* <!--End PulumiCodeChooser -->
*/
function getWorkflowOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("sdm:index/getWorkflow:getWorkflow", {
"accessRequestFixedDuration": args.accessRequestFixedDuration,
"accessRequestMaxDuration": args.accessRequestMaxDuration,
"approvalFlowId": args.approvalFlowId,
"autoGrant": args.autoGrant,
"description": args.description,
"enabled": args.enabled,
"id": args.id,
"name": args.name,
"weight": args.weight,
}, opts);
}
exports.getWorkflowOutput = getWorkflowOutput;
//# sourceMappingURL=getWorkflow.js.map