UNPKG

@pierskarsenbarg/sdm

Version:

A Pulumi package for creating and managing StrongDM cloud resources.

108 lines 3.12 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * 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 * * <!--Start PulumiCodeChooser --> * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * // Query workflow role by workflow and role IDs * const workflowRoleQuery = sdm.getWorkflowRole({ * workflowId: "w-1234567890abcdef", * roleId: "r-1234567890abcdef", * }); * // Query workflow role by specific ID * const workflowRoleById = sdm.getWorkflowRole({ * id: "wr-1234567890abcdef", * }); * ``` * <!--End PulumiCodeChooser --> */ export declare function getWorkflowRole(args?: GetWorkflowRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkflowRoleResult>; /** * A collection of arguments for invoking getWorkflowRole. */ export interface GetWorkflowRoleArgs { /** * Unique identifier of the WorkflowRole. */ id?: string; /** * The role id. */ roleId?: string; /** * The workflow id. */ workflowId?: string; } /** * A collection of values returned by getWorkflowRole. */ export interface GetWorkflowRoleResult { /** * Unique identifier of the WorkflowRole. */ readonly id?: string; /** * a list of strings of ids of data sources that match the given arguments. */ readonly ids: string[]; /** * The role id. */ readonly roleId?: string; /** * The workflow id. */ readonly workflowId?: string; /** * A list where each element has the following attributes: */ readonly workflowRoles: outputs.GetWorkflowRoleWorkflowRole[]; } /** * 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 * * <!--Start PulumiCodeChooser --> * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdm from "@pierskarsenbarg/sdm"; * * // Query workflow role by workflow and role IDs * const workflowRoleQuery = sdm.getWorkflowRole({ * workflowId: "w-1234567890abcdef", * roleId: "r-1234567890abcdef", * }); * // Query workflow role by specific ID * const workflowRoleById = sdm.getWorkflowRole({ * id: "wr-1234567890abcdef", * }); * ``` * <!--End PulumiCodeChooser --> */ export declare function getWorkflowRoleOutput(args?: GetWorkflowRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetWorkflowRoleResult>; /** * A collection of arguments for invoking getWorkflowRole. */ export interface GetWorkflowRoleOutputArgs { /** * Unique identifier of the WorkflowRole. */ id?: pulumi.Input<string | undefined>; /** * The role id. */ roleId?: pulumi.Input<string | undefined>; /** * The workflow id. */ workflowId?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getWorkflowRole.d.ts.map