TriggerRecurrenceArgs

data class TriggerRecurrenceArgs(val frequency: Output<String>? = null, val interval: Output<Int>? = null, val logicAppId: Output<String>? = null, val name: Output<String>? = null, val schedule: Output<TriggerRecurrenceScheduleArgs>? = null, val startTime: Output<String>? = null, val timeZone: Output<String>? = null) : ConvertibleToJava<TriggerRecurrenceArgs>

Manages a Recurrence Trigger within a Logic App Workflow

Example Usage

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 exampleTriggerRecurrence = new azure.logicapps.TriggerRecurrence("example", {
name: "run-every-day",
logicAppId: exampleWorkflow.id,
frequency: "Day",
interval: 1,
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="workflow-resources",
location="West Europe")
example_workflow = azure.logicapps.Workflow("example",
name="workflow1",
location=example.location,
resource_group_name=example.name)
example_trigger_recurrence = azure.logicapps.TriggerRecurrence("example",
name="run-every-day",
logic_app_id=example_workflow.id,
frequency="Day",
interval=1)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "workflow-resources",
Location = "West Europe",
});
var exampleWorkflow = new Azure.LogicApps.Workflow("example", new()
{
Name = "workflow1",
Location = example.Location,
ResourceGroupName = example.Name,
});
var exampleTriggerRecurrence = new Azure.LogicApps.TriggerRecurrence("example", new()
{
Name = "run-every-day",
LogicAppId = exampleWorkflow.Id,
Frequency = "Day",
Interval = 1,
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/logicapps"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("workflow-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleWorkflow, err := logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{
Name: pulumi.String("workflow1"),
Location: example.Location,
ResourceGroupName: example.Name,
})
if err != nil {
return err
}
_, err = logicapps.NewTriggerRecurrence(ctx, "example", &logicapps.TriggerRecurrenceArgs{
Name: pulumi.String("run-every-day"),
LogicAppId: exampleWorkflow.ID(),
Frequency: pulumi.String("Day"),
Interval: pulumi.Int(1),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.logicapps.Workflow;
import com.pulumi.azure.logicapps.WorkflowArgs;
import com.pulumi.azure.logicapps.TriggerRecurrence;
import com.pulumi.azure.logicapps.TriggerRecurrenceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("workflow-resources")
.location("West Europe")
.build());
var exampleWorkflow = new Workflow("exampleWorkflow", WorkflowArgs.builder()
.name("workflow1")
.location(example.location())
.resourceGroupName(example.name())
.build());
var exampleTriggerRecurrence = new TriggerRecurrence("exampleTriggerRecurrence", TriggerRecurrenceArgs.builder()
.name("run-every-day")
.logicAppId(exampleWorkflow.id())
.frequency("Day")
.interval(1)
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: workflow-resources
location: West Europe
exampleWorkflow:
type: azure:logicapps:Workflow
name: example
properties:
name: workflow1
location: ${example.location}
resourceGroupName: ${example.name}
exampleTriggerRecurrence:
type: azure:logicapps:TriggerRecurrence
name: example
properties:
name: run-every-day
logicAppId: ${exampleWorkflow.id}
frequency: Day
interval: 1

Import

Logic App Recurrence Triggers can be imported using the resource id, e.g.

$ pulumi import azure:logicapps/triggerRecurrence:TriggerRecurrence daily /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/daily

Constructors

Link copied to clipboard
constructor(frequency: Output<String>? = null, interval: Output<Int>? = null, logicAppId: Output<String>? = null, name: Output<String>? = null, schedule: Output<TriggerRecurrenceScheduleArgs>? = null, startTime: Output<String>? = null, timeZone: Output<String>? = null)

Properties

Link copied to clipboard
val frequency: Output<String>? = null

Specifies the Frequency at which this Trigger should be run. Possible values include Month, Week, Day, Hour, Minute and Second.

Link copied to clipboard
val interval: Output<Int>? = null

Specifies interval used for the Frequency, for example a value of 4 for interval and hour for frequency would run the Trigger every 4 hours.

Link copied to clipboard
val logicAppId: Output<String>? = null

Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the Recurrence Triggers to be created within the Logic App Workflow. Changing this forces a new resource to be created.

Link copied to clipboard

A schedule block as specified below.

Link copied to clipboard
val startTime: Output<String>? = null

Specifies the start date and time for this trigger in RFC3339 format: 2000-01-02T03:04:05Z.

Link copied to clipboard
val timeZone: Output<String>? = null

Specifies the time zone for this trigger. Supported time zone options are listed here

Functions

Link copied to clipboard
open override fun toJava(): TriggerRecurrenceArgs