import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an HTTP Action 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 exampleActionHttp = new azure.logicapps.ActionHttp("example", { * name: "webhook", * logicAppId: exampleWorkflow.id, * method: "GET", * uri: "http://example.com/some-webhook", * }); * ``` * * ## Import * * Logic App HTTP Actions can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:logicapps/actionHttp:ActionHttp webhook1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/actions/webhook1 * ``` * * > **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 `/actions/{name of the action}`. */ export declare class ActionHttp extends pulumi.CustomResource { /** * Get an existing ActionHttp 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?: ActionHttpState, opts?: pulumi.CustomResourceOptions): ActionHttp; /** * Returns true if the given object is an instance of ActionHttp. 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 ActionHttp; /** * Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered. */ readonly body: pulumi.Output; /** * Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. */ readonly headers: pulumi.Output<{ [key: string]: string; } | undefined>; /** * 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 should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`. */ readonly method: pulumi.Output; /** * Specifies the name of the HTTP Action 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 Actions within the Logic App Workflow. */ readonly name: pulumi.Output; /** * Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. */ readonly queries: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `runAfter` block is as defined below. */ readonly runAfters: pulumi.Output; /** * Specifies the URI which will be called when this HTTP Action is triggered. */ readonly uri: pulumi.Output; /** * Create a ActionHttp 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: ActionHttpArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ActionHttp resources. */ export interface ActionHttpState { /** * Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered. */ body?: pulumi.Input; /** * Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. */ headers?: pulumi.Input<{ [key: string]: 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 should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`. */ method?: pulumi.Input; /** * Specifies the name of the HTTP Action 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 Actions within the Logic App Workflow. */ name?: pulumi.Input; /** * Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. */ queries?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `runAfter` block is as defined below. */ runAfters?: pulumi.Input[]>; /** * Specifies the URI which will be called when this HTTP Action is triggered. */ uri?: pulumi.Input; } /** * The set of arguments for constructing a ActionHttp resource. */ export interface ActionHttpArgs { /** * Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered. */ body?: pulumi.Input; /** * Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. */ headers?: pulumi.Input<{ [key: string]: 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 should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`. */ method: pulumi.Input; /** * Specifies the name of the HTTP Action 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 Actions within the Logic App Workflow. */ name?: pulumi.Input; /** * Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered. */ queries?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `runAfter` block is as defined below. */ runAfters?: pulumi.Input[]>; /** * Specifies the URI which will be called when this HTTP Action is triggered. */ uri: pulumi.Input; }