1. Packages
  2. StrongDM
  3. API Docs
  4. ApprovalWorkflowApprover
StrongDM v1.21.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

sdm.ApprovalWorkflowApprover

Explore with Pulumi AI

sdm logo
StrongDM v1.21.0 published on Monday, Nov 4, 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 "@pierskarsenbarg/sdm";
    
    const approvalWorkflowApproverAccountExample = new sdm.ApprovalWorkflowApprover("approvalWorkflowApproverAccountExample", {
        accountId: "a-234605",
        approvalFlowId: "af-6799234",
        approvalStepId: "afs-2956266",
    });
    const approvalWorkflowApproverRoleExample = new sdm.ApprovalWorkflowApprover("approvalWorkflowApproverRoleExample", {
        approvalFlowId: "af-1935694",
        approvalStepId: "afs-9245942",
        roleId: "r-542982",
    });
    
    import pulumi
    import pierskarsenbarg_pulumi_sdm as sdm
    
    approval_workflow_approver_account_example = sdm.ApprovalWorkflowApprover("approvalWorkflowApproverAccountExample",
        account_id="a-234605",
        approval_flow_id="af-6799234",
        approval_step_id="afs-2956266")
    approval_workflow_approver_role_example = sdm.ApprovalWorkflowApprover("approvalWorkflowApproverRoleExample",
        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.NewApprovalWorkflowApprover(ctx, "approvalWorkflowApproverAccountExample", &sdm.ApprovalWorkflowApproverArgs{
    			AccountId:      pulumi.String("a-234605"),
    			ApprovalFlowId: pulumi.String("af-6799234"),
    			ApprovalStepId: pulumi.String("afs-2956266"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sdm.NewApprovalWorkflowApprover(ctx, "approvalWorkflowApproverRoleExample", &sdm.ApprovalWorkflowApproverArgs{
    			ApprovalFlowId: pulumi.String("af-1935694"),
    			ApprovalStepId: pulumi.String("afs-9245942"),
    			RoleId:         pulumi.String("r-542982"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sdm = PiersKarsenbarg.Sdm;
    
    return await Deployment.RunAsync(() => 
    {
        var approvalWorkflowApproverAccountExample = new Sdm.ApprovalWorkflowApprover("approvalWorkflowApproverAccountExample", new()
        {
            AccountId = "a-234605",
            ApprovalFlowId = "af-6799234",
            ApprovalStepId = "afs-2956266",
        });
    
        var approvalWorkflowApproverRoleExample = new Sdm.ApprovalWorkflowApprover("approvalWorkflowApproverRoleExample", 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.ApprovalWorkflowApprover;
    import com.pulumi.sdm.ApprovalWorkflowApproverArgs;
    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) {
            var approvalWorkflowApproverAccountExample = new ApprovalWorkflowApprover("approvalWorkflowApproverAccountExample", ApprovalWorkflowApproverArgs.builder()
                .accountId("a-234605")
                .approvalFlowId("af-6799234")
                .approvalStepId("afs-2956266")
                .build());
    
            var approvalWorkflowApproverRoleExample = new ApprovalWorkflowApprover("approvalWorkflowApproverRoleExample", ApprovalWorkflowApproverArgs.builder()
                .approvalFlowId("af-1935694")
                .approvalStepId("afs-9245942")
                .roleId("r-542982")
                .build());
    
        }
    }
    
    resources:
      approvalWorkflowApproverAccountExample:
        type: sdm:ApprovalWorkflowApprover
        properties:
          accountId: a-234605
          approvalFlowId: af-6799234
          approvalStepId: afs-2956266
      approvalWorkflowApproverRoleExample:
        type: sdm:ApprovalWorkflowApprover
        properties:
          approvalFlowId: af-1935694
          approvalStepId: afs-9245942
          roleId: r-542982
    

    This resource can be imported using the import command.

    Create ApprovalWorkflowApprover Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ApprovalWorkflowApprover(name: string, args: ApprovalWorkflowApproverArgs, opts?: CustomResourceOptions);
    @overload
    def ApprovalWorkflowApprover(resource_name: str,
                                 args: ApprovalWorkflowApproverArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApprovalWorkflowApprover(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 approval_flow_id: Optional[str] = None,
                                 approval_step_id: Optional[str] = None,
                                 account_id: Optional[str] = None,
                                 role_id: Optional[str] = None)
    func NewApprovalWorkflowApprover(ctx *Context, name string, args ApprovalWorkflowApproverArgs, opts ...ResourceOption) (*ApprovalWorkflowApprover, error)
    public ApprovalWorkflowApprover(string name, ApprovalWorkflowApproverArgs args, CustomResourceOptions? opts = null)
    public ApprovalWorkflowApprover(String name, ApprovalWorkflowApproverArgs args)
    public ApprovalWorkflowApprover(String name, ApprovalWorkflowApproverArgs args, CustomResourceOptions options)
    
    type: sdm:ApprovalWorkflowApprover
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ApprovalWorkflowApproverArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ApprovalWorkflowApproverArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ApprovalWorkflowApproverArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApprovalWorkflowApproverArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApprovalWorkflowApproverArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var approvalWorkflowApproverResource = new Sdm.ApprovalWorkflowApprover("approvalWorkflowApproverResource", new()
    {
        ApprovalFlowId = "string",
        ApprovalStepId = "string",
        AccountId = "string",
        RoleId = "string",
    });
    
    example, err := sdm.NewApprovalWorkflowApprover(ctx, "approvalWorkflowApproverResource", &sdm.ApprovalWorkflowApproverArgs{
    	ApprovalFlowId: pulumi.String("string"),
    	ApprovalStepId: pulumi.String("string"),
    	AccountId:      pulumi.String("string"),
    	RoleId:         pulumi.String("string"),
    })
    
    var approvalWorkflowApproverResource = new ApprovalWorkflowApprover("approvalWorkflowApproverResource", ApprovalWorkflowApproverArgs.builder()
        .approvalFlowId("string")
        .approvalStepId("string")
        .accountId("string")
        .roleId("string")
        .build());
    
    approval_workflow_approver_resource = sdm.ApprovalWorkflowApprover("approvalWorkflowApproverResource",
        approval_flow_id="string",
        approval_step_id="string",
        account_id="string",
        role_id="string")
    
    const approvalWorkflowApproverResource = new sdm.ApprovalWorkflowApprover("approvalWorkflowApproverResource", {
        approvalFlowId: "string",
        approvalStepId: "string",
        accountId: "string",
        roleId: "string",
    });
    
    type: sdm:ApprovalWorkflowApprover
    properties:
        accountId: string
        approvalFlowId: string
        approvalStepId: string
        roleId: string
    

    ApprovalWorkflowApprover Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ApprovalWorkflowApprover resource accepts the following input properties:

    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
    AccountId string
    The approver account id.
    RoleId string
    The approver role 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
    AccountId string
    The approver account id.
    RoleId string
    The approver role 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
    accountId String
    The approver account id.
    roleId String
    The approver role 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
    accountId string
    The approver account id.
    roleId string
    The approver role 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
    account_id str
    The approver account id.
    role_id str
    The approver role 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
    accountId String
    The approver account id.
    roleId String
    The approver role id

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ApprovalWorkflowApprover resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ApprovalWorkflowApprover Resource

    Get an existing ApprovalWorkflowApprover resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ApprovalWorkflowApproverState, opts?: CustomResourceOptions): ApprovalWorkflowApprover
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            approval_flow_id: Optional[str] = None,
            approval_step_id: Optional[str] = None,
            role_id: Optional[str] = None) -> ApprovalWorkflowApprover
    func GetApprovalWorkflowApprover(ctx *Context, name string, id IDInput, state *ApprovalWorkflowApproverState, opts ...ResourceOption) (*ApprovalWorkflowApprover, error)
    public static ApprovalWorkflowApprover Get(string name, Input<string> id, ApprovalWorkflowApproverState? state, CustomResourceOptions? opts = null)
    public static ApprovalWorkflowApprover get(String name, Output<String> id, ApprovalWorkflowApproverState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state 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
    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
    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
    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
    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
    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
    roleId String
    The approver role id

    Import

    A ApprovalWorkflowApprover can be imported using the id, e.g.,

    $ pulumi import sdm:index/approvalWorkflowApprover:ApprovalWorkflowApprover example afa-12345678
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.21.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg