StrongDM v1.18.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg
sdm.getWorkflowApprover
Explore with Pulumi AI
WorkflowApprover is an account or a role with the ability to approve requests bound to a workflow.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sdm from "@pulumi/sdm";
const workflowApproverAccountQuery = sdm.getWorkflowApprover({
accountId: "a-2496542",
workflowId: "aw-541894",
});
const workflowApproverRoleQuery = sdm.getWorkflowApprover({
roleId: "r-417345",
workflowId: "aw-679923",
});
import pulumi
import pulumi_sdm as sdm
workflow_approver_account_query = sdm.get_workflow_approver(account_id="a-2496542",
workflow_id="aw-541894")
workflow_approver_role_query = sdm.get_workflow_approver(role_id="r-417345",
workflow_id="aw-679923")
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 {
_, err := sdm.LookupWorkflowApprover(ctx, &sdm.LookupWorkflowApproverArgs{
AccountId: pulumi.StringRef("a-2496542"),
WorkflowId: pulumi.StringRef("aw-541894"),
}, nil)
if err != nil {
return err
}
_, err = sdm.LookupWorkflowApprover(ctx, &sdm.LookupWorkflowApproverArgs{
RoleId: pulumi.StringRef("r-417345"),
WorkflowId: pulumi.StringRef("aw-679923"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sdm = Pulumi.Sdm;
return await Deployment.RunAsync(() =>
{
var workflowApproverAccountQuery = Sdm.GetWorkflowApprover.Invoke(new()
{
AccountId = "a-2496542",
WorkflowId = "aw-541894",
});
var workflowApproverRoleQuery = Sdm.GetWorkflowApprover.Invoke(new()
{
RoleId = "r-417345",
WorkflowId = "aw-679923",
});
});
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.GetWorkflowApproverArgs;
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) {
final var workflowApproverAccountQuery = SdmFunctions.getWorkflowApprover(GetWorkflowApproverArgs.builder()
.accountId("a-2496542")
.workflowId("aw-541894")
.build());
final var workflowApproverRoleQuery = SdmFunctions.getWorkflowApprover(GetWorkflowApproverArgs.builder()
.roleId("r-417345")
.workflowId("aw-679923")
.build());
}
}
variables:
workflowApproverAccountQuery:
fn::invoke:
Function: sdm:getWorkflowApprover
Arguments:
accountId: a-2496542
workflowId: aw-541894
workflowApproverRoleQuery:
fn::invoke:
Function: sdm:getWorkflowApprover
Arguments:
roleId: r-417345
workflowId: aw-679923
Using getWorkflowApprover
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 getWorkflowApprover(args: GetWorkflowApproverArgs, opts?: InvokeOptions): Promise<GetWorkflowApproverResult>
function getWorkflowApproverOutput(args: GetWorkflowApproverOutputArgs, opts?: InvokeOptions): Output<GetWorkflowApproverResult>
def get_workflow_approver(account_id: Optional[str] = None,
id: Optional[str] = None,
role_id: Optional[str] = None,
workflow_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkflowApproverResult
def get_workflow_approver_output(account_id: Optional[pulumi.Input[str]] = None,
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[GetWorkflowApproverResult]
func LookupWorkflowApprover(ctx *Context, args *LookupWorkflowApproverArgs, opts ...InvokeOption) (*LookupWorkflowApproverResult, error)
func LookupWorkflowApproverOutput(ctx *Context, args *LookupWorkflowApproverOutputArgs, opts ...InvokeOption) LookupWorkflowApproverResultOutput
> Note: This function is named LookupWorkflowApprover
in the Go SDK.
public static class GetWorkflowApprover
{
public static Task<GetWorkflowApproverResult> InvokeAsync(GetWorkflowApproverArgs args, InvokeOptions? opts = null)
public static Output<GetWorkflowApproverResult> Invoke(GetWorkflowApproverInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWorkflowApproverResult> getWorkflowApprover(GetWorkflowApproverArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: sdm:index/getWorkflowApprover:getWorkflowApprover
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - The approver account id.
- Id string
- Unique identifier of the WorkflowApprover.
- Role
Id string - The approver role id
- Workflow
Id string - The workflow id.
- Account
Id string - The approver account id.
- Id string
- Unique identifier of the WorkflowApprover.
- Role
Id string - The approver role id
- Workflow
Id string - The workflow id.
- account
Id String - The approver account id.
- id String
- Unique identifier of the WorkflowApprover.
- role
Id String - The approver role id
- workflow
Id String - The workflow id.
- account
Id string - The approver account id.
- id string
- Unique identifier of the WorkflowApprover.
- role
Id string - The approver role id
- workflow
Id string - The workflow id.
- account_
id str - The approver account id.
- id str
- Unique identifier of the WorkflowApprover.
- role_
id str - The approver role id
- workflow_
id str - The workflow id.
- account
Id String - The approver account id.
- id String
- Unique identifier of the WorkflowApprover.
- role
Id String - The approver role id
- workflow
Id String - The workflow id.
getWorkflowApprover 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
Approvers List<PiersKarsenbarg. Sdm. Outputs. Get Workflow Approver Workflow Approver> - A list where each element has the following attributes:
- Account
Id string - The approver account id.
- Id string
- Unique identifier of the WorkflowApprover.
- Role
Id string - The approver 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
Approvers []GetWorkflow Approver Workflow Approver - A list where each element has the following attributes:
- Account
Id string - The approver account id.
- Id string
- Unique identifier of the WorkflowApprover.
- Role
Id string - The approver 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
Approvers List<GetWorkflow Approver Workflow Approver> - A list where each element has the following attributes:
- account
Id String - The approver account id.
- id String
- Unique identifier of the WorkflowApprover.
- role
Id String - The approver 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
Approvers GetWorkflow Approver Workflow Approver[] - A list where each element has the following attributes:
- account
Id string - The approver account id.
- id string
- Unique identifier of the WorkflowApprover.
- role
Id string - The approver 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_
approvers Sequence[GetWorkflow Approver Workflow Approver] - A list where each element has the following attributes:
- account_
id str - The approver account id.
- id str
- Unique identifier of the WorkflowApprover.
- role_
id str - The approver 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
Approvers List<Property Map> - A list where each element has the following attributes:
- account
Id String - The approver account id.
- id String
- Unique identifier of the WorkflowApprover.
- role
Id String - The approver role id
- workflow
Id String - The workflow id.
Supporting Types
GetWorkflowApproverWorkflowApprover
- Account
Id string - The approver account id.
- Id string
- Unique identifier of the WorkflowApprover.
- Role
Id string - The approver role id
- Workflow
Id string - The workflow id.
- Account
Id string - The approver account id.
- Id string
- Unique identifier of the WorkflowApprover.
- Role
Id string - The approver role id
- Workflow
Id string - The workflow id.
- account
Id String - The approver account id.
- id String
- Unique identifier of the WorkflowApprover.
- role
Id String - The approver role id
- workflow
Id String - The workflow id.
- account
Id string - The approver account id.
- id string
- Unique identifier of the WorkflowApprover.
- role
Id string - The approver role id
- workflow
Id string - The workflow id.
- account_
id str - The approver account id.
- id str
- Unique identifier of the WorkflowApprover.
- role_
id str - The approver role id
- workflow_
id str - The workflow id.
- account
Id String - The approver account id.
- id String
- Unique identifier of the WorkflowApprover.
- role
Id String - The approver 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
sdm
Terraform Provider.