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

sdm.ApprovalWorkflowStep

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 "@pierskarsenbarg/sdm";
    
    const approvalWorkflowStepExample = new sdm.ApprovalWorkflowStep("approvalWorkflowStepExample", {approvalFlowId: "af-343865"});
    
    import pulumi
    import pierskarsenbarg_pulumi_sdm as sdm
    
    approval_workflow_step_example = sdm.ApprovalWorkflowStep("approvalWorkflowStepExample", approval_flow_id="af-343865")
    
    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.NewApprovalWorkflowStep(ctx, "approvalWorkflowStepExample", &sdm.ApprovalWorkflowStepArgs{
    			ApprovalFlowId: pulumi.String("af-343865"),
    		})
    		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 approvalWorkflowStepExample = new Sdm.ApprovalWorkflowStep("approvalWorkflowStepExample", new()
        {
            ApprovalFlowId = "af-343865",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sdm.ApprovalWorkflowStep;
    import com.pulumi.sdm.ApprovalWorkflowStepArgs;
    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 approvalWorkflowStepExample = new ApprovalWorkflowStep("approvalWorkflowStepExample", ApprovalWorkflowStepArgs.builder()        
                .approvalFlowId("af-343865")
                .build());
    
        }
    }
    
    resources:
      approvalWorkflowStepExample:
        type: sdm:ApprovalWorkflowStep
        properties:
          approvalFlowId: af-343865
    

    This resource can be imported using the import command.

    Create ApprovalWorkflowStep Resource

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

    Constructor syntax

    new ApprovalWorkflowStep(name: string, args: ApprovalWorkflowStepArgs, opts?: CustomResourceOptions);
    @overload
    def ApprovalWorkflowStep(resource_name: str,
                             args: ApprovalWorkflowStepArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApprovalWorkflowStep(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             approval_flow_id: Optional[str] = None)
    func NewApprovalWorkflowStep(ctx *Context, name string, args ApprovalWorkflowStepArgs, opts ...ResourceOption) (*ApprovalWorkflowStep, error)
    public ApprovalWorkflowStep(string name, ApprovalWorkflowStepArgs args, CustomResourceOptions? opts = null)
    public ApprovalWorkflowStep(String name, ApprovalWorkflowStepArgs args)
    public ApprovalWorkflowStep(String name, ApprovalWorkflowStepArgs args, CustomResourceOptions options)
    
    type: sdm:ApprovalWorkflowStep
    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 ApprovalWorkflowStepArgs
    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 ApprovalWorkflowStepArgs
    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 ApprovalWorkflowStepArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApprovalWorkflowStepArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApprovalWorkflowStepArgs
    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 approvalWorkflowStepResource = new Sdm.ApprovalWorkflowStep("approvalWorkflowStepResource", new()
    {
        ApprovalFlowId = "string",
    });
    
    example, err := sdm.NewApprovalWorkflowStep(ctx, "approvalWorkflowStepResource", &sdm.ApprovalWorkflowStepArgs{
    	ApprovalFlowId: pulumi.String("string"),
    })
    
    var approvalWorkflowStepResource = new ApprovalWorkflowStep("approvalWorkflowStepResource", ApprovalWorkflowStepArgs.builder()        
        .approvalFlowId("string")
        .build());
    
    approval_workflow_step_resource = sdm.ApprovalWorkflowStep("approvalWorkflowStepResource", approval_flow_id="string")
    
    const approvalWorkflowStepResource = new sdm.ApprovalWorkflowStep("approvalWorkflowStepResource", {approvalFlowId: "string"});
    
    type: sdm:ApprovalWorkflowStep
    properties:
        approvalFlowId: string
    

    ApprovalWorkflowStep 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 ApprovalWorkflowStep resource accepts the following input properties:

    ApprovalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    ApprovalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    approvalFlowId String
    The approval flow id specified the approval workfflow that this step belongs to
    approvalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    approval_flow_id str
    The approval flow id specified the approval workfflow that this step belongs to
    approvalFlowId String
    The approval flow id specified the approval workfflow that this step belongs to

    Outputs

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

    Get an existing ApprovalWorkflowStep 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?: ApprovalWorkflowStepState, opts?: CustomResourceOptions): ApprovalWorkflowStep
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            approval_flow_id: Optional[str] = None) -> ApprovalWorkflowStep
    func GetApprovalWorkflowStep(ctx *Context, name string, id IDInput, state *ApprovalWorkflowStepState, opts ...ResourceOption) (*ApprovalWorkflowStep, error)
    public static ApprovalWorkflowStep Get(string name, Input<string> id, ApprovalWorkflowStepState? state, CustomResourceOptions? opts = null)
    public static ApprovalWorkflowStep get(String name, Output<String> id, ApprovalWorkflowStepState 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:
    ApprovalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    ApprovalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    approvalFlowId String
    The approval flow id specified the approval workfflow that this step belongs to
    approvalFlowId string
    The approval flow id specified the approval workfflow that this step belongs to
    approval_flow_id str
    The approval flow id specified the approval workfflow that this step belongs to
    approvalFlowId String
    The approval flow id specified the approval workfflow that this step belongs to

    Import

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

    $ pulumi import sdm:index/approvalWorkflowStep:ApprovalWorkflowStep example afs-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