import * as pulumi from "@pulumi/pulumi"; /** * Manages a Custom Trigger within a Logic App Workflow * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "workflow-resources", * location: "West Europe", * }); * const exampleWorkflow = new azure.logicapps.Workflow("example", { * name: "workflow1", * location: example.location, * resourceGroupName: example.name, * }); * const exampleTriggerCustom = new azure.logicapps.TriggerCustom("example", { * name: "example-trigger", * logicAppId: exampleWorkflow.id, * body: `{ * \\"recurrence\\": { * \\"frequency\\": \\"Day\\", * \\"interval\\": 1 * }, * \\"type\\": \\"Recurrence\\" * } * `, * }); * ``` * * ## Import * * Logic App Custom Triggers can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:logicapps/triggerCustom:TriggerCustom custom1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/custom1 * ``` * * > **NOTE:** This ID is unique to this provider and doesn't directly match to any other resource. To compose this ID, you can take the ID Logic App Workflow and append `/triggers/{name of the trigger}`. */ export declare class TriggerCustom extends pulumi.CustomResource { /** * Get an existing TriggerCustom 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?: TriggerCustomState, opts?: pulumi.CustomResourceOptions): TriggerCustom; /** * Returns true if the given object is an instance of TriggerCustom. 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 TriggerCustom; /** * Specifies the JSON Blob defining the Body of this Custom Trigger. */ readonly body: pulumi.Output; /** * The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitorActionGroup and security_center_automation. */ readonly callbackUrl: pulumi.Output; /** * Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. */ readonly logicAppId: pulumi.Output; /** * Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. * * > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. */ readonly name: pulumi.Output; /** * Create a TriggerCustom 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: TriggerCustomArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TriggerCustom resources. */ export interface TriggerCustomState { /** * Specifies the JSON Blob defining the Body of this Custom Trigger. */ body?: pulumi.Input; /** * The URL of the Trigger within the Logic App Workflow. For use with certain resources like monitorActionGroup and security_center_automation. */ callbackUrl?: pulumi.Input; /** * Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. */ logicAppId?: pulumi.Input; /** * Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. * * > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. */ name?: pulumi.Input; } /** * The set of arguments for constructing a TriggerCustom resource. */ export interface TriggerCustomArgs { /** * Specifies the JSON Blob defining the Body of this Custom Trigger. */ body: pulumi.Input; /** * Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. */ logicAppId: pulumi.Input; /** * Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created. * * > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow. */ name?: pulumi.Input; }