StrongDM v1.12.0 published on Sunday, Apr 28, 2024 by Piers Karsenbarg
sdm.getApprovalWorkflowApprover
Explore with Pulumi AI
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:
- Account
Id string - The approver account id.
- Approval
Flow stringId - The approval flow id specified the approval workflow that this approver belongs to
- Approval
Step stringId - The approval step id specified the approval flow step that this approver belongs to
- Id string
- Unique identifier of the ApprovalWorkflowApprover.
- Role
Id string - The approver role id
- Account
Id string - The approver account id.
- Approval
Flow stringId - The approval flow id specified the approval workflow that this approver belongs to
- Approval
Step stringId - The approval step id specified the approval flow step that this approver belongs to
- Id string
- Unique identifier of the ApprovalWorkflowApprover.
- Role
Id string - The approver role id
- account
Id String - The approver account id.
- approval
Flow StringId - The approval flow id specified the approval workflow that this approver belongs to
- approval
Step StringId - The approval step id specified the approval flow step that this approver belongs to
- id String
- Unique identifier of the ApprovalWorkflowApprover.
- role
Id String - The approver role id
- account
Id string - The approver account id.
- approval
Flow stringId - The approval flow id specified the approval workflow that this approver belongs to
- approval
Step stringId - The approval step id specified the approval flow step that this approver belongs to
- id string
- Unique identifier of the ApprovalWorkflowApprover.
- role
Id string - The approver role id
- account_
id str - The approver account id.
- approval_
flow_ strid - The approval flow id specified the approval workflow that this approver belongs to
- approval_
step_ strid - 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
- account
Id String - The approver account id.
- approval
Flow StringId - The approval flow id specified the approval workflow that this approver belongs to
- approval
Step StringId - The approval step id specified the approval flow step that this approver belongs to
- id String
- Unique identifier of the ApprovalWorkflowApprover.
- role
Id String - The approver role id
getApprovalWorkflowApprover Result
The following output properties are available:
- Approval
Workflow List<PiersApprovers Karsenbarg. Sdm. Outputs. Get Approval Workflow Approver Approval Workflow Approver> - 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.
- Account
Id string - The approver account id.
- Approval
Flow stringId - The approval flow id specified the approval workflow that this approver belongs to
- Approval
Step stringId - The approval step id specified the approval flow step that this approver belongs to
- Id string
- Unique identifier of the ApprovalWorkflowApprover.
- Role
Id string - The approver role id
- Approval
Workflow []GetApprovers Approval Workflow Approver Approval Workflow Approver - 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.
- Account
Id string - The approver account id.
- Approval
Flow stringId - The approval flow id specified the approval workflow that this approver belongs to
- Approval
Step stringId - The approval step id specified the approval flow step that this approver belongs to
- Id string
- Unique identifier of the ApprovalWorkflowApprover.
- Role
Id string - The approver role id
- approval
Workflow List<GetApprovers Approval Workflow Approver Approval Workflow Approver> - 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.
- account
Id String - The approver account id.
- approval
Flow StringId - The approval flow id specified the approval workflow that this approver belongs to
- approval
Step StringId - The approval step id specified the approval flow step that this approver belongs to
- id String
- Unique identifier of the ApprovalWorkflowApprover.
- role
Id String - The approver role id
- approval
Workflow GetApprovers Approval Workflow Approver Approval Workflow Approver[] - 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.
- account
Id string - The approver account id.
- approval
Flow stringId - The approval flow id specified the approval workflow that this approver belongs to
- approval
Step stringId - The approval step id specified the approval flow step that this approver belongs to
- id string
- Unique identifier of the ApprovalWorkflowApprover.
- role
Id string - The approver role id
- approval_
workflow_ Sequence[Getapprovers Approval Workflow Approver Approval Workflow Approver] - 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_ strid - The approval flow id specified the approval workflow that this approver belongs to
- approval_
step_ strid - 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
- approval
Workflow List<Property Map>Approvers - 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.
- account
Id String - The approver account id.
- approval
Flow StringId - The approval flow id specified the approval workflow that this approver belongs to
- approval
Step StringId - The approval step id specified the approval flow step that this approver belongs to
- id String
- Unique identifier of the ApprovalWorkflowApprover.
- role
Id String - The approver role id
Supporting Types
GetApprovalWorkflowApproverApprovalWorkflowApprover
- Account
Id string - The approver account id.
- Approval
Flow stringId - The approval flow id specified the approval workflow that this approver belongs to
- Approval
Step stringId - The approval step id specified the approval flow step that this approver belongs to
- Id string
- Unique identifier of the ApprovalWorkflowApprover.
- Role
Id string - The approver role id
- Account
Id string - The approver account id.
- Approval
Flow stringId - The approval flow id specified the approval workflow that this approver belongs to
- Approval
Step stringId - The approval step id specified the approval flow step that this approver belongs to
- Id string
- Unique identifier of the ApprovalWorkflowApprover.
- Role
Id string - The approver role id
- account
Id String - The approver account id.
- approval
Flow StringId - The approval flow id specified the approval workflow that this approver belongs to
- approval
Step StringId - The approval step id specified the approval flow step that this approver belongs to
- id String
- Unique identifier of the ApprovalWorkflowApprover.
- role
Id String - The approver role id
- account
Id string - The approver account id.
- approval
Flow stringId - The approval flow id specified the approval workflow that this approver belongs to
- approval
Step stringId - The approval step id specified the approval flow step that this approver belongs to
- id string
- Unique identifier of the ApprovalWorkflowApprover.
- role
Id string - The approver role id
- account_
id str - The approver account id.
- approval_
flow_ strid - The approval flow id specified the approval workflow that this approver belongs to
- approval_
step_ strid - 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
- account
Id String - The approver account id.
- approval
Flow StringId - The approval flow id specified the approval workflow that this approver belongs to
- approval
Step StringId - The approval step id specified the approval flow step that this approver belongs to
- id String
- Unique identifier of the ApprovalWorkflowApprover.
- role
Id 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.