1. Packages
  2. StrongDM
  3. API Docs
  4. getWorkflowApprover
StrongDM v1.12.0 published on Sunday, Apr 28, 2024 by Piers Karsenbarg

sdm.getWorkflowApprover

Explore with Pulumi AI

sdm logo
StrongDM v1.12.0 published on Sunday, Apr 28, 2024 by Piers Karsenbarg

    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:

    AccountId string
    The approver account id.
    Id string
    Unique identifier of the WorkflowApprover.
    RoleId string
    The approver role id
    WorkflowId string
    The workflow id.
    AccountId string
    The approver account id.
    Id string
    Unique identifier of the WorkflowApprover.
    RoleId string
    The approver role id
    WorkflowId string
    The workflow id.
    accountId String
    The approver account id.
    id String
    Unique identifier of the WorkflowApprover.
    roleId String
    The approver role id
    workflowId String
    The workflow id.
    accountId string
    The approver account id.
    id string
    Unique identifier of the WorkflowApprover.
    roleId string
    The approver role id
    workflowId 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.
    accountId String
    The approver account id.
    id String
    Unique identifier of the WorkflowApprover.
    roleId String
    The approver role id
    workflowId 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.
    WorkflowApprovers List<PiersKarsenbarg.Sdm.Outputs.GetWorkflowApproverWorkflowApprover>
    A list where each element has the following attributes:
    AccountId string
    The approver account id.
    Id string
    Unique identifier of the WorkflowApprover.
    RoleId string
    The approver role id
    WorkflowId string
    The workflow id.
    Ids []string
    a list of strings of ids of data sources that match the given arguments.
    WorkflowApprovers []GetWorkflowApproverWorkflowApprover
    A list where each element has the following attributes:
    AccountId string
    The approver account id.
    Id string
    Unique identifier of the WorkflowApprover.
    RoleId string
    The approver role id
    WorkflowId string
    The workflow id.
    ids List<String>
    a list of strings of ids of data sources that match the given arguments.
    workflowApprovers List<GetWorkflowApproverWorkflowApprover>
    A list where each element has the following attributes:
    accountId String
    The approver account id.
    id String
    Unique identifier of the WorkflowApprover.
    roleId String
    The approver role id
    workflowId String
    The workflow id.
    ids string[]
    a list of strings of ids of data sources that match the given arguments.
    workflowApprovers GetWorkflowApproverWorkflowApprover[]
    A list where each element has the following attributes:
    accountId string
    The approver account id.
    id string
    Unique identifier of the WorkflowApprover.
    roleId string
    The approver role id
    workflowId string
    The workflow id.
    ids Sequence[str]
    a list of strings of ids of data sources that match the given arguments.
    workflow_approvers Sequence[GetWorkflowApproverWorkflowApprover]
    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.
    workflowApprovers List<Property Map>
    A list where each element has the following attributes:
    accountId String
    The approver account id.
    id String
    Unique identifier of the WorkflowApprover.
    roleId String
    The approver role id
    workflowId String
    The workflow id.

    Supporting Types

    GetWorkflowApproverWorkflowApprover

    AccountId string
    The approver account id.
    Id string
    Unique identifier of the WorkflowApprover.
    RoleId string
    The approver role id
    WorkflowId string
    The workflow id.
    AccountId string
    The approver account id.
    Id string
    Unique identifier of the WorkflowApprover.
    RoleId string
    The approver role id
    WorkflowId string
    The workflow id.
    accountId String
    The approver account id.
    id String
    Unique identifier of the WorkflowApprover.
    roleId String
    The approver role id
    workflowId String
    The workflow id.
    accountId string
    The approver account id.
    id string
    Unique identifier of the WorkflowApprover.
    roleId string
    The approver role id
    workflowId 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.
    accountId String
    The approver account id.
    id String
    Unique identifier of the WorkflowApprover.
    roleId String
    The approver role id
    workflowId 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.
    sdm logo
    StrongDM v1.12.0 published on Sunday, Apr 28, 2024 by Piers Karsenbarg