published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Import
This resource can be imported using the bindings trigger ID. # Example
$ pulumi import auth0:index/triggerBinding:TriggerBinding example "post-login"
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Auth0 = Pulumi.Auth0;
return await Deployment.RunAsync(() =>
{
var actionFoo = new Auth0.Action("actionFoo", new()
{
Code = @"exports.onContinuePostLogin = async (event, api) => {
console.log(""foo"");
};""
",
Deploy = true,
SupportedTriggers = new Auth0.Inputs.ActionSupportedTriggersArgs
{
Id = "post-login",
Version = "v3",
},
});
var actionBar = new Auth0.Action("actionBar", new()
{
Code = @"exports.onContinuePostLogin = async (event, api) => {
console.log(""bar"");
};""
",
Deploy = true,
SupportedTriggers = new Auth0.Inputs.ActionSupportedTriggersArgs
{
Id = "post-login",
Version = "v3",
},
});
var loginFlow = new Auth0.TriggerBinding("loginFlow", new()
{
Trigger = "post-login",
Actions = new[]
{
new Auth0.Inputs.TriggerBindingActionArgs
{
Id = actionFoo.Id,
DisplayName = actionFoo.Name,
},
new Auth0.Inputs.TriggerBindingActionArgs
{
Id = actionBar.Id,
DisplayName = actionBar.Name,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-auth0/sdk/v2/go/auth0"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
actionFoo, err := auth0.NewAction(ctx, "actionFoo", &auth0.ActionArgs{
Code: pulumi.String("exports.onContinuePostLogin = async (event, api) => {\n console.log(\"foo\");\n};\"\n"),
Deploy: pulumi.Bool(true),
SupportedTriggers: &auth0.ActionSupportedTriggersArgs{
Id: pulumi.String("post-login"),
Version: pulumi.String("v3"),
},
})
if err != nil {
return err
}
actionBar, err := auth0.NewAction(ctx, "actionBar", &auth0.ActionArgs{
Code: pulumi.String("exports.onContinuePostLogin = async (event, api) => {\n console.log(\"bar\");\n};\"\n"),
Deploy: pulumi.Bool(true),
SupportedTriggers: &auth0.ActionSupportedTriggersArgs{
Id: pulumi.String("post-login"),
Version: pulumi.String("v3"),
},
})
if err != nil {
return err
}
_, err = auth0.NewTriggerBinding(ctx, "loginFlow", &auth0.TriggerBindingArgs{
Trigger: pulumi.String("post-login"),
Actions: auth0.TriggerBindingActionArray{
&auth0.TriggerBindingActionArgs{
Id: actionFoo.ID(),
DisplayName: actionFoo.Name,
},
&auth0.TriggerBindingActionArgs{
Id: actionBar.ID(),
DisplayName: actionBar.Name,
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.auth0.Action;
import com.pulumi.auth0.ActionArgs;
import com.pulumi.auth0.inputs.ActionSupportedTriggersArgs;
import com.pulumi.auth0.TriggerBinding;
import com.pulumi.auth0.TriggerBindingArgs;
import com.pulumi.auth0.inputs.TriggerBindingActionArgs;
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 actionFoo = new Action("actionFoo", ActionArgs.builder()
.code("""
exports.onContinuePostLogin = async (event, api) => {
console.log("foo");
};"
""")
.deploy(true)
.supportedTriggers(ActionSupportedTriggersArgs.builder()
.id("post-login")
.version("v3")
.build())
.build());
var actionBar = new Action("actionBar", ActionArgs.builder()
.code("""
exports.onContinuePostLogin = async (event, api) => {
console.log("bar");
};"
""")
.deploy(true)
.supportedTriggers(ActionSupportedTriggersArgs.builder()
.id("post-login")
.version("v3")
.build())
.build());
var loginFlow = new TriggerBinding("loginFlow", TriggerBindingArgs.builder()
.trigger("post-login")
.actions(
TriggerBindingActionArgs.builder()
.id(actionFoo.id())
.displayName(actionFoo.name())
.build(),
TriggerBindingActionArgs.builder()
.id(actionBar.id())
.displayName(actionBar.name())
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as auth0 from "@pulumi/auth0";
const actionFoo = new auth0.Action("actionFoo", {
code: `exports.onContinuePostLogin = async (event, api) => {
console.log("foo");
};"
`,
deploy: true,
supportedTriggers: {
id: "post-login",
version: "v3",
},
});
const actionBar = new auth0.Action("actionBar", {
code: `exports.onContinuePostLogin = async (event, api) => {
console.log("bar");
};"
`,
deploy: true,
supportedTriggers: {
id: "post-login",
version: "v3",
},
});
const loginFlow = new auth0.TriggerBinding("loginFlow", {
trigger: "post-login",
actions: [
{
id: actionFoo.id,
displayName: actionFoo.name,
},
{
id: actionBar.id,
displayName: actionBar.name,
},
],
});
import pulumi
import pulumi_auth0 as auth0
action_foo = auth0.Action("actionFoo",
code="""exports.onContinuePostLogin = async (event, api) => {
console.log("foo");
};"
""",
deploy=True,
supported_triggers=auth0.ActionSupportedTriggersArgs(
id="post-login",
version="v3",
))
action_bar = auth0.Action("actionBar",
code="""exports.onContinuePostLogin = async (event, api) => {
console.log("bar");
};"
""",
deploy=True,
supported_triggers=auth0.ActionSupportedTriggersArgs(
id="post-login",
version="v3",
))
login_flow = auth0.TriggerBinding("loginFlow",
trigger="post-login",
actions=[
auth0.TriggerBindingActionArgs(
id=action_foo.id,
display_name=action_foo.name,
),
auth0.TriggerBindingActionArgs(
id=action_bar.id,
display_name=action_bar.name,
),
])
resources:
actionFoo:
type: auth0:Action
properties:
code: |
exports.onContinuePostLogin = async (event, api) => {
console.log("foo");
};"
deploy: true
supportedTriggers:
id: post-login
version: v3
actionBar:
type: auth0:Action
properties:
code: |
exports.onContinuePostLogin = async (event, api) => {
console.log("bar");
};"
deploy: true
supportedTriggers:
id: post-login
version: v3
loginFlow:
type: auth0:TriggerBinding
properties:
trigger: post-login
actions:
- id: ${actionFoo.id}
displayName: ${actionFoo.name}
- id: ${actionBar.id}
displayName: ${actionBar.name}
Create TriggerBinding Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TriggerBinding(name: string, args: TriggerBindingArgs, opts?: CustomResourceOptions);@overload
def TriggerBinding(resource_name: str,
args: TriggerBindingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TriggerBinding(resource_name: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[TriggerBindingActionArgs]] = None,
trigger: Optional[str] = None)func NewTriggerBinding(ctx *Context, name string, args TriggerBindingArgs, opts ...ResourceOption) (*TriggerBinding, error)public TriggerBinding(string name, TriggerBindingArgs args, CustomResourceOptions? opts = null)
public TriggerBinding(String name, TriggerBindingArgs args)
public TriggerBinding(String name, TriggerBindingArgs args, CustomResourceOptions options)
type: auth0:TriggerBinding
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 TriggerBindingArgs
- 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 TriggerBindingArgs
- 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 TriggerBindingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TriggerBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TriggerBindingArgs
- 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 triggerBindingResource = new Auth0.TriggerBinding("triggerBindingResource", new()
{
Actions = new[]
{
new Auth0.Inputs.TriggerBindingActionArgs
{
DisplayName = "string",
Id = "string",
},
},
Trigger = "string",
});
example, err := auth0.NewTriggerBinding(ctx, "triggerBindingResource", &auth0.TriggerBindingArgs{
Actions: auth0.TriggerBindingActionArray{
&auth0.TriggerBindingActionArgs{
DisplayName: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
Trigger: pulumi.String("string"),
})
var triggerBindingResource = new TriggerBinding("triggerBindingResource", TriggerBindingArgs.builder()
.actions(TriggerBindingActionArgs.builder()
.displayName("string")
.id("string")
.build())
.trigger("string")
.build());
trigger_binding_resource = auth0.TriggerBinding("triggerBindingResource",
actions=[{
"display_name": "string",
"id": "string",
}],
trigger="string")
const triggerBindingResource = new auth0.TriggerBinding("triggerBindingResource", {
actions: [{
displayName: "string",
id: "string",
}],
trigger: "string",
});
type: auth0:TriggerBinding
properties:
actions:
- displayName: string
id: string
trigger: string
TriggerBinding 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 TriggerBinding resource accepts the following input properties:
- Actions
List<Trigger
Binding Action> - The list of actions bound to this trigger.
- Trigger string
- The ID of the trigger to bind with.
- Actions
[]Trigger
Binding Action Args - The list of actions bound to this trigger.
- Trigger string
- The ID of the trigger to bind with.
- actions
List<Trigger
Binding Action> - The list of actions bound to this trigger.
- trigger String
- The ID of the trigger to bind with.
- actions
Trigger
Binding Action[] - The list of actions bound to this trigger.
- trigger string
- The ID of the trigger to bind with.
- actions
Sequence[Trigger
Binding Action Args] - The list of actions bound to this trigger.
- trigger str
- The ID of the trigger to bind with.
- actions List<Property Map>
- The list of actions bound to this trigger.
- trigger String
- The ID of the trigger to bind with.
Outputs
All input properties are implicitly available as output properties. Additionally, the TriggerBinding 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 TriggerBinding Resource
Get an existing TriggerBinding 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?: TriggerBindingState, opts?: CustomResourceOptions): TriggerBinding@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
actions: Optional[Sequence[TriggerBindingActionArgs]] = None,
trigger: Optional[str] = None) -> TriggerBindingfunc GetTriggerBinding(ctx *Context, name string, id IDInput, state *TriggerBindingState, opts ...ResourceOption) (*TriggerBinding, error)public static TriggerBinding Get(string name, Input<string> id, TriggerBindingState? state, CustomResourceOptions? opts = null)public static TriggerBinding get(String name, Output<String> id, TriggerBindingState state, CustomResourceOptions options)resources: _: type: auth0:TriggerBinding get: id: ${id}- 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.
- Actions
List<Trigger
Binding Action> - The list of actions bound to this trigger.
- Trigger string
- The ID of the trigger to bind with.
- Actions
[]Trigger
Binding Action Args - The list of actions bound to this trigger.
- Trigger string
- The ID of the trigger to bind with.
- actions
List<Trigger
Binding Action> - The list of actions bound to this trigger.
- trigger String
- The ID of the trigger to bind with.
- actions
Trigger
Binding Action[] - The list of actions bound to this trigger.
- trigger string
- The ID of the trigger to bind with.
- actions
Sequence[Trigger
Binding Action Args] - The list of actions bound to this trigger.
- trigger str
- The ID of the trigger to bind with.
- actions List<Property Map>
- The list of actions bound to this trigger.
- trigger String
- The ID of the trigger to bind with.
Supporting Types
TriggerBindingAction, TriggerBindingActionArgs
- Display
Name string - The display name of the action within the flow.
- Id string
- Action ID.
- Display
Name string - The display name of the action within the flow.
- Id string
- Action ID.
- display
Name String - The display name of the action within the flow.
- id String
- Action ID.
- display
Name string - The display name of the action within the flow.
- id string
- Action ID.
- display_
name str - The display name of the action within the flow.
- id str
- Action ID.
- display
Name String - The display name of the action within the flow.
- id String
- Action ID.
Package Details
- Repository
- Auth0 pulumi/pulumi-auth0
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
auth0Terraform Provider.
published on Monday, Mar 9, 2026 by Pulumi
