import * as pulumi from "@pulumi/pulumi"; /** * Manages a HTTP Request 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 exampleTriggerHttpRequest = new azure.logicapps.TriggerHttpRequest("example", { * name: "some-http-trigger", * logicAppId: exampleWorkflow.id, * schema: `{ * \\"type\\": \\"object\\", * \\"properties\\": { * \\"hello\\": { * \\"type\\": \\"string\\" * } * } * } * `, * }); * ``` * * ## Import * * Logic App HTTP Request Triggers can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:logicapps/triggerHttpRequest:TriggerHttpRequest request1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/request1 * ``` * * > **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 TriggerHttpRequest extends pulumi.CustomResource { /** * Get an existing TriggerHttpRequest 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?: TriggerHttpRequestState, opts?: pulumi.CustomResourceOptions): TriggerHttpRequest; /** * Returns true if the given object is an instance of TriggerHttpRequest. 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 TriggerHttpRequest; /** * 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 HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`. */ readonly method: pulumi.Output; /** * Specifies the name of the HTTP Request 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; /** * Specifies the Relative Path used for this Request. * * > **NOTE:** When `relativePath` is set a `method` must also be set. */ readonly relativePath: pulumi.Output; /** * A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON. */ readonly schema: pulumi.Output; /** * Create a TriggerHttpRequest 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: TriggerHttpRequestArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TriggerHttpRequest resources. */ export interface TriggerHttpRequestState { /** * 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 HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`. */ method?: pulumi.Input; /** * Specifies the name of the HTTP Request 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; /** * Specifies the Relative Path used for this Request. * * > **NOTE:** When `relativePath` is set a `method` must also be set. */ relativePath?: pulumi.Input; /** * A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON. */ schema?: pulumi.Input; } /** * The set of arguments for constructing a TriggerHttpRequest resource. */ export interface TriggerHttpRequestArgs { /** * Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created. */ logicAppId: pulumi.Input; /** * Specifies the HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`. */ method?: pulumi.Input; /** * Specifies the name of the HTTP Request 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; /** * Specifies the Relative Path used for this Request. * * > **NOTE:** When `relativePath` is set a `method` must also be set. */ relativePath?: pulumi.Input; /** * A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON. */ schema: pulumi.Input; }