@pierskarsenbarg/sdm
Version:
A Pulumi package for creating and managing StrongDM cloud resources.
94 lines (93 loc) • 2.5 kB
TypeScript
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
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdm from "@pierskarsenbarg/sdm";
*
* const workflowRoleQuery = sdm.getWorkflowRole({
* roleId: "r-9862923",
* workflowId: "aw-7935485",
* });
* ```
*/
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
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdm from "@pierskarsenbarg/sdm";
*
* const workflowRoleQuery = sdm.getWorkflowRole({
* roleId: "r-9862923",
* workflowId: "aw-7935485",
* });
* ```
*/
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>;
/**
* The role id.
*/
roleId?: pulumi.Input<string>;
/**
* The workflow id.
*/
workflowId?: pulumi.Input<string>;
}