TriggerCustom
Manages a Custom Trigger within a Logic App Workflow
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "East US",
});
var exampleWorkflow = new Azure.LogicApps.Workflow("exampleWorkflow", new Azure.LogicApps.WorkflowArgs
{
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
});
var exampleTriggerCustom = new Azure.LogicApps.TriggerCustom("exampleTriggerCustom", new Azure.LogicApps.TriggerCustomArgs
{
LogicAppId = exampleWorkflow.Id,
Body = @"{
""recurrence"": {
""frequency"": ""Day"",
""interval"": 1
},
""type"": ""Recurrence""
}
",
});
}
}
package main
import (
"fmt"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/logicapps"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("East US"),
})
if err != nil {
return err
}
exampleWorkflow, err := logicapps.NewWorkflow(ctx, "exampleWorkflow", &logicapps.WorkflowArgs{
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
})
if err != nil {
return err
}
_, err = logicapps.NewTriggerCustom(ctx, "exampleTriggerCustom", &logicapps.TriggerCustomArgs{
LogicAppId: exampleWorkflow.ID(),
Body: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v", "{\n", " \"recurrence\": {\n", " \"frequency\": \"Day\",\n", " \"interval\": 1\n", " },\n", " \"type\": \"Recurrence\"\n", "}\n")),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="East US")
example_workflow = azure.logicapps.Workflow("exampleWorkflow",
location=example_resource_group.location,
resource_group_name=example_resource_group.name)
example_trigger_custom = azure.logicapps.TriggerCustom("exampleTriggerCustom",
logic_app_id=example_workflow.id,
body="""{
"recurrence": {
"frequency": "Day",
"interval": 1
},
"type": "Recurrence"
}
""")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "East US"});
const exampleWorkflow = new azure.logicapps.Workflow("exampleWorkflow", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
});
const exampleTriggerCustom = new azure.logicapps.TriggerCustom("exampleTriggerCustom", {
logicAppId: exampleWorkflow.id,
body: `{
"recurrence": {
"frequency": "Day",
"interval": 1
},
"type": "Recurrence"
}
`,
});Create a TriggerCustom Resource
new TriggerCustom(name: string, args: TriggerCustomArgs, opts?: CustomResourceOptions);def TriggerCustom(resource_name, opts=None, body=None, logic_app_id=None, name=None, __props__=None);func NewTriggerCustom(ctx *Context, name string, args TriggerCustomArgs, opts ...ResourceOption) (*TriggerCustom, error)public TriggerCustom(string name, TriggerCustomArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args TriggerCustomArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TriggerCustomArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TriggerCustomArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
TriggerCustom Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The TriggerCustom resource accepts the following input properties:
- Body string
Specifies the JSON Blob defining the Body of this Custom Trigger.
- Logic
App stringId Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- Name string
Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
- Body string
Specifies the JSON Blob defining the Body of this Custom Trigger.
- Logic
App stringId Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- Name string
Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
- body string
Specifies the JSON Blob defining the Body of this Custom Trigger.
- logic
App stringId Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- name string
Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
- body str
Specifies the JSON Blob defining the Body of this Custom Trigger.
- logic_
app_ strid Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- name str
Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the TriggerCustom resource produces the following output properties:
Look up an Existing TriggerCustom Resource
Get an existing TriggerCustom 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?: TriggerCustomState, opts?: CustomResourceOptions): TriggerCustomstatic get(resource_name, id, opts=None, body=None, logic_app_id=None, name=None, __props__=None);func GetTriggerCustom(ctx *Context, name string, id IDInput, state *TriggerCustomState, opts ...ResourceOption) (*TriggerCustom, error)public static TriggerCustom Get(string name, Input<string> id, TriggerCustomState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Body string
Specifies the JSON Blob defining the Body of this Custom Trigger.
- Logic
App stringId Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- Name string
Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
- Body string
Specifies the JSON Blob defining the Body of this Custom Trigger.
- Logic
App stringId Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- Name string
Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
- body string
Specifies the JSON Blob defining the Body of this Custom Trigger.
- logic
App stringId Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- name string
Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
- body str
Specifies the JSON Blob defining the Body of this Custom Trigger.
- logic_
app_ strid Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
- name str
Specifies the name of the HTTP Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.