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

sdm.getApprovalWorkflowStep

Explore with Pulumi AI

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

    ApprovalWorkflowStep links an approval workflow step to an ApprovalWorkflow

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sdm from "@pulumi/sdm";
    
    const approvalWorkflowStepQuery = sdm.getApprovalWorkflowStep({
        approvalFlowId: "af-7935485",
    });
    
    import pulumi
    import pulumi_sdm as sdm
    
    approval_workflow_step_query = sdm.get_approval_workflow_step(approval_flow_id="af-7935485")
    
    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.LookupApprovalWorkflowStep(ctx, &sdm.LookupApprovalWorkflowStepArgs{
    			ApprovalFlowId: pulumi.StringRef("af-7935485"),
    		}, 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 approvalWorkflowStepQuery = Sdm.GetApprovalWorkflowStep.Invoke(new()
        {
            ApprovalFlowId = "af-7935485",
        });
    
    });
    
    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.GetApprovalWorkflowStepArgs;
    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 approvalWorkflowStepQuery = SdmFunctions.getApprovalWorkflowStep(GetApprovalWorkflowStepArgs.builder()
                .approvalFlowId("af-7935485")
                .build());
    
        }
    }
    
    variables:
      approvalWorkflowStepQuery:
        fn::invoke:
          Function: sdm:getApprovalWorkflowStep
          Arguments:
            approvalFlowId: af-7935485
    

    Using getApprovalWorkflowStep

    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 getApprovalWorkflowStep(args: GetApprovalWorkflowStepArgs, opts?: InvokeOptions): Promise<GetApprovalWorkflowStepResult>
    function getApprovalWorkflowStepOutput(args: GetApprovalWorkflowStepOutputArgs, opts?: InvokeOptions): Output<GetApprovalWorkflowStepResult>
    def get_approval_workflow_step(approval_flow_id: Optional[str] = None,
                                   id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetApprovalWorkflowStepResult
    def get_approval_workflow_step_output(approval_flow_id: Optional[pulumi.Input[str]] = None,
                                   id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetApprovalWorkflowStepResult]
    func LookupApprovalWorkflowStep(ctx *Context, args *LookupApprovalWorkflowStepArgs, opts ...InvokeOption) (*LookupApprovalWorkflowStepResult, error)
    func LookupApprovalWorkflowStepOutput(ctx *Context, args *LookupApprovalWorkflowStepOutputArgs, opts ...InvokeOption) LookupApprovalWorkflowStepResultOutput

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

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

    The following arguments are supported:

    ApprovalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    Id string
    Unique identifier of the ApprovalWorkflowStep.
    ApprovalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    Id string
    Unique identifier of the ApprovalWorkflowStep.
    approvalFlowId String
    The approval flow id specified the approval workfflow that this step belongs to
    id String
    Unique identifier of the ApprovalWorkflowStep.
    approvalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    id string
    Unique identifier of the ApprovalWorkflowStep.
    approval_flow_id str
    The approval flow id specified the approval workfflow that this step belongs to
    id str
    Unique identifier of the ApprovalWorkflowStep.
    approvalFlowId String
    The approval flow id specified the approval workfflow that this step belongs to
    id String
    Unique identifier of the ApprovalWorkflowStep.

    getApprovalWorkflowStep Result

    The following output properties are available:

    ApprovalWorkflowSteps List<PiersKarsenbarg.Sdm.Outputs.GetApprovalWorkflowStepApprovalWorkflowStep>
    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.
    ApprovalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    Id string
    Unique identifier of the ApprovalWorkflowStep.
    ApprovalWorkflowSteps []GetApprovalWorkflowStepApprovalWorkflowStep
    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.
    ApprovalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    Id string
    Unique identifier of the ApprovalWorkflowStep.
    approvalWorkflowSteps List<GetApprovalWorkflowStepApprovalWorkflowStep>
    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.
    approvalFlowId String
    The approval flow id specified the approval workfflow that this step belongs to
    id String
    Unique identifier of the ApprovalWorkflowStep.
    approvalWorkflowSteps GetApprovalWorkflowStepApprovalWorkflowStep[]
    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.
    approvalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    id string
    Unique identifier of the ApprovalWorkflowStep.
    approval_workflow_steps Sequence[GetApprovalWorkflowStepApprovalWorkflowStep]
    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.
    approval_flow_id str
    The approval flow id specified the approval workfflow that this step belongs to
    id str
    Unique identifier of the ApprovalWorkflowStep.
    approvalWorkflowSteps 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.
    approvalFlowId String
    The approval flow id specified the approval workfflow that this step belongs to
    id String
    Unique identifier of the ApprovalWorkflowStep.

    Supporting Types

    GetApprovalWorkflowStepApprovalWorkflowStep

    ApprovalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    Id string
    Unique identifier of the ApprovalWorkflowStep.
    ApprovalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    Id string
    Unique identifier of the ApprovalWorkflowStep.
    approvalFlowId String
    The approval flow id specified the approval workfflow that this step belongs to
    id String
    Unique identifier of the ApprovalWorkflowStep.
    approvalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    id string
    Unique identifier of the ApprovalWorkflowStep.
    approval_flow_id str
    The approval flow id specified the approval workfflow that this step belongs to
    id str
    Unique identifier of the ApprovalWorkflowStep.
    approvalFlowId String
    The approval flow id specified the approval workfflow that this step belongs to
    id String
    Unique identifier of the ApprovalWorkflowStep.

    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