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

sdm.WorkflowApprover

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 "@pierskarsenbarg/sdm";
    
    const workflowApproverAccountExample = new sdm.WorkflowApprover("workflowApproverAccountExample", {
        accountId: "a-234605",
        workflowId: "aw-6799234",
    });
    const workflowApproverRoleExample = new sdm.WorkflowApprover("workflowApproverRoleExample", {
        roleId: "r-542982",
        workflowId: "aw-1935694",
    });
    
    import pulumi
    import pierskarsenbarg_pulumi_sdm as sdm
    
    workflow_approver_account_example = sdm.WorkflowApprover("workflowApproverAccountExample",
        account_id="a-234605",
        workflow_id="aw-6799234")
    workflow_approver_role_example = sdm.WorkflowApprover("workflowApproverRoleExample",
        role_id="r-542982",
        workflow_id="aw-1935694")
    
    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.NewWorkflowApprover(ctx, "workflowApproverAccountExample", &sdm.WorkflowApproverArgs{
    			AccountId:  pulumi.String("a-234605"),
    			WorkflowId: pulumi.String("aw-6799234"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sdm.NewWorkflowApprover(ctx, "workflowApproverRoleExample", &sdm.WorkflowApproverArgs{
    			RoleId:     pulumi.String("r-542982"),
    			WorkflowId: pulumi.String("aw-1935694"),
    		})
    		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 workflowApproverAccountExample = new Sdm.WorkflowApprover("workflowApproverAccountExample", new()
        {
            AccountId = "a-234605",
            WorkflowId = "aw-6799234",
        });
    
        var workflowApproverRoleExample = new Sdm.WorkflowApprover("workflowApproverRoleExample", new()
        {
            RoleId = "r-542982",
            WorkflowId = "aw-1935694",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sdm.WorkflowApprover;
    import com.pulumi.sdm.WorkflowApproverArgs;
    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 workflowApproverAccountExample = new WorkflowApprover("workflowApproverAccountExample", WorkflowApproverArgs.builder()        
                .accountId("a-234605")
                .workflowId("aw-6799234")
                .build());
    
            var workflowApproverRoleExample = new WorkflowApprover("workflowApproverRoleExample", WorkflowApproverArgs.builder()        
                .roleId("r-542982")
                .workflowId("aw-1935694")
                .build());
    
        }
    }
    
    resources:
      workflowApproverAccountExample:
        type: sdm:WorkflowApprover
        properties:
          accountId: a-234605
          workflowId: aw-6799234
      workflowApproverRoleExample:
        type: sdm:WorkflowApprover
        properties:
          roleId: r-542982
          workflowId: aw-1935694
    

    This resource can be imported using the import command.

    Create WorkflowApprover Resource

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

    Constructor syntax

    new WorkflowApprover(name: string, args: WorkflowApproverArgs, opts?: CustomResourceOptions);
    @overload
    def WorkflowApprover(resource_name: str,
                         args: WorkflowApproverArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def WorkflowApprover(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         workflow_id: Optional[str] = None,
                         account_id: Optional[str] = None,
                         role_id: Optional[str] = None)
    func NewWorkflowApprover(ctx *Context, name string, args WorkflowApproverArgs, opts ...ResourceOption) (*WorkflowApprover, error)
    public WorkflowApprover(string name, WorkflowApproverArgs args, CustomResourceOptions? opts = null)
    public WorkflowApprover(String name, WorkflowApproverArgs args)
    public WorkflowApprover(String name, WorkflowApproverArgs args, CustomResourceOptions options)
    
    type: sdm:WorkflowApprover
    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 WorkflowApproverArgs
    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 WorkflowApproverArgs
    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 WorkflowApproverArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WorkflowApproverArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WorkflowApproverArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var workflowApproverResource = new Sdm.WorkflowApprover("workflowApproverResource", new()
    {
        WorkflowId = "string",
        AccountId = "string",
        RoleId = "string",
    });
    
    example, err := sdm.NewWorkflowApprover(ctx, "workflowApproverResource", &sdm.WorkflowApproverArgs{
    	WorkflowId: pulumi.String("string"),
    	AccountId:  pulumi.String("string"),
    	RoleId:     pulumi.String("string"),
    })
    
    var workflowApproverResource = new WorkflowApprover("workflowApproverResource", WorkflowApproverArgs.builder()        
        .workflowId("string")
        .accountId("string")
        .roleId("string")
        .build());
    
    workflow_approver_resource = sdm.WorkflowApprover("workflowApproverResource",
        workflow_id="string",
        account_id="string",
        role_id="string")
    
    const workflowApproverResource = new sdm.WorkflowApprover("workflowApproverResource", {
        workflowId: "string",
        accountId: "string",
        roleId: "string",
    });
    
    type: sdm:WorkflowApprover
    properties:
        accountId: string
        roleId: string
        workflowId: string
    

    WorkflowApprover Resource Properties

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

    Inputs

    The WorkflowApprover resource accepts the following input properties:

    WorkflowId string
    The workflow id.
    AccountId string
    The approver account id.
    RoleId string
    The approver role id
    WorkflowId string
    The workflow id.
    AccountId string
    The approver account id.
    RoleId string
    The approver role id
    workflowId String
    The workflow id.
    accountId String
    The approver account id.
    roleId String
    The approver role id
    workflowId string
    The workflow id.
    accountId string
    The approver account id.
    roleId string
    The approver role id
    workflow_id str
    The workflow id.
    account_id str
    The approver account id.
    role_id str
    The approver role id
    workflowId String
    The workflow id.
    accountId String
    The approver account id.
    roleId String
    The approver role id

    Outputs

    All input properties are implicitly available as output properties. Additionally, the WorkflowApprover 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 WorkflowApprover Resource

    Get an existing WorkflowApprover 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?: WorkflowApproverState, opts?: CustomResourceOptions): WorkflowApprover
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            role_id: Optional[str] = None,
            workflow_id: Optional[str] = None) -> WorkflowApprover
    func GetWorkflowApprover(ctx *Context, name string, id IDInput, state *WorkflowApproverState, opts ...ResourceOption) (*WorkflowApprover, error)
    public static WorkflowApprover Get(string name, Input<string> id, WorkflowApproverState? state, CustomResourceOptions? opts = null)
    public static WorkflowApprover get(String name, Output<String> id, WorkflowApproverState 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.
    RoleId string
    The approver role id
    WorkflowId string
    The workflow id.
    AccountId string
    The approver account id.
    RoleId string
    The approver role id
    WorkflowId string
    The workflow id.
    accountId String
    The approver account id.
    roleId String
    The approver role id
    workflowId String
    The workflow id.
    accountId string
    The approver account id.
    roleId string
    The approver role id
    workflowId string
    The workflow id.
    account_id str
    The approver account id.
    role_id str
    The approver role id
    workflow_id str
    The workflow id.
    accountId String
    The approver account id.
    roleId String
    The approver role id
    workflowId String
    The workflow id.

    Import

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

    $ pulumi import sdm:index/workflowApprover:WorkflowApprover example nt-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.12.0 published on Sunday, Apr 28, 2024 by Piers Karsenbarg