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

sdm.getApprovalWorkflowApprover

Explore with Pulumi AI

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

    ApprovalWorkflowApprover links an approval workflow approver to an ApprovalWorkflowStep

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sdm from "@pulumi/sdm";
    
    const approvalWorkflowApproverAccountQuery = sdm.getApprovalWorkflowApprover({
        accountId: "a-234605",
        approvalFlowId: "af-6799234",
        approvalStepId: "afs-2956266",
    });
    const approvalWorkflowApproverRoleQuery = sdm.getApprovalWorkflowApprover({
        approvalFlowId: "af-1935694",
        approvalStepId: "afs-9245942",
        roleId: "r-542982",
    });
    
    import pulumi
    import pulumi_sdm as sdm
    
    approval_workflow_approver_account_query = sdm.get_approval_workflow_approver(account_id="a-234605",
        approval_flow_id="af-6799234",
        approval_step_id="afs-2956266")
    approval_workflow_approver_role_query = sdm.get_approval_workflow_approver(approval_flow_id="af-1935694",
        approval_step_id="afs-9245942",
        role_id="r-542982")
    
    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.LookupApprovalWorkflowApprover(ctx, &sdm.LookupApprovalWorkflowApproverArgs{
    			AccountId:      pulumi.StringRef("a-234605"),
    			ApprovalFlowId: pulumi.StringRef("af-6799234"),
    			ApprovalStepId: pulumi.StringRef("afs-2956266"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = sdm.LookupApprovalWorkflowApprover(ctx, &sdm.LookupApprovalWorkflowApproverArgs{
    			ApprovalFlowId: pulumi.StringRef("af-1935694"),
    			ApprovalStepId: pulumi.StringRef("afs-9245942"),
    			RoleId:         pulumi.StringRef("r-542982"),
    		}, 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 approvalWorkflowApproverAccountQuery = Sdm.GetApprovalWorkflowApprover.Invoke(new()
        {
            AccountId = "a-234605",
            ApprovalFlowId = "af-6799234",
            ApprovalStepId = "afs-2956266",
        });
    
        var approvalWorkflowApproverRoleQuery = Sdm.GetApprovalWorkflowApprover.Invoke(new()
        {
            ApprovalFlowId = "af-1935694",
            ApprovalStepId = "afs-9245942",
            RoleId = "r-542982",
        });
    
    });
    
    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.GetApprovalWorkflowApproverArgs;
    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 approvalWorkflowApproverAccountQuery = SdmFunctions.getApprovalWorkflowApprover(GetApprovalWorkflowApproverArgs.builder()
                .accountId("a-234605")
                .approvalFlowId("af-6799234")
                .approvalStepId("afs-2956266")
                .build());
    
            final var approvalWorkflowApproverRoleQuery = SdmFunctions.getApprovalWorkflowApprover(GetApprovalWorkflowApproverArgs.builder()
                .approvalFlowId("af-1935694")
                .approvalStepId("afs-9245942")
                .roleId("r-542982")
                .build());
    
        }
    }
    
    variables:
      approvalWorkflowApproverAccountQuery:
        fn::invoke:
          Function: sdm:getApprovalWorkflowApprover
          Arguments:
            accountId: a-234605
            approvalFlowId: af-6799234
            approvalStepId: afs-2956266
      approvalWorkflowApproverRoleQuery:
        fn::invoke:
          Function: sdm:getApprovalWorkflowApprover
          Arguments:
            approvalFlowId: af-1935694
            approvalStepId: afs-9245942
            roleId: r-542982
    

    Using getApprovalWorkflowApprover

    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 getApprovalWorkflowApprover(args: GetApprovalWorkflowApproverArgs, opts?: InvokeOptions): Promise<GetApprovalWorkflowApproverResult>
    function getApprovalWorkflowApproverOutput(args: GetApprovalWorkflowApproverOutputArgs, opts?: InvokeOptions): Output<GetApprovalWorkflowApproverResult>
    def get_approval_workflow_approver(account_id: Optional[str] = None,
                                       approval_flow_id: Optional[str] = None,
                                       approval_step_id: Optional[str] = None,
                                       id: Optional[str] = None,
                                       role_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetApprovalWorkflowApproverResult
    def get_approval_workflow_approver_output(account_id: Optional[pulumi.Input[str]] = None,
                                       approval_flow_id: Optional[pulumi.Input[str]] = None,
                                       approval_step_id: Optional[pulumi.Input[str]] = None,
                                       id: Optional[pulumi.Input[str]] = None,
                                       role_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetApprovalWorkflowApproverResult]
    func LookupApprovalWorkflowApprover(ctx *Context, args *LookupApprovalWorkflowApproverArgs, opts ...InvokeOption) (*LookupApprovalWorkflowApproverResult, error)
    func LookupApprovalWorkflowApproverOutput(ctx *Context, args *LookupApprovalWorkflowApproverOutputArgs, opts ...InvokeOption) LookupApprovalWorkflowApproverResultOutput

    > Note: This function is named LookupApprovalWorkflowApprover in the Go SDK.

    public static class GetApprovalWorkflowApprover 
    {
        public static Task<GetApprovalWorkflowApproverResult> InvokeAsync(GetApprovalWorkflowApproverArgs args, InvokeOptions? opts = null)
        public static Output<GetApprovalWorkflowApproverResult> Invoke(GetApprovalWorkflowApproverInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApprovalWorkflowApproverResult> getApprovalWorkflowApprover(GetApprovalWorkflowApproverArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: sdm:index/getApprovalWorkflowApprover:getApprovalWorkflowApprover
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    The approver account id.
    ApprovalFlowId string
    The approval flow id specified the approval workflow that this approver belongs to
    ApprovalStepId string
    The approval step id specified the approval flow step that this approver belongs to
    Id string
    Unique identifier of the ApprovalWorkflowApprover.
    RoleId string
    The approver role id
    AccountId string
    The approver account id.
    ApprovalFlowId string
    The approval flow id specified the approval workflow that this approver belongs to
    ApprovalStepId string
    The approval step id specified the approval flow step that this approver belongs to
    Id string
    Unique identifier of the ApprovalWorkflowApprover.
    RoleId string
    The approver role id
    accountId String
    The approver account id.
    approvalFlowId String
    The approval flow id specified the approval workflow that this approver belongs to
    approvalStepId String
    The approval step id specified the approval flow step that this approver belongs to
    id String
    Unique identifier of the ApprovalWorkflowApprover.
    roleId String
    The approver role id
    accountId string
    The approver account id.
    approvalFlowId string
    The approval flow id specified the approval workflow that this approver belongs to
    approvalStepId string
    The approval step id specified the approval flow step that this approver belongs to
    id string
    Unique identifier of the ApprovalWorkflowApprover.
    roleId string
    The approver role id
    account_id str
    The approver account id.
    approval_flow_id str
    The approval flow id specified the approval workflow that this approver belongs to
    approval_step_id str
    The approval step id specified the approval flow step that this approver belongs to
    id str
    Unique identifier of the ApprovalWorkflowApprover.
    role_id str
    The approver role id
    accountId String
    The approver account id.
    approvalFlowId String
    The approval flow id specified the approval workflow that this approver belongs to
    approvalStepId String
    The approval step id specified the approval flow step that this approver belongs to
    id String
    Unique identifier of the ApprovalWorkflowApprover.
    roleId String
    The approver role id

    getApprovalWorkflowApprover Result

    The following output properties are available:

    ApprovalWorkflowApprovers List<PiersKarsenbarg.Sdm.Outputs.GetApprovalWorkflowApproverApprovalWorkflowApprover>
    A list where each element has the following attributes:
    Ids List<string>
    a list of strings of ids of data sources that match the given arguments.
    AccountId string
    The approver account id.
    ApprovalFlowId string
    The approval flow id specified the approval workflow that this approver belongs to
    ApprovalStepId string
    The approval step id specified the approval flow step that this approver belongs to
    Id string
    Unique identifier of the ApprovalWorkflowApprover.
    RoleId string
    The approver role id
    ApprovalWorkflowApprovers []GetApprovalWorkflowApproverApprovalWorkflowApprover
    A list where each element has the following attributes:
    Ids []string
    a list of strings of ids of data sources that match the given arguments.
    AccountId string
    The approver account id.
    ApprovalFlowId string
    The approval flow id specified the approval workflow that this approver belongs to
    ApprovalStepId string
    The approval step id specified the approval flow step that this approver belongs to
    Id string
    Unique identifier of the ApprovalWorkflowApprover.
    RoleId string
    The approver role id
    approvalWorkflowApprovers List<GetApprovalWorkflowApproverApprovalWorkflowApprover>
    A list where each element has the following attributes:
    ids List<String>
    a list of strings of ids of data sources that match the given arguments.
    accountId String
    The approver account id.
    approvalFlowId String
    The approval flow id specified the approval workflow that this approver belongs to
    approvalStepId String
    The approval step id specified the approval flow step that this approver belongs to
    id String
    Unique identifier of the ApprovalWorkflowApprover.
    roleId String
    The approver role id
    approvalWorkflowApprovers GetApprovalWorkflowApproverApprovalWorkflowApprover[]
    A list where each element has the following attributes:
    ids string[]
    a list of strings of ids of data sources that match the given arguments.
    accountId string
    The approver account id.
    approvalFlowId string
    The approval flow id specified the approval workflow that this approver belongs to
    approvalStepId string
    The approval step id specified the approval flow step that this approver belongs to
    id string
    Unique identifier of the ApprovalWorkflowApprover.
    roleId string
    The approver role id
    approval_workflow_approvers Sequence[GetApprovalWorkflowApproverApprovalWorkflowApprover]
    A list where each element has the following attributes:
    ids Sequence[str]
    a list of strings of ids of data sources that match the given arguments.
    account_id str
    The approver account id.
    approval_flow_id str
    The approval flow id specified the approval workflow that this approver belongs to
    approval_step_id str
    The approval step id specified the approval flow step that this approver belongs to
    id str
    Unique identifier of the ApprovalWorkflowApprover.
    role_id str
    The approver role id
    approvalWorkflowApprovers List<Property Map>
    A list where each element has the following attributes:
    ids List<String>
    a list of strings of ids of data sources that match the given arguments.
    accountId String
    The approver account id.
    approvalFlowId String
    The approval flow id specified the approval workflow that this approver belongs to
    approvalStepId String
    The approval step id specified the approval flow step that this approver belongs to
    id String
    Unique identifier of the ApprovalWorkflowApprover.
    roleId String
    The approver role id

    Supporting Types

    GetApprovalWorkflowApproverApprovalWorkflowApprover

    AccountId string
    The approver account id.
    ApprovalFlowId string
    The approval flow id specified the approval workflow that this approver belongs to
    ApprovalStepId string
    The approval step id specified the approval flow step that this approver belongs to
    Id string
    Unique identifier of the ApprovalWorkflowApprover.
    RoleId string
    The approver role id
    AccountId string
    The approver account id.
    ApprovalFlowId string
    The approval flow id specified the approval workflow that this approver belongs to
    ApprovalStepId string
    The approval step id specified the approval flow step that this approver belongs to
    Id string
    Unique identifier of the ApprovalWorkflowApprover.
    RoleId string
    The approver role id
    accountId String
    The approver account id.
    approvalFlowId String
    The approval flow id specified the approval workflow that this approver belongs to
    approvalStepId String
    The approval step id specified the approval flow step that this approver belongs to
    id String
    Unique identifier of the ApprovalWorkflowApprover.
    roleId String
    The approver role id
    accountId string
    The approver account id.
    approvalFlowId string
    The approval flow id specified the approval workflow that this approver belongs to
    approvalStepId string
    The approval step id specified the approval flow step that this approver belongs to
    id string
    Unique identifier of the ApprovalWorkflowApprover.
    roleId string
    The approver role id
    account_id str
    The approver account id.
    approval_flow_id str
    The approval flow id specified the approval workflow that this approver belongs to
    approval_step_id str
    The approval step id specified the approval flow step that this approver belongs to
    id str
    Unique identifier of the ApprovalWorkflowApprover.
    role_id str
    The approver role id
    accountId String
    The approver account id.
    approvalFlowId String
    The approval flow id specified the approval workflow that this approver belongs to
    approvalStepId String
    The approval step id specified the approval flow step that this approver belongs to
    id String
    Unique identifier of the ApprovalWorkflowApprover.
    roleId String
    The approver role 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