1. Packages
  2. Packages
  3. Auth0 Provider
  4. API Docs
  5. Action
Viewing docs for Auth0 v3.50.1
published on Saturday, Aug 8, 2026 by Pulumi
auth0 logo auth0 logo
Viewing docs for Auth0 v3.50.1
published on Saturday, Aug 8, 2026 by Pulumi

    Actions are secure, tenant-specific, versioned functions written in Node.js that execute at certain points during the Auth0 runtime. Actions are used to customize and extend Auth0’s capabilities with custom logic.

    An action bound to a trigger cannot be deleted. To destroy such an action, the trigger binding must first be deleted. A binding is usually managed by auth0.TriggerAction resource. The provider also supports a 1:many variant auth0_trigger_actions. If by any means, a binding is missing is the state file, it can be imported to the state and deleted, before attempting to delete the action.

    Values provided in the secrets block are stored in the raw state as plain text. Read more about sensitive data in state. For better security, consider using the secretsWo write-only alternative, whose values are never stored in Terraform state.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as auth0 from "@pulumi/auth0";
    import * as std from "@pulumi/std";
    
    const myAction = new auth0.Action("my_action", {
        name: std.format({
            input: "Test Action %s",
            args: [std.timestamp({}).result],
        }).result,
        runtime: "node22",
        deploy: true,
        code: `/**
     * Handler that will be called during the execution of a PostLogin flow.
     *
     * @param {Event} event - Details about the user and the context in which they are logging in.
     * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
     */
     exports.onExecutePostLogin = async (event, api) => {
       console.log(event);
     };
    `,
        supportedTriggers: {
            id: "post-login",
            version: "v3",
        },
        dependencies: [
            {
                name: "lodash",
                version: "latest",
            },
            {
                name: "request",
                version: "latest",
            },
        ],
        secrets: [
            {
                name: "FOO",
                value: "Foo",
            },
            {
                name: "BAR",
                value: "Bar",
            },
        ],
    });
    const config = new pulumi.Config();
    // API key passed to the post-login action.
    const actionApiKey = config.require("actionApiKey");
    const mySecureAction = new auth0.Action("my_secure_action", {
        name: std.format({
            input: "Secure Action %s",
            args: [std.timestamp({}).result],
        }).result,
        runtime: "node22",
        deploy: true,
        code: `exports.onExecutePostLogin = async (event, api) => {
      console.log(event);
    };
    `,
        supportedTriggers: {
            id: "post-login",
            version: "v3",
        },
        secretsWos: [{
            name: "API_KEY",
            value: actionApiKey,
        }],
        secretsWoVersion: 1,
    });
    
    import pulumi
    import pulumi_auth0 as auth0
    import pulumi_std as std
    
    my_action = auth0.Action("my_action",
        name=std.format(input="Test Action %s",
            args=[std.timestamp()["result"]])["result"],
        runtime="node22",
        deploy=True,
        code="""/**
     * Handler that will be called during the execution of a PostLogin flow.
     *
     * @param {Event} event - Details about the user and the context in which they are logging in.
     * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
     */
     exports.onExecutePostLogin = async (event, api) => {
       console.log(event);
     };
    """,
        supported_triggers={
            "id": "post-login",
            "version": "v3",
        },
        dependencies=[
            {
                "name": "lodash",
                "version": "latest",
            },
            {
                "name": "request",
                "version": "latest",
            },
        ],
        secrets=[
            {
                "name": "FOO",
                "value": "Foo",
            },
            {
                "name": "BAR",
                "value": "Bar",
            },
        ])
    config = pulumi.Config()
    # API key passed to the post-login action.
    action_api_key = config.require("actionApiKey")
    my_secure_action = auth0.Action("my_secure_action",
        name=std.format(input="Secure Action %s",
            args=[std.timestamp()["result"]])["result"],
        runtime="node22",
        deploy=True,
        code="""exports.onExecutePostLogin = async (event, api) => {
      console.log(event);
    };
    """,
        supported_triggers={
            "id": "post-login",
            "version": "v3",
        },
        secrets_wos=[{
            "name": "API_KEY",
            "value": action_api_key,
        }],
        secrets_wo_version=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-auth0/sdk/v3/go/auth0"
    	"github.com/pulumi/pulumi-std/sdk/go/std"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		invokeFormat, err := std.Format(ctx, map[string]interface{}{
    			"input": "Test Action %s",
    			"args": []interface{}{
    				std.Timestamp(ctx, map[string]interface{}{}, nil).Result,
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = auth0.NewAction(ctx, "my_action", &auth0.ActionArgs{
    			Name:    invokeFormat.Result,
    			Runtime: pulumi.String("node22"),
    			Deploy:  pulumi.Bool(true),
    			Code: pulumi.String(`/**
     * Handler that will be called during the execution of a PostLogin flow.
     *
     * @param {Event} event - Details about the user and the context in which they are logging in.
     * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
     */
     exports.onExecutePostLogin = async (event, api) => {
       console.log(event);
     };
    `),
    			SupportedTriggers: &auth0.ActionSupportedTriggersArgs{
    				Id:      pulumi.String("post-login"),
    				Version: pulumi.String("v3"),
    			},
    			Dependencies: auth0.ActionDependencyArray{
    				&auth0.ActionDependencyArgs{
    					Name:    pulumi.String("lodash"),
    					Version: pulumi.String("latest"),
    				},
    				&auth0.ActionDependencyArgs{
    					Name:    pulumi.String("request"),
    					Version: pulumi.String("latest"),
    				},
    			},
    			Secrets: auth0.ActionSecretArray{
    				&auth0.ActionSecretArgs{
    					Name:  pulumi.String("FOO"),
    					Value: pulumi.String("Foo"),
    				},
    				&auth0.ActionSecretArgs{
    					Name:  pulumi.String("BAR"),
    					Value: pulumi.String("Bar"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		cfg := config.New(ctx, "")
    		// API key passed to the post-login action.
    		actionApiKey := cfg.Require("actionApiKey")
    		invokeFormat1, err := std.Format(ctx, map[string]interface{}{
    			"input": "Secure Action %s",
    			"args": []interface{}{
    				std.Timestamp(ctx, map[string]interface{}{}, nil).Result,
    			},
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = auth0.NewAction(ctx, "my_secure_action", &auth0.ActionArgs{
    			Name:    invokeFormat1.Result,
    			Runtime: pulumi.String("node22"),
    			Deploy:  pulumi.Bool(true),
    			Code:    pulumi.String("exports.onExecutePostLogin = async (event, api) => {\n  console.log(event);\n};\n"),
    			SupportedTriggers: &auth0.ActionSupportedTriggersArgs{
    				Id:      pulumi.String("post-login"),
    				Version: pulumi.String("v3"),
    			},
    			SecretsWos: auth0.ActionSecretsWoArray{
    				&auth0.ActionSecretsWoArgs{
    					Name:  pulumi.String("API_KEY"),
    					Value: pulumi.String(actionApiKey),
    				},
    			},
    			SecretsWoVersion: pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Auth0 = Pulumi.Auth0;
    using Std = Pulumi.Std;
    
    return await Deployment.RunAsync(() => 
    {
        var myAction = new Auth0.Action("my_action", new()
        {
            Name = Std.Format.Invoke(new()
            {
                Input = "Test Action %s",
                Args = new[]
                {
                    Std.Timestamp.Invoke().Result,
                },
            }).Result,
            Runtime = "node22",
            Deploy = true,
            Code = @"/**
     * Handler that will be called during the execution of a PostLogin flow.
     *
     * @param {Event} event - Details about the user and the context in which they are logging in.
     * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
     */
     exports.onExecutePostLogin = async (event, api) => {
       console.log(event);
     };
    ",
            SupportedTriggers = new Auth0.Inputs.ActionSupportedTriggersArgs
            {
                Id = "post-login",
                Version = "v3",
            },
            Dependencies = new[]
            {
                new Auth0.Inputs.ActionDependencyArgs
                {
                    Name = "lodash",
                    Version = "latest",
                },
                new Auth0.Inputs.ActionDependencyArgs
                {
                    Name = "request",
                    Version = "latest",
                },
            },
            Secrets = new[]
            {
                new Auth0.Inputs.ActionSecretArgs
                {
                    Name = "FOO",
                    Value = "Foo",
                },
                new Auth0.Inputs.ActionSecretArgs
                {
                    Name = "BAR",
                    Value = "Bar",
                },
            },
        });
    
        var config = new Config();
        // API key passed to the post-login action.
        var actionApiKey = config.Require("actionApiKey");
        var mySecureAction = new Auth0.Action("my_secure_action", new()
        {
            Name = Std.Format.Invoke(new()
            {
                Input = "Secure Action %s",
                Args = new[]
                {
                    Std.Timestamp.Invoke().Result,
                },
            }).Result,
            Runtime = "node22",
            Deploy = true,
            Code = @"exports.onExecutePostLogin = async (event, api) => {
      console.log(event);
    };
    ",
            SupportedTriggers = new Auth0.Inputs.ActionSupportedTriggersArgs
            {
                Id = "post-login",
                Version = "v3",
            },
            SecretsWos = new[]
            {
                new Auth0.Inputs.ActionSecretsWoArgs
                {
                    Name = "API_KEY",
                    Value = actionApiKey,
                },
            },
            SecretsWoVersion = 1,
        });
    
    });
    
    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.inputs.ActionDependencyArgs;
    import com.pulumi.auth0.inputs.ActionSecretArgs;
    import com.pulumi.std.StdFunctions;
    import com.pulumi.auth0.inputs.ActionSecretsWoArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var config = ctx.config();
            var myAction = new Action("myAction", ActionArgs.builder()
                .name(StdFunctions.format(Map.ofEntries(
                    Map.entry("input", "Test Action %s"),
                    Map.entry("args", Arrays.asList(StdFunctions.timestamp(Map.ofEntries(
                    )).result()))
                )).result())
                .runtime("node22")
                .deploy(true)
                .code("""
    /**
     * Handler that will be called during the execution of a PostLogin flow.
     *
     * @param {Event} event - Details about the user and the context in which they are logging in.
     * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
     */
     exports.onExecutePostLogin = async (event, api) => {
       console.log(event);
     };
                """)
                .supportedTriggers(ActionSupportedTriggersArgs.builder()
                    .id("post-login")
                    .version("v3")
                    .build())
                .dependencies(            
                    ActionDependencyArgs.builder()
                        .name("lodash")
                        .version("latest")
                        .build(),
                    ActionDependencyArgs.builder()
                        .name("request")
                        .version("latest")
                        .build())
                .secrets(            
                    ActionSecretArgs.builder()
                        .name("FOO")
                        .value("Foo")
                        .build(),
                    ActionSecretArgs.builder()
                        .name("BAR")
                        .value("Bar")
                        .build())
                .build());
    
            final var actionApiKey = config.require("actionApiKey");
            var mySecureAction = new Action("mySecureAction", ActionArgs.builder()
                .name(StdFunctions.format(Map.ofEntries(
                    Map.entry("input", "Secure Action %s"),
                    Map.entry("args", Arrays.asList(StdFunctions.timestamp(Map.ofEntries(
                    )).result()))
                )).result())
                .runtime("node22")
                .deploy(true)
                .code("""
    exports.onExecutePostLogin = async (event, api) => {
      console.log(event);
    };
                """)
                .supportedTriggers(ActionSupportedTriggersArgs.builder()
                    .id("post-login")
                    .version("v3")
                    .build())
                .secretsWos(ActionSecretsWoArgs.builder()
                    .name("API_KEY")
                    .value(actionApiKey)
                    .build())
                .secretsWoVersion(1)
                .build());
    
        }
    }
    
    configuration:
      # Creates an action with write-only secrets (recommended for security).
      # Secret values are never stored in Terraform state. They can be supplied via
      # regular sensitive variables or via ephemeral variables/resources.
      actionApiKey:
        type: string
    resources:
      myAction:
        type: auth0:Action
        name: my_action
        properties:
          name:
            fn::invoke:
              function: std:format
              arguments:
                input: Test Action %s
                args:
                  - fn::invoke:
                      function: std:timestamp
                      arguments: {}
                      return: result
              return: result
          runtime: node22
          deploy: true
          code: |
            /**
             * Handler that will be called during the execution of a PostLogin flow.
             *
             * @param {Event} event - Details about the user and the context in which they are logging in.
             * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
             */
             exports.onExecutePostLogin = async (event, api) => {
               console.log(event);
             };
          supportedTriggers:
            id: post-login
            version: v3
          dependencies:
            - name: lodash
              version: latest
            - name: request
              version: latest
          secrets:
            - name: FOO
              value: Foo
            - name: BAR
              value: Bar
      mySecureAction:
        type: auth0:Action
        name: my_secure_action
        properties:
          name:
            fn::invoke:
              function: std:format
              arguments:
                input: Secure Action %s
                args:
                  - fn::invoke:
                      function: std:timestamp
                      arguments: {}
                      return: result
              return: result
          runtime: node22
          deploy: true
          code: |
            exports.onExecutePostLogin = async (event, api) => {
              console.log(event);
            };
          supportedTriggers:
            id: post-login
            version: v3
          secretsWos:
            - name: API_KEY
              value: ${actionApiKey}
          secretsWoVersion: 1
    
    pulumi {
      required_providers {
        auth0 = {
          source = "pulumi/auth0"
        }
      }
    }
    
    data "std_format" "invoke_0" {
      input = "Test Action %s"
      args  = [timestamp()]
    }
    data "std_format" "invoke_1" {
      input = "Secure Action %s"
      args  = [timestamp()]
    }
    
    resource "auth0_action" "my_action" {
      name    = data.std_format.invoke_0.result
      runtime = "node22"
      deploy  = true
      code    = "/**\n * Handler that will be called during the execution of a PostLogin flow.\n *\n * @param {Event} event - Details about the user and the context in which they are logging in.\n * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.\n */\n exports.onExecutePostLogin = async (event, api) => {\n   console.log(event);\n };\n"
      supported_triggers = {
        id      = "post-login"
        version = "v3"
      }
      dependencies {
        name    = "lodash"
        version = "latest"
      }
      dependencies {
        name    = "request"
        version = "latest"
      }
      secrets {
        name  = "FOO"
        value = "Foo"
      }
      secrets {
        name  = "BAR"
        value = "Bar"
      }
    }
    resource "auth0_action" "my_secure_action" {
      name    = data.std_format.invoke_1.result
      runtime = "node22"
      deploy  = true
      code    = "exports.onExecutePostLogin = async (event, api) => {\n  console.log(event);\n};\n"
      supported_triggers = {
        id      = "post-login"
        version = "v3"
      }
      secrets_wos {
        name  = "API_KEY"
        value = var.actionApiKey
      }
      secrets_wo_version = 1
    }
    # Creates an action with write-only secrets (recommended for security).
    # Secret values are never stored in Terraform state. They can be supplied via
    # regular sensitive variables or via ephemeral variables/resources.
    variable "actionApiKey" {
      type        = string
      description = "API key passed to the post-login action."
    }
    

    Create Action Resource

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

    Constructor syntax

    new Action(name: string, args: ActionArgs, opts?: CustomResourceOptions);
    @overload
    def Action(resource_name: str,
               args: ActionArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Action(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               code: Optional[str] = None,
               supported_triggers: Optional[ActionSupportedTriggersArgs] = None,
               dependencies: Optional[Sequence[ActionDependencyArgs]] = None,
               deploy: Optional[bool] = None,
               modules: Optional[Sequence[ActionModuleArgs]] = None,
               name: Optional[str] = None,
               runtime: Optional[str] = None,
               secrets: Optional[Sequence[ActionSecretArgs]] = None,
               secrets_wo_version: Optional[int] = None,
               secrets_wos: Optional[Sequence[ActionSecretsWoArgs]] = None)
    func NewAction(ctx *Context, name string, args ActionArgs, opts ...ResourceOption) (*Action, error)
    public Action(string name, ActionArgs args, CustomResourceOptions? opts = null)
    public Action(String name, ActionArgs args)
    public Action(String name, ActionArgs args, CustomResourceOptions options)
    
    type: auth0:Action
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "auth0_action" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ActionArgs
    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 ActionArgs
    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 ActionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ActionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ActionArgs
    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 actionResource = new Auth0.Action("actionResource", new()
    {
        Code = "string",
        SupportedTriggers = new Auth0.Inputs.ActionSupportedTriggersArgs
        {
            Id = "string",
            Version = "string",
        },
        Dependencies = new[]
        {
            new Auth0.Inputs.ActionDependencyArgs
            {
                Name = "string",
                Version = "string",
            },
        },
        Deploy = false,
        Modules = new[]
        {
            new Auth0.Inputs.ActionModuleArgs
            {
                ModuleId = "string",
                ModuleVersionId = "string",
                ModuleName = "string",
                ModuleVersionNumber = 0,
            },
        },
        Name = "string",
        Runtime = "string",
        Secrets = new[]
        {
            new Auth0.Inputs.ActionSecretArgs
            {
                Name = "string",
                Value = "string",
            },
        },
        SecretsWoVersion = 0,
        SecretsWos = new[]
        {
            new Auth0.Inputs.ActionSecretsWoArgs
            {
                Name = "string",
                Value = "string",
            },
        },
    });
    
    example, err := auth0.NewAction(ctx, "actionResource", &auth0.ActionArgs{
    	Code: pulumi.String("string"),
    	SupportedTriggers: &auth0.ActionSupportedTriggersArgs{
    		Id:      pulumi.String("string"),
    		Version: pulumi.String("string"),
    	},
    	Dependencies: auth0.ActionDependencyArray{
    		&auth0.ActionDependencyArgs{
    			Name:    pulumi.String("string"),
    			Version: pulumi.String("string"),
    		},
    	},
    	Deploy: pulumi.Bool(false),
    	Modules: auth0.ActionModuleTypeArray{
    		&auth0.ActionModuleTypeArgs{
    			ModuleId:            pulumi.String("string"),
    			ModuleVersionId:     pulumi.String("string"),
    			ModuleName:          pulumi.String("string"),
    			ModuleVersionNumber: pulumi.Int(0),
    		},
    	},
    	Name:    pulumi.String("string"),
    	Runtime: pulumi.String("string"),
    	Secrets: auth0.ActionSecretArray{
    		&auth0.ActionSecretArgs{
    			Name:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	SecretsWoVersion: pulumi.Int(0),
    	SecretsWos: auth0.ActionSecretsWoArray{
    		&auth0.ActionSecretsWoArgs{
    			Name:  pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    })
    
    resource "auth0_action" "actionResource" {
      lifecycle {
        create_before_destroy = true
      }
      code = "string"
      supported_triggers = {
        id      = "string"
        version = "string"
      }
      dependencies {
        name    = "string"
        version = "string"
      }
      deploy = false
      modules {
        module_id             = "string"
        module_version_id     = "string"
        module_name           = "string"
        module_version_number = 0
      }
      name    = "string"
      runtime = "string"
      secrets {
        name  = "string"
        value = "string"
      }
      secrets_wo_version = 0
      secrets_wos {
        name  = "string"
        value = "string"
      }
    }
    
    var actionResource = new Action("actionResource", ActionArgs.builder()
        .code("string")
        .supportedTriggers(ActionSupportedTriggersArgs.builder()
            .id("string")
            .version("string")
            .build())
        .dependencies(ActionDependencyArgs.builder()
            .name("string")
            .version("string")
            .build())
        .deploy(false)
        .modules(com.pulumi.auth0.inputs.ActionModuleArgs.builder()
            .moduleId("string")
            .moduleVersionId("string")
            .moduleName("string")
            .moduleVersionNumber(0)
            .build())
        .name("string")
        .runtime("string")
        .secrets(ActionSecretArgs.builder()
            .name("string")
            .value("string")
            .build())
        .secretsWoVersion(0)
        .secretsWos(ActionSecretsWoArgs.builder()
            .name("string")
            .value("string")
            .build())
        .build());
    
    action_resource = auth0.Action("actionResource",
        code="string",
        supported_triggers={
            "id": "string",
            "version": "string",
        },
        dependencies=[{
            "name": "string",
            "version": "string",
        }],
        deploy=False,
        modules=[{
            "module_id": "string",
            "module_version_id": "string",
            "module_name": "string",
            "module_version_number": 0,
        }],
        name="string",
        runtime="string",
        secrets=[{
            "name": "string",
            "value": "string",
        }],
        secrets_wo_version=0,
        secrets_wos=[{
            "name": "string",
            "value": "string",
        }])
    
    const actionResource = new auth0.Action("actionResource", {
        code: "string",
        supportedTriggers: {
            id: "string",
            version: "string",
        },
        dependencies: [{
            name: "string",
            version: "string",
        }],
        deploy: false,
        modules: [{
            moduleId: "string",
            moduleVersionId: "string",
            moduleName: "string",
            moduleVersionNumber: 0,
        }],
        name: "string",
        runtime: "string",
        secrets: [{
            name: "string",
            value: "string",
        }],
        secretsWoVersion: 0,
        secretsWos: [{
            name: "string",
            value: "string",
        }],
    });
    
    type: auth0:Action
    properties:
        code: string
        dependencies:
            - name: string
              version: string
        deploy: false
        modules:
            - moduleId: string
              moduleName: string
              moduleVersionId: string
              moduleVersionNumber: 0
        name: string
        runtime: string
        secrets:
            - name: string
              value: string
        secretsWoVersion: 0
        secretsWos:
            - name: string
              value: string
        supportedTriggers:
            id: string
            version: string
    

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

    Code string
    The source code of the action.
    SupportedTriggers ActionSupportedTriggers
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    Dependencies List<ActionDependency>
    List of third party npm modules, and their versions, that this action depends on.
    Deploy bool
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    Modules List<ActionModule>
    List of action modules and their versions that this action depends on.
    Name string
    The name of the action.
    Runtime string
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    Secrets List<ActionSecret>
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    SecretsWoVersion int
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    SecretsWos List<ActionSecretsWo>
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    Code string
    The source code of the action.
    SupportedTriggers ActionSupportedTriggersArgs
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    Dependencies []ActionDependencyArgs
    List of third party npm modules, and their versions, that this action depends on.
    Deploy bool
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    Modules []ActionModuleTypeArgs
    List of action modules and their versions that this action depends on.
    Name string
    The name of the action.
    Runtime string
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    Secrets []ActionSecretArgs
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    SecretsWoVersion int
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    SecretsWos []ActionSecretsWoArgs
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    code string
    The source code of the action.
    supported_triggers object
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    dependencies list(object)
    List of third party npm modules, and their versions, that this action depends on.
    deploy bool
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    modules list(object)
    List of action modules and their versions that this action depends on.
    name string
    The name of the action.
    runtime string
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    secrets list(object)
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    secrets_wo_version number
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    secrets_wos list(object)
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    code String
    The source code of the action.
    supportedTriggers ActionSupportedTriggers
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    dependencies List<ActionDependency>
    List of third party npm modules, and their versions, that this action depends on.
    deploy Boolean
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    modules List<ActionModule>
    List of action modules and their versions that this action depends on.
    name String
    The name of the action.
    runtime String
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    secrets List<ActionSecret>
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    secretsWoVersion Integer
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    secretsWos List<ActionSecretsWo>
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    code string
    The source code of the action.
    supportedTriggers ActionSupportedTriggers
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    dependencies ActionDependency[]
    List of third party npm modules, and their versions, that this action depends on.
    deploy boolean
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    modules ActionModule[]
    List of action modules and their versions that this action depends on.
    name string
    The name of the action.
    runtime string
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    secrets ActionSecret[]
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    secretsWoVersion number
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    secretsWos ActionSecretsWo[]
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    code str
    The source code of the action.
    supported_triggers ActionSupportedTriggersArgs
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    dependencies Sequence[ActionDependencyArgs]
    List of third party npm modules, and their versions, that this action depends on.
    deploy bool
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    modules Sequence[ActionModuleArgs]
    List of action modules and their versions that this action depends on.
    name str
    The name of the action.
    runtime str
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    secrets Sequence[ActionSecretArgs]
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    secrets_wo_version int
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    secrets_wos Sequence[ActionSecretsWoArgs]
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    code String
    The source code of the action.
    supportedTriggers Property Map
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    dependencies List<Property Map>
    List of third party npm modules, and their versions, that this action depends on.
    deploy Boolean
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    modules List<Property Map>
    List of action modules and their versions that this action depends on.
    name String
    The name of the action.
    runtime String
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    secrets List<Property Map>
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    secretsWoVersion Number
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    secretsWos List<Property Map>
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    VersionId string
    Version ID of the action. This value is available if deploy is set to true.
    Id string
    The provider-assigned unique ID for this managed resource.
    VersionId string
    Version ID of the action. This value is available if deploy is set to true.
    id string
    The provider-assigned unique ID for this managed resource.
    version_id string
    Version ID of the action. This value is available if deploy is set to true.
    id String
    The provider-assigned unique ID for this managed resource.
    versionId String
    Version ID of the action. This value is available if deploy is set to true.
    id string
    The provider-assigned unique ID for this managed resource.
    versionId string
    Version ID of the action. This value is available if deploy is set to true.
    id str
    The provider-assigned unique ID for this managed resource.
    version_id str
    Version ID of the action. This value is available if deploy is set to true.
    id String
    The provider-assigned unique ID for this managed resource.
    versionId String
    Version ID of the action. This value is available if deploy is set to true.

    Look up Existing Action Resource

    Get an existing Action 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?: ActionState, opts?: CustomResourceOptions): Action
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            code: Optional[str] = None,
            dependencies: Optional[Sequence[ActionDependencyArgs]] = None,
            deploy: Optional[bool] = None,
            modules: Optional[Sequence[ActionModuleArgs]] = None,
            name: Optional[str] = None,
            runtime: Optional[str] = None,
            secrets: Optional[Sequence[ActionSecretArgs]] = None,
            secrets_wo_version: Optional[int] = None,
            secrets_wos: Optional[Sequence[ActionSecretsWoArgs]] = None,
            supported_triggers: Optional[ActionSupportedTriggersArgs] = None,
            version_id: Optional[str] = None) -> Action
    func GetAction(ctx *Context, name string, id IDInput, state *ActionState, opts ...ResourceOption) (*Action, error)
    public static Action Get(string name, Input<string> id, ActionState? state, CustomResourceOptions? opts = null)
    public static Action get(String name, Output<String> id, ActionState state, CustomResourceOptions options)
    resources:  _:    type: auth0:Action    get:      id: ${id}
    import {
      to = auth0_action.example
      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.
    The following state arguments are supported:
    Code string
    The source code of the action.
    Dependencies List<ActionDependency>
    List of third party npm modules, and their versions, that this action depends on.
    Deploy bool
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    Modules List<ActionModule>
    List of action modules and their versions that this action depends on.
    Name string
    The name of the action.
    Runtime string
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    Secrets List<ActionSecret>
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    SecretsWoVersion int
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    SecretsWos List<ActionSecretsWo>
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    SupportedTriggers ActionSupportedTriggers
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    VersionId string
    Version ID of the action. This value is available if deploy is set to true.
    Code string
    The source code of the action.
    Dependencies []ActionDependencyArgs
    List of third party npm modules, and their versions, that this action depends on.
    Deploy bool
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    Modules []ActionModuleTypeArgs
    List of action modules and their versions that this action depends on.
    Name string
    The name of the action.
    Runtime string
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    Secrets []ActionSecretArgs
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    SecretsWoVersion int
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    SecretsWos []ActionSecretsWoArgs
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    SupportedTriggers ActionSupportedTriggersArgs
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    VersionId string
    Version ID of the action. This value is available if deploy is set to true.
    code string
    The source code of the action.
    dependencies list(object)
    List of third party npm modules, and their versions, that this action depends on.
    deploy bool
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    modules list(object)
    List of action modules and their versions that this action depends on.
    name string
    The name of the action.
    runtime string
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    secrets list(object)
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    secrets_wo_version number
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    secrets_wos list(object)
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    supported_triggers object
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    version_id string
    Version ID of the action. This value is available if deploy is set to true.
    code String
    The source code of the action.
    dependencies List<ActionDependency>
    List of third party npm modules, and their versions, that this action depends on.
    deploy Boolean
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    modules List<ActionModule>
    List of action modules and their versions that this action depends on.
    name String
    The name of the action.
    runtime String
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    secrets List<ActionSecret>
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    secretsWoVersion Integer
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    secretsWos List<ActionSecretsWo>
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    supportedTriggers ActionSupportedTriggers
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    versionId String
    Version ID of the action. This value is available if deploy is set to true.
    code string
    The source code of the action.
    dependencies ActionDependency[]
    List of third party npm modules, and their versions, that this action depends on.
    deploy boolean
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    modules ActionModule[]
    List of action modules and their versions that this action depends on.
    name string
    The name of the action.
    runtime string
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    secrets ActionSecret[]
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    secretsWoVersion number
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    secretsWos ActionSecretsWo[]
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    supportedTriggers ActionSupportedTriggers
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    versionId string
    Version ID of the action. This value is available if deploy is set to true.
    code str
    The source code of the action.
    dependencies Sequence[ActionDependencyArgs]
    List of third party npm modules, and their versions, that this action depends on.
    deploy bool
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    modules Sequence[ActionModuleArgs]
    List of action modules and their versions that this action depends on.
    name str
    The name of the action.
    runtime str
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    secrets Sequence[ActionSecretArgs]
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    secrets_wo_version int
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    secrets_wos Sequence[ActionSecretsWoArgs]
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    supported_triggers ActionSupportedTriggersArgs
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    version_id str
    Version ID of the action. This value is available if deploy is set to true.
    code String
    The source code of the action.
    dependencies List<Property Map>
    List of third party npm modules, and their versions, that this action depends on.
    deploy Boolean
    Deploying an action will create a new immutable version of the action. If the action is currently bound to a trigger, then the system will begin executing the newly deployed version of the action immediately.
    modules List<Property Map>
    List of action modules and their versions that this action depends on.
    name String
    The name of the action.
    runtime String
    The Node runtime. Possible values are: node12, node16 (not recommended), node18, node22
    secrets List<Property Map>
    List of secrets that are included in an action or a version of an action. Partial management of secrets is not supported. If the secret block is edited, the whole object is re-provisioned. Note: Secret values are persisted in Terraform state as plain text. For better security, consider using secretsWo instead, which supports write-only values and ephemeral variables.
    secretsWoVersion Number
    Version number for secretsWo changes. Adding, renaming, or removing a secretsWo entry is detected automatically, but changing only the value of an existing secret is not (write-only values are not tracked in state). Increment this value to push value-only changes to the API.
    secretsWos List<Property Map>
    List of secrets for the action (write-only). Secret values are only available during resource creation and update, and are not stored in Terraform state. Adding, renaming, or removing an entry is applied automatically; to change only the value of an existing secret, bump the secretsWoVersion attribute. To remove all secrets, delete the secretsWo blocks together with the secretsWoVersion attribute. This is an ordered list, so reordering the blocks is treated as a change. Conflicts with secrets.
    supportedTriggers Property Map
    List of triggers that this action supports. At this time, an action can only target a single trigger at a time. Read Retrieving the set of triggers available within actions to retrieve the latest trigger versions supported.
    versionId String
    Version ID of the action. This value is available if deploy is set to true.

    Supporting Types

    ActionDependency, ActionDependencyArgs

    Name string
    Dependency name, e.g. lodash.
    Version string
    Dependency version, e.g. latest or 4.17.21.
    Name string
    Dependency name, e.g. lodash.
    Version string
    Dependency version, e.g. latest or 4.17.21.
    name string
    Dependency name, e.g. lodash.
    version string
    Dependency version, e.g. latest or 4.17.21.
    name String
    Dependency name, e.g. lodash.
    version String
    Dependency version, e.g. latest or 4.17.21.
    name string
    Dependency name, e.g. lodash.
    version string
    Dependency version, e.g. latest or 4.17.21.
    name str
    Dependency name, e.g. lodash.
    version str
    Dependency version, e.g. latest or 4.17.21.
    name String
    Dependency name, e.g. lodash.
    version String
    Dependency version, e.g. latest or 4.17.21.

    ActionModule, ActionModuleArgs

    ModuleId string
    The unique ID of the module.
    ModuleVersionId string
    The ID of the specific module version to use.
    ModuleName string
    The name of the module.
    ModuleVersionNumber int
    The version number of the module.
    ModuleId string
    The unique ID of the module.
    ModuleVersionId string
    The ID of the specific module version to use.
    ModuleName string
    The name of the module.
    ModuleVersionNumber int
    The version number of the module.
    module_id string
    The unique ID of the module.
    module_version_id string
    The ID of the specific module version to use.
    module_name string
    The name of the module.
    module_version_number number
    The version number of the module.
    moduleId String
    The unique ID of the module.
    moduleVersionId String
    The ID of the specific module version to use.
    moduleName String
    The name of the module.
    moduleVersionNumber Integer
    The version number of the module.
    moduleId string
    The unique ID of the module.
    moduleVersionId string
    The ID of the specific module version to use.
    moduleName string
    The name of the module.
    moduleVersionNumber number
    The version number of the module.
    module_id str
    The unique ID of the module.
    module_version_id str
    The ID of the specific module version to use.
    module_name str
    The name of the module.
    module_version_number int
    The version number of the module.
    moduleId String
    The unique ID of the module.
    moduleVersionId String
    The ID of the specific module version to use.
    moduleName String
    The name of the module.
    moduleVersionNumber Number
    The version number of the module.

    ActionSecret, ActionSecretArgs

    Name string
    Secret name.
    Value string
    Secret value.
    Name string
    Secret name.
    Value string
    Secret value.
    name string
    Secret name.
    value string
    Secret value.
    name String
    Secret name.
    value String
    Secret value.
    name string
    Secret name.
    value string
    Secret value.
    name str
    Secret name.
    value str
    Secret value.
    name String
    Secret name.
    value String
    Secret value.

    ActionSecretsWo, ActionSecretsWoArgs

    Name string
    The name of the action.
    Value string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. Secret value (write-only). This value is never stored in Terraform state.
    Name string
    The name of the action.
    Value string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. Secret value (write-only). This value is never stored in Terraform state.
    name string
    The name of the action.
    value string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. Secret value (write-only). This value is never stored in Terraform state.
    name String
    The name of the action.
    value String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. Secret value (write-only). This value is never stored in Terraform state.
    name string
    The name of the action.
    value string
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. Secret value (write-only). This value is never stored in Terraform state.
    name str
    The name of the action.
    value str
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. Secret value (write-only). This value is never stored in Terraform state.
    name String
    The name of the action.
    value String
    NOTE: This field is write-only and its value will not be updated in state as part of read operations. Secret value (write-only). This value is never stored in Terraform state.

    ActionSupportedTriggers, ActionSupportedTriggersArgs

    Id string
    The trigger ID.
    Version string
    The trigger version. This regulates which runtime versions are supported.
    Id string
    The trigger ID.
    Version string
    The trigger version. This regulates which runtime versions are supported.
    id string
    The trigger ID.
    version string
    The trigger version. This regulates which runtime versions are supported.
    id String
    The trigger ID.
    version String
    The trigger version. This regulates which runtime versions are supported.
    id string
    The trigger ID.
    version string
    The trigger version. This regulates which runtime versions are supported.
    id str
    The trigger ID.
    version str
    The trigger version. This regulates which runtime versions are supported.
    id String
    The trigger ID.
    version String
    The trigger version. This regulates which runtime versions are supported.

    Import

    This resource can be imported by specifying the action ID.

    Example:

    $ pulumi import auth0:index/action:Action my_action "12f4f21b-017a-319d-92e7-2291c1ca36c4"
    

    For security reasons importing secrets is not allowed. Therefore, it is advised to import the action without secrets and adding them back after the action has been imported.

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

    Package Details

    Repository
    Auth0 pulumi/pulumi-auth0
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the auth0 Terraform Provider.
    auth0 logo auth0 logo
    Viewing docs for Auth0 v3.50.1
    published on Saturday, Aug 8, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial