Azure Classic

Pulumi Official
Package maintained by Pulumi
v5.15.0 published on Wednesday, Aug 17, 2022 by Pulumi

TriggerRecurrence

Manages a Recurrence Trigger within a Logic App Workflow

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
    {
        Location = "West Europe",
    });

    var exampleWorkflow = new Azure.LogicApps.Workflow("exampleWorkflow", new()
    {
        Location = exampleResourceGroup.Location,
        ResourceGroupName = exampleResourceGroup.Name,
    });

    var exampleTriggerRecurrence = new Azure.LogicApps.TriggerRecurrence("exampleTriggerRecurrence", new()
    {
        LogicAppId = exampleWorkflow.Id,
        Frequency = "Day",
        Interval = 1,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/logicapps"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
			Location: pulumi.String("West Europe"),
		})
		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.NewTriggerRecurrence(ctx, "exampleTriggerRecurrence", &logicapps.TriggerRecurrenceArgs{
			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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleWorkflow = new Workflow("exampleWorkflow", WorkflowArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .build());

        var exampleTriggerRecurrence = new TriggerRecurrence("exampleTriggerRecurrence", TriggerRecurrenceArgs.builder()        
            .logicAppId(exampleWorkflow.id())
            .frequency("Day")
            .interval(1)
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_workflow = azure.logicapps.Workflow("exampleWorkflow",
    location=example_resource_group.location,
    resource_group_name=example_resource_group.name)
example_trigger_recurrence = azure.logicapps.TriggerRecurrence("exampleTriggerRecurrence",
    logic_app_id=example_workflow.id,
    frequency="Day",
    interval=1)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleWorkflow = new azure.logicapps.Workflow("exampleWorkflow", {
    location: exampleResourceGroup.location,
    resourceGroupName: exampleResourceGroup.name,
});
const exampleTriggerRecurrence = new azure.logicapps.TriggerRecurrence("exampleTriggerRecurrence", {
    logicAppId: exampleWorkflow.id,
    frequency: "Day",
    interval: 1,
});
resources:
  exampleResourceGroup:
    type: azure:core:ResourceGroup
    properties:
      location: West Europe
  exampleWorkflow:
    type: azure:logicapps:Workflow
    properties:
      location: ${exampleResourceGroup.location}
      resourceGroupName: ${exampleResourceGroup.name}
  exampleTriggerRecurrence:
    type: azure:logicapps:TriggerRecurrence
    properties:
      logicAppId: ${exampleWorkflow.id}
      frequency: Day
      interval: 1

Create a TriggerRecurrence Resource

new TriggerRecurrence(name: string, args: TriggerRecurrenceArgs, opts?: CustomResourceOptions);
@overload
def TriggerRecurrence(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      frequency: Optional[str] = None,
                      interval: Optional[int] = None,
                      logic_app_id: Optional[str] = None,
                      name: Optional[str] = None,
                      schedule: Optional[TriggerRecurrenceScheduleArgs] = None,
                      start_time: Optional[str] = None,
                      time_zone: Optional[str] = None)
@overload
def TriggerRecurrence(resource_name: str,
                      args: TriggerRecurrenceArgs,
                      opts: Optional[ResourceOptions] = None)
func NewTriggerRecurrence(ctx *Context, name string, args TriggerRecurrenceArgs, opts ...ResourceOption) (*TriggerRecurrence, error)
public TriggerRecurrence(string name, TriggerRecurrenceArgs args, CustomResourceOptions? opts = null)
public TriggerRecurrence(String name, TriggerRecurrenceArgs args)
public TriggerRecurrence(String name, TriggerRecurrenceArgs args, CustomResourceOptions options)
type: azure:logicapps:TriggerRecurrence
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TriggerRecurrenceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args TriggerRecurrenceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args TriggerRecurrenceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TriggerRecurrenceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TriggerRecurrenceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

TriggerRecurrence Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The TriggerRecurrence resource accepts the following input properties:

Frequency string

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

Interval int

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.

LogicAppId string

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

Name string

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

Schedule TriggerRecurrenceScheduleArgs

A schedule block as specified below.

StartTime string

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

TimeZone string

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

Frequency string

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

Interval int

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.

LogicAppId string

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

Name string

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

Schedule TriggerRecurrenceScheduleArgs

A schedule block as specified below.

StartTime string

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

TimeZone string

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

frequency String

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

interval Integer

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.

logicAppId String

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

name String

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

schedule TriggerRecurrenceScheduleArgs

A schedule block as specified below.

startTime String

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

timeZone String

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

frequency string

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

interval number

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.

logicAppId string

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

name string

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

schedule TriggerRecurrenceScheduleArgs

A schedule block as specified below.

startTime string

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

timeZone string

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

frequency str

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

interval int

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.

logic_app_id str

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

name str

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

schedule TriggerRecurrenceScheduleArgs

A schedule block as specified below.

start_time str

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

time_zone str

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

frequency String

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

interval Number

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.

logicAppId String

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

name String

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

schedule Property Map

A schedule block as specified below.

startTime String

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

timeZone String

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

Outputs

All input properties are implicitly available as output properties. Additionally, the TriggerRecurrence resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing TriggerRecurrence Resource

Get an existing TriggerRecurrence 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?: TriggerRecurrenceState, opts?: CustomResourceOptions): TriggerRecurrence
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        frequency: Optional[str] = None,
        interval: Optional[int] = None,
        logic_app_id: Optional[str] = None,
        name: Optional[str] = None,
        schedule: Optional[TriggerRecurrenceScheduleArgs] = None,
        start_time: Optional[str] = None,
        time_zone: Optional[str] = None) -> TriggerRecurrence
func GetTriggerRecurrence(ctx *Context, name string, id IDInput, state *TriggerRecurrenceState, opts ...ResourceOption) (*TriggerRecurrence, error)
public static TriggerRecurrence Get(string name, Input<string> id, TriggerRecurrenceState? state, CustomResourceOptions? opts = null)
public static TriggerRecurrence get(String name, Output<String> id, TriggerRecurrenceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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:
Frequency string

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

Interval int

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.

LogicAppId string

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

Name string

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

Schedule TriggerRecurrenceScheduleArgs

A schedule block as specified below.

StartTime string

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

TimeZone string

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

Frequency string

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

Interval int

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.

LogicAppId string

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

Name string

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

Schedule TriggerRecurrenceScheduleArgs

A schedule block as specified below.

StartTime string

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

TimeZone string

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

frequency String

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

interval Integer

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.

logicAppId String

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

name String

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

schedule TriggerRecurrenceScheduleArgs

A schedule block as specified below.

startTime String

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

timeZone String

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

frequency string

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

interval number

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.

logicAppId string

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

name string

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

schedule TriggerRecurrenceScheduleArgs

A schedule block as specified below.

startTime string

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

timeZone string

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

frequency str

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

interval int

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.

logic_app_id str

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

name str

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

schedule TriggerRecurrenceScheduleArgs

A schedule block as specified below.

start_time str

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

time_zone str

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

frequency String

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

interval Number

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.

logicAppId String

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

name String

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

schedule Property Map

A schedule block as specified below.

startTime String

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

timeZone String

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

Supporting Types

TriggerRecurrenceSchedule

AtTheseHours List<int>

Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.

AtTheseMinutes List<int>

Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.

OnTheseDays List<string>

Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.

AtTheseHours []int

Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.

AtTheseMinutes []int

Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.

OnTheseDays []string

Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.

atTheseHours List<Integer>

Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.

atTheseMinutes List<Integer>

Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.

onTheseDays List<String>

Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.

atTheseHours number[]

Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.

atTheseMinutes number[]

Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.

onTheseDays string[]

Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.

at_these_hours Sequence[int]

Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.

at_these_minutes Sequence[int]

Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.

on_these_days Sequence[str]

Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.

atTheseHours List<Number>

Specifies a list of hours when the trigger should run. Valid values are between 0 and 23.

atTheseMinutes List<Number>

Specifies a list of minutes when the trigger should run. Valid values are between 0 and 59.

onTheseDays List<String>

Specifies a list of days when the trigger should run. Valid values include Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.

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

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.