import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Action Modules are reusable code packages that can be shared across multiple actions. They allow you to write common functionality once and use it in any action that needs it. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * const myModule = new auth0.ActionModule("my_module", { * name: "My Shared Module", * code: `/** * * A shared utility function that can be used across multiple actions. * */ * module.exports = { * greet: function(name) { * return \\"Hello, \\" + name + \\"!\\"; * }, * formatDate: function(date) { * return date.toISOString(); * } * }; * `, * dependencies: [{ * name: "lodash", * version: "4.17.21", * }], * secrets: [{ * name: "API_KEY", * value: "my-secret-api-key", * }], * }); * ``` */ export declare class ActionModule extends pulumi.CustomResource { /** * Get an existing ActionModule resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ActionModuleState, opts?: pulumi.CustomResourceOptions): ActionModule; /** * Returns true if the given object is an instance of ActionModule. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ActionModule; /** * The number of deployed actions using this module. */ readonly actionsUsingModuleTotal: pulumi.Output; /** * Whether all draft changes have been published as a version. */ readonly allChangesPublished: pulumi.Output; /** * The source code of the action module. */ readonly code: pulumi.Output; /** * List of third party npm modules, and their versions, that this action module depends on. */ readonly dependencies: pulumi.Output; /** * The version number of the latest published version. */ readonly latestVersionNumber: pulumi.Output; /** * The latest published version of the action module. */ readonly latestVersions: pulumi.Output; /** * The name of the action module. */ readonly name: pulumi.Output; /** * Publishing a module will create a new immutable version of the module from the current draft. Actions using this module can then reference the published version. */ readonly publish: pulumi.Output; /** * List of secrets that are included in the action module. Partial management of secrets is not supported. */ readonly secrets: pulumi.Output; /** * Version ID of the module. This value is available if `publish` is set to true. */ readonly versionId: pulumi.Output; /** * Create a ActionModule resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ActionModuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActionModule resources. */ export interface ActionModuleState { /** * The number of deployed actions using this module. */ actionsUsingModuleTotal?: pulumi.Input; /** * Whether all draft changes have been published as a version. */ allChangesPublished?: pulumi.Input; /** * The source code of the action module. */ code?: pulumi.Input; /** * List of third party npm modules, and their versions, that this action module depends on. */ dependencies?: pulumi.Input[]>; /** * The version number of the latest published version. */ latestVersionNumber?: pulumi.Input; /** * The latest published version of the action module. */ latestVersions?: pulumi.Input[]>; /** * The name of the action module. */ name?: pulumi.Input; /** * Publishing a module will create a new immutable version of the module from the current draft. Actions using this module can then reference the published version. */ publish?: pulumi.Input; /** * List of secrets that are included in the action module. Partial management of secrets is not supported. */ secrets?: pulumi.Input[]>; /** * Version ID of the module. This value is available if `publish` is set to true. */ versionId?: pulumi.Input; } /** * The set of arguments for constructing a ActionModule resource. */ export interface ActionModuleArgs { /** * The source code of the action module. */ code: pulumi.Input; /** * List of third party npm modules, and their versions, that this action module depends on. */ dependencies?: pulumi.Input[]>; /** * The name of the action module. */ name?: pulumi.Input; /** * Publishing a module will create a new immutable version of the module from the current draft. Actions using this module can then reference the published version. */ publish?: pulumi.Input; /** * List of secrets that are included in the action module. Partial management of secrets is not supported. */ secrets?: pulumi.Input[]>; }