1. Packages
  2. StrongDM
  3. API Docs
  4. Workflow
StrongDM v1.26.0 published on Friday, Mar 21, 2025 by Piers Karsenbarg

sdm.Workflow

Explore with Pulumi AI

Workflows are the collection of rules that define the resources to which access can be requested, the users that can request that access, and the mechanism for approving those requests which can either but automatic approval or a set of users authorized to approve the requests.

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  autoGrantApprovalWorkflow:
    type: sdm:Workflow
    properties:
      approvalMode: automatic
      enabled: true
      accessRules:
        fn::toJSON:
          - type: redis
            tags:
              region: us-east
  manualApprovalWorkflow:
    type: sdm:Workflow
    properties:
      approvalMode: manual
      accessRules:
        fn::toJSON:
          - type: redis
            tags:
              region: us-east
Copy

This resource can be imported using the import command.

Create Workflow Resource

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

Constructor syntax

new Workflow(name: string, args?: WorkflowArgs, opts?: CustomResourceOptions);
@overload
def Workflow(resource_name: str,
             args: Optional[WorkflowArgs] = None,
             opts: Optional[ResourceOptions] = None)

@overload
def Workflow(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             access_request_fixed_duration: Optional[str] = None,
             access_request_max_duration: Optional[str] = None,
             access_rules: Optional[str] = None,
             approval_flow_id: Optional[str] = None,
             auto_grant: Optional[bool] = None,
             description: Optional[str] = None,
             enabled: Optional[bool] = None,
             name: Optional[str] = None,
             weight: Optional[int] = None)
func NewWorkflow(ctx *Context, name string, args *WorkflowArgs, opts ...ResourceOption) (*Workflow, error)
public Workflow(string name, WorkflowArgs? args = null, CustomResourceOptions? opts = null)
public Workflow(String name, WorkflowArgs args)
public Workflow(String name, WorkflowArgs args, CustomResourceOptions options)
type: sdm:Workflow
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args WorkflowArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args WorkflowArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args WorkflowArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args WorkflowArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. WorkflowArgs
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 workflowResource = new Sdm.Workflow("workflowResource", new()
{
    AccessRequestFixedDuration = "string",
    AccessRequestMaxDuration = "string",
    AccessRules = "string",
    ApprovalFlowId = "string",
    AutoGrant = false,
    Description = "string",
    Enabled = false,
    Name = "string",
    Weight = 0,
});
Copy
example, err := sdm.NewWorkflow(ctx, "workflowResource", &sdm.WorkflowArgs{
	AccessRequestFixedDuration: pulumi.String("string"),
	AccessRequestMaxDuration:   pulumi.String("string"),
	AccessRules:                pulumi.String("string"),
	ApprovalFlowId:             pulumi.String("string"),
	AutoGrant:                  pulumi.Bool(false),
	Description:                pulumi.String("string"),
	Enabled:                    pulumi.Bool(false),
	Name:                       pulumi.String("string"),
	Weight:                     pulumi.Int(0),
})
Copy
var workflowResource = new Workflow("workflowResource", WorkflowArgs.builder()
    .accessRequestFixedDuration("string")
    .accessRequestMaxDuration("string")
    .accessRules("string")
    .approvalFlowId("string")
    .autoGrant(false)
    .description("string")
    .enabled(false)
    .name("string")
    .weight(0)
    .build());
Copy
workflow_resource = sdm.Workflow("workflowResource",
    access_request_fixed_duration="string",
    access_request_max_duration="string",
    access_rules="string",
    approval_flow_id="string",
    auto_grant=False,
    description="string",
    enabled=False,
    name="string",
    weight=0)
Copy
const workflowResource = new sdm.Workflow("workflowResource", {
    accessRequestFixedDuration: "string",
    accessRequestMaxDuration: "string",
    accessRules: "string",
    approvalFlowId: "string",
    autoGrant: false,
    description: "string",
    enabled: false,
    name: "string",
    weight: 0,
});
Copy
type: sdm:Workflow
properties:
    accessRequestFixedDuration: string
    accessRequestMaxDuration: string
    accessRules: string
    approvalFlowId: string
    autoGrant: false
    description: string
    enabled: false
    name: string
    weight: 0
Copy

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

AccessRequestFixedDuration string
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
AccessRequestMaxDuration string
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
AccessRules string
AccessRules is a list of access rules defining the resources this Workflow provides access to.
ApprovalFlowId string
Optional approval flow ID identifies an approval flow that linked to the workflow
AutoGrant bool
Optional auto grant setting to automatically approve requests or not, defaults to false.
Description string
Optional description of the Workflow.
Enabled bool
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
Name string
Unique human-readable name of the Workflow.
Weight int
Optional weight for workflow to specify it's priority in matching a request.
AccessRequestFixedDuration string
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
AccessRequestMaxDuration string
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
AccessRules string
AccessRules is a list of access rules defining the resources this Workflow provides access to.
ApprovalFlowId string
Optional approval flow ID identifies an approval flow that linked to the workflow
AutoGrant bool
Optional auto grant setting to automatically approve requests or not, defaults to false.
Description string
Optional description of the Workflow.
Enabled bool
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
Name string
Unique human-readable name of the Workflow.
Weight int
Optional weight for workflow to specify it's priority in matching a request.
accessRequestFixedDuration String
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRequestMaxDuration String
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRules String
AccessRules is a list of access rules defining the resources this Workflow provides access to.
approvalFlowId String
Optional approval flow ID identifies an approval flow that linked to the workflow
autoGrant Boolean
Optional auto grant setting to automatically approve requests or not, defaults to false.
description String
Optional description of the Workflow.
enabled Boolean
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
name String
Unique human-readable name of the Workflow.
weight Integer
Optional weight for workflow to specify it's priority in matching a request.
accessRequestFixedDuration string
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRequestMaxDuration string
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRules string
AccessRules is a list of access rules defining the resources this Workflow provides access to.
approvalFlowId string
Optional approval flow ID identifies an approval flow that linked to the workflow
autoGrant boolean
Optional auto grant setting to automatically approve requests or not, defaults to false.
description string
Optional description of the Workflow.
enabled boolean
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
name string
Unique human-readable name of the Workflow.
weight number
Optional weight for workflow to specify it's priority in matching a request.
access_request_fixed_duration str
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
access_request_max_duration str
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
access_rules str
AccessRules is a list of access rules defining the resources this Workflow provides access to.
approval_flow_id str
Optional approval flow ID identifies an approval flow that linked to the workflow
auto_grant bool
Optional auto grant setting to automatically approve requests or not, defaults to false.
description str
Optional description of the Workflow.
enabled bool
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
name str
Unique human-readable name of the Workflow.
weight int
Optional weight for workflow to specify it's priority in matching a request.
accessRequestFixedDuration String
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRequestMaxDuration String
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRules String
AccessRules is a list of access rules defining the resources this Workflow provides access to.
approvalFlowId String
Optional approval flow ID identifies an approval flow that linked to the workflow
autoGrant Boolean
Optional auto grant setting to automatically approve requests or not, defaults to false.
description String
Optional description of the Workflow.
enabled Boolean
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
name String
Unique human-readable name of the Workflow.
weight Number
Optional weight for workflow to specify it's priority in matching a request.

Outputs

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

Get an existing Workflow 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?: WorkflowState, opts?: CustomResourceOptions): Workflow
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_request_fixed_duration: Optional[str] = None,
        access_request_max_duration: Optional[str] = None,
        access_rules: Optional[str] = None,
        approval_flow_id: Optional[str] = None,
        auto_grant: Optional[bool] = None,
        description: Optional[str] = None,
        enabled: Optional[bool] = None,
        name: Optional[str] = None,
        weight: Optional[int] = None) -> Workflow
func GetWorkflow(ctx *Context, name string, id IDInput, state *WorkflowState, opts ...ResourceOption) (*Workflow, error)
public static Workflow Get(string name, Input<string> id, WorkflowState? state, CustomResourceOptions? opts = null)
public static Workflow get(String name, Output<String> id, WorkflowState state, CustomResourceOptions options)
resources:  _:    type: sdm:Workflow    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AccessRequestFixedDuration string
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
AccessRequestMaxDuration string
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
AccessRules string
AccessRules is a list of access rules defining the resources this Workflow provides access to.
ApprovalFlowId string
Optional approval flow ID identifies an approval flow that linked to the workflow
AutoGrant bool
Optional auto grant setting to automatically approve requests or not, defaults to false.
Description string
Optional description of the Workflow.
Enabled bool
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
Name string
Unique human-readable name of the Workflow.
Weight int
Optional weight for workflow to specify it's priority in matching a request.
AccessRequestFixedDuration string
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
AccessRequestMaxDuration string
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
AccessRules string
AccessRules is a list of access rules defining the resources this Workflow provides access to.
ApprovalFlowId string
Optional approval flow ID identifies an approval flow that linked to the workflow
AutoGrant bool
Optional auto grant setting to automatically approve requests or not, defaults to false.
Description string
Optional description of the Workflow.
Enabled bool
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
Name string
Unique human-readable name of the Workflow.
Weight int
Optional weight for workflow to specify it's priority in matching a request.
accessRequestFixedDuration String
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRequestMaxDuration String
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRules String
AccessRules is a list of access rules defining the resources this Workflow provides access to.
approvalFlowId String
Optional approval flow ID identifies an approval flow that linked to the workflow
autoGrant Boolean
Optional auto grant setting to automatically approve requests or not, defaults to false.
description String
Optional description of the Workflow.
enabled Boolean
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
name String
Unique human-readable name of the Workflow.
weight Integer
Optional weight for workflow to specify it's priority in matching a request.
accessRequestFixedDuration string
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRequestMaxDuration string
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRules string
AccessRules is a list of access rules defining the resources this Workflow provides access to.
approvalFlowId string
Optional approval flow ID identifies an approval flow that linked to the workflow
autoGrant boolean
Optional auto grant setting to automatically approve requests or not, defaults to false.
description string
Optional description of the Workflow.
enabled boolean
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
name string
Unique human-readable name of the Workflow.
weight number
Optional weight for workflow to specify it's priority in matching a request.
access_request_fixed_duration str
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
access_request_max_duration str
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
access_rules str
AccessRules is a list of access rules defining the resources this Workflow provides access to.
approval_flow_id str
Optional approval flow ID identifies an approval flow that linked to the workflow
auto_grant bool
Optional auto grant setting to automatically approve requests or not, defaults to false.
description str
Optional description of the Workflow.
enabled bool
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
name str
Unique human-readable name of the Workflow.
weight int
Optional weight for workflow to specify it's priority in matching a request.
accessRequestFixedDuration String
Fixed Duration of access requests bound to this workflow. If fixed duration is provided, max duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRequestMaxDuration String
Maximum Duration of access requests bound to this workflow. If max duration is provided, fixed duration must be empty. If neither max nor fixed duration are provided, requests that bind to this workflow will use the organization-level settings.
accessRules String
AccessRules is a list of access rules defining the resources this Workflow provides access to.
approvalFlowId String
Optional approval flow ID identifies an approval flow that linked to the workflow
autoGrant Boolean
Optional auto grant setting to automatically approve requests or not, defaults to false.
description String
Optional description of the Workflow.
enabled Boolean
Optional enabled state for workflow. This setting may be overridden by the system if the workflow doesn't meet the requirements to be enabled or if other conditions prevent enabling the workflow. The requirements to enable a workflow are that the workflow must be either set up for with auto grant enabled or have one or more WorkflowApprovers created for the workflow.
name String
Unique human-readable name of the Workflow.
weight Number
Optional weight for workflow to specify it's priority in matching a request.

Import

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

$ pulumi import sdm:index/workflow:Workflow example aw-12345678
Copy

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.