Viewing docs for StrongDM v1.34.5
published on Sunday, Mar 1, 2026 by Piers Karsenbarg
published on Sunday, Mar 1, 2026 by Piers Karsenbarg
Viewing docs for StrongDM v1.34.5
published on Sunday, Mar 1, 2026 by Piers Karsenbarg
published on Sunday, Mar 1, 2026 by Piers Karsenbarg
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
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",
});
import pulumi
import pulumi_sdm as sdm
# Query workflow role by workflow and role IDs
workflow_role_query = sdm.get_workflow_role(workflow_id="w-1234567890abcdef",
role_id="r-1234567890abcdef")
# Query workflow role by specific ID
workflow_role_by_id = sdm.get_workflow_role(id="wr-1234567890abcdef")
package main
import (
"github.com/pierskarsenbarg/pulumi-sdm/sdk/go/sdm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Query workflow role by workflow and role IDs
_, err := sdm.LookupWorkflowRole(ctx, &sdm.LookupWorkflowRoleArgs{
WorkflowId: pulumi.StringRef("w-1234567890abcdef"),
RoleId: pulumi.StringRef("r-1234567890abcdef"),
}, nil)
if err != nil {
return err
}
// Query workflow role by specific ID
_, err = sdm.LookupWorkflowRole(ctx, &sdm.LookupWorkflowRoleArgs{
Id: pulumi.StringRef("wr-1234567890abcdef"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdm = PiersKarsenbarg.Sdm;
return await Deployment.RunAsync(() =>
{
// Query workflow role by workflow and role IDs
var workflowRoleQuery = Sdm.GetWorkflowRole.Invoke(new()
{
WorkflowId = "w-1234567890abcdef",
RoleId = "r-1234567890abcdef",
});
// Query workflow role by specific ID
var workflowRoleById = Sdm.GetWorkflowRole.Invoke(new()
{
Id = "wr-1234567890abcdef",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sdm.SdmFunctions;
import com.pulumi.sdm.inputs.GetWorkflowRoleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Query workflow role by workflow and role IDs
final var workflowRoleQuery = SdmFunctions.getWorkflowRole(GetWorkflowRoleArgs.builder()
.workflowId("w-1234567890abcdef")
.roleId("r-1234567890abcdef")
.build());
// Query workflow role by specific ID
final var workflowRoleById = SdmFunctions.getWorkflowRole(GetWorkflowRoleArgs.builder()
.id("wr-1234567890abcdef")
.build());
}
}
variables:
# Query workflow role by workflow and role IDs
workflowRoleQuery:
fn::invoke:
function: sdm:getWorkflowRole
arguments:
workflowId: w-1234567890abcdef
roleId: r-1234567890abcdef
# Query workflow role by specific ID
workflowRoleById:
fn::invoke:
function: sdm:getWorkflowRole
arguments:
id: wr-1234567890abcdef
Using getWorkflowRole
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWorkflowRole(args: GetWorkflowRoleArgs, opts?: InvokeOptions): Promise<GetWorkflowRoleResult>
function getWorkflowRoleOutput(args: GetWorkflowRoleOutputArgs, opts?: InvokeOptions): Output<GetWorkflowRoleResult>def get_workflow_role(id: Optional[str] = None,
role_id: Optional[str] = None,
workflow_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkflowRoleResult
def get_workflow_role_output(id: Optional[pulumi.Input[str]] = None,
role_id: Optional[pulumi.Input[str]] = None,
workflow_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkflowRoleResult]func LookupWorkflowRole(ctx *Context, args *LookupWorkflowRoleArgs, opts ...InvokeOption) (*LookupWorkflowRoleResult, error)
func LookupWorkflowRoleOutput(ctx *Context, args *LookupWorkflowRoleOutputArgs, opts ...InvokeOption) LookupWorkflowRoleResultOutput> Note: This function is named LookupWorkflowRole in the Go SDK.
public static class GetWorkflowRole
{
public static Task<GetWorkflowRoleResult> InvokeAsync(GetWorkflowRoleArgs args, InvokeOptions? opts = null)
public static Output<GetWorkflowRoleResult> Invoke(GetWorkflowRoleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkflowRoleResult> getWorkflowRole(GetWorkflowRoleArgs args, InvokeOptions options)
public static Output<GetWorkflowRoleResult> getWorkflowRole(GetWorkflowRoleArgs args, InvokeOptions options)
fn::invoke:
function: sdm:index/getWorkflowRole:getWorkflowRole
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Unique identifier of the WorkflowRole.
- Role
Id string - The role id.
- Workflow
Id string - The workflow id.
- Id string
- Unique identifier of the WorkflowRole.
- Role
Id string - The role id.
- Workflow
Id string - The workflow id.
- id String
- Unique identifier of the WorkflowRole.
- role
Id String - The role id.
- workflow
Id String - The workflow id.
- id string
- Unique identifier of the WorkflowRole.
- role
Id string - The role id.
- workflow
Id string - The workflow id.
- id str
- Unique identifier of the WorkflowRole.
- role_
id str - The role id.
- workflow_
id str - The workflow id.
- id String
- Unique identifier of the WorkflowRole.
- role
Id String - The role id.
- workflow
Id String - The workflow id.
getWorkflowRole Result
The following output properties are available:
- Ids List<string>
- a list of strings of ids of data sources that match the given arguments.
- Workflow
Roles List<PiersKarsenbarg. Sdm. Outputs. Get Workflow Role Workflow Role> - A list where each element has the following attributes:
- Id string
- Unique identifier of the WorkflowRole.
- Role
Id string - The role id.
- Workflow
Id string - The workflow id.
- Ids []string
- a list of strings of ids of data sources that match the given arguments.
- Workflow
Roles []GetWorkflow Role Workflow Role - A list where each element has the following attributes:
- Id string
- Unique identifier of the WorkflowRole.
- Role
Id string - The role id.
- Workflow
Id string - The workflow id.
- ids List<String>
- a list of strings of ids of data sources that match the given arguments.
- workflow
Roles List<GetWorkflow Role Workflow Role> - A list where each element has the following attributes:
- id String
- Unique identifier of the WorkflowRole.
- role
Id String - The role id.
- workflow
Id String - The workflow id.
- ids string[]
- a list of strings of ids of data sources that match the given arguments.
- workflow
Roles GetWorkflow Role Workflow Role[] - A list where each element has the following attributes:
- id string
- Unique identifier of the WorkflowRole.
- role
Id string - The role id.
- workflow
Id string - The workflow id.
- ids Sequence[str]
- a list of strings of ids of data sources that match the given arguments.
- workflow_
roles Sequence[GetWorkflow Role Workflow Role] - A list where each element has the following attributes:
- id str
- Unique identifier of the WorkflowRole.
- role_
id str - The role id.
- workflow_
id str - The workflow id.
- ids List<String>
- a list of strings of ids of data sources that match the given arguments.
- workflow
Roles List<Property Map> - A list where each element has the following attributes:
- id String
- Unique identifier of the WorkflowRole.
- role
Id String - The role id.
- workflow
Id String - The workflow id.
Supporting Types
GetWorkflowRoleWorkflowRole
- Id string
- Unique identifier of the WorkflowRole.
- Role
Id string - The role id.
- Workflow
Id string - The workflow id.
- Id string
- Unique identifier of the WorkflowRole.
- Role
Id string - The role id.
- Workflow
Id string - The workflow id.
- id String
- Unique identifier of the WorkflowRole.
- role
Id String - The role id.
- workflow
Id String - The workflow id.
- id string
- Unique identifier of the WorkflowRole.
- role
Id string - The role id.
- workflow
Id string - The workflow id.
- id str
- Unique identifier of the WorkflowRole.
- role_
id str - The role id.
- workflow_
id str - The workflow id.
- id String
- Unique identifier of the WorkflowRole.
- role
Id String - The role id.
- workflow
Id String - The workflow id.
Package Details
- Repository
- sdm pierskarsenbarg/pulumi-sdm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sdmTerraform Provider.
Viewing docs for StrongDM v1.34.5
published on Sunday, Mar 1, 2026 by Piers Karsenbarg
published on Sunday, Mar 1, 2026 by Piers Karsenbarg
