UNPKG

@pierskarsenbarg/sdm

Version:

A Pulumi package for creating and managing StrongDM cloud resources.

127 lines (126 loc) 3.83 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ApprovalWorkflows are the mechanism by which requests for access can be viewed by authorized * approvers and be approved or denied. * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * const manualApprovalWorkflowQuery = sdm.getApprovalWorkflow({ * approvalMode: "manual", * name: "approval workflow manual", * }); * const autoGrantApprovalWorkflowQuery = sdm.getApprovalWorkflow({ * approvalMode: "automatic", * name: "approval workflow auto", * }); * ``` */ export declare function getApprovalWorkflow(args?: GetApprovalWorkflowArgs, opts?: pulumi.InvokeOptions): Promise<GetApprovalWorkflowResult>; /** * A collection of arguments for invoking getApprovalWorkflow. */ export interface GetApprovalWorkflowArgs { /** * Approval mode of the ApprovalWorkflow */ approvalMode?: string; /** * The approval steps of this approval workflow */ approvalSteps?: inputs.GetApprovalWorkflowApprovalStep[]; /** * Optional description of the ApprovalWorkflow. */ description?: string; /** * Unique identifier of the ApprovalWorkflow. */ id?: string; /** * Unique human-readable name of the ApprovalWorkflow. */ name?: string; } /** * A collection of values returned by getApprovalWorkflow. */ export interface GetApprovalWorkflowResult { /** * Approval mode of the ApprovalWorkflow */ readonly approvalMode?: string; /** * The approval steps of this approval workflow */ readonly approvalSteps?: outputs.GetApprovalWorkflowApprovalStep[]; /** * A list where each element has the following attributes: */ readonly approvalWorkflows: outputs.GetApprovalWorkflowApprovalWorkflow[]; /** * Optional description of the ApprovalWorkflow. */ readonly description?: string; /** * Unique identifier of the ApprovalWorkflow. */ readonly id?: string; /** * a list of strings of ids of data sources that match the given arguments. */ readonly ids: string[]; /** * Unique human-readable name of the ApprovalWorkflow. */ readonly name?: string; } /** * ApprovalWorkflows are the mechanism by which requests for access can be viewed by authorized * approvers and be approved or denied. * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * const manualApprovalWorkflowQuery = sdm.getApprovalWorkflow({ * approvalMode: "manual", * name: "approval workflow manual", * }); * const autoGrantApprovalWorkflowQuery = sdm.getApprovalWorkflow({ * approvalMode: "automatic", * name: "approval workflow auto", * }); * ``` */ export declare function getApprovalWorkflowOutput(args?: GetApprovalWorkflowOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetApprovalWorkflowResult>; /** * A collection of arguments for invoking getApprovalWorkflow. */ export interface GetApprovalWorkflowOutputArgs { /** * Approval mode of the ApprovalWorkflow */ approvalMode?: pulumi.Input<string>; /** * The approval steps of this approval workflow */ approvalSteps?: pulumi.Input<pulumi.Input<inputs.GetApprovalWorkflowApprovalStepArgs>[]>; /** * Optional description of the ApprovalWorkflow. */ description?: pulumi.Input<string>; /** * Unique identifier of the ApprovalWorkflow. */ id?: pulumi.Input<string>; /** * Unique human-readable name of the ApprovalWorkflow. */ name?: pulumi.Input<string>; }