Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.logicapps.kotlin
import com.pulumi.azure.logicapps.TriggerRecurrenceArgs.builder
import com.pulumi.azure.logicapps.kotlin.inputs.TriggerRecurrenceScheduleArgs
import com.pulumi.azure.logicapps.kotlin.inputs.TriggerRecurrenceScheduleArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Manages a Recurrence 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 exampleTriggerRecurrence = new azure.logicapps.TriggerRecurrence("example", {
* name: "run-every-day",
* logicAppId: exampleWorkflow.id,
* frequency: "Day",
* interval: 1,
* });
* ```
* ```python
* 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)
* ```
* ```csharp
* 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,
* });
* });
* ```
* ```go
* 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 {
* 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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* 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.
* ```sh
* $ pulumi import azure:logicapps/triggerRecurrence:TriggerRecurrence daily /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/daily
* ```
* @property frequency Specifies the Frequency at which this Trigger should be run. Possible values include `Month`, `Week`, `Day`, `Hour`, `Minute` and `Second`.
* @property interval 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.
* @property logicAppId Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
* @property name Specifies the name of the Recurrence Triggers 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.
* @property schedule A `schedule` block as specified below.
* @property startTime Specifies the start date and time for this trigger in RFC3339 format: `2000-01-02T03:04:05Z`.
* @property timeZone Specifies the time zone for this trigger. Supported time zone options are listed [here](https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values)
*/
public data class TriggerRecurrenceArgs(
public val frequency: Output? = null,
public val interval: Output? = null,
public val logicAppId: Output? = null,
public val name: Output? = null,
public val schedule: Output? = null,
public val startTime: Output? = null,
public val timeZone: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.logicapps.TriggerRecurrenceArgs =
com.pulumi.azure.logicapps.TriggerRecurrenceArgs.builder()
.frequency(frequency?.applyValue({ args0 -> args0 }))
.interval(interval?.applyValue({ args0 -> args0 }))
.logicAppId(logicAppId?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.startTime(startTime?.applyValue({ args0 -> args0 }))
.timeZone(timeZone?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerRecurrenceArgs].
*/
@PulumiTagMarker
public class TriggerRecurrenceArgsBuilder internal constructor() {
private var frequency: Output? = null
private var interval: Output? = null
private var logicAppId: Output? = null
private var name: Output? = null
private var schedule: Output? = null
private var startTime: Output? = null
private var timeZone: Output? = null
/**
* @param value Specifies the Frequency at which this Trigger should be run. Possible values include `Month`, `Week`, `Day`, `Hour`, `Minute` and `Second`.
*/
@JvmName("gbfskaoihejoicpo")
public suspend fun frequency(`value`: Output) {
this.frequency = value
}
/**
* @param value 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.
*/
@JvmName("oamnforesoiltgyd")
public suspend fun interval(`value`: Output) {
this.interval = value
}
/**
* @param value Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
*/
@JvmName("recmmovdrycsmsjj")
public suspend fun logicAppId(`value`: Output) {
this.logicAppId = value
}
/**
* @param value Specifies the name of the Recurrence Triggers 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.
*/
@JvmName("ivjjxqseitkpuffk")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A `schedule` block as specified below.
*/
@JvmName("jcfvkprdfqyjwxor")
public suspend fun schedule(`value`: Output) {
this.schedule = value
}
/**
* @param value Specifies the start date and time for this trigger in RFC3339 format: `2000-01-02T03:04:05Z`.
*/
@JvmName("dcdkvgyunojdthvy")
public suspend fun startTime(`value`: Output) {
this.startTime = value
}
/**
* @param value Specifies the time zone for this trigger. Supported time zone options are listed [here](https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values)
*/
@JvmName("hffyqweyiipcvpwm")
public suspend fun timeZone(`value`: Output) {
this.timeZone = value
}
/**
* @param value Specifies the Frequency at which this Trigger should be run. Possible values include `Month`, `Week`, `Day`, `Hour`, `Minute` and `Second`.
*/
@JvmName("vnegmewgjsocewpr")
public suspend fun frequency(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.frequency = mapped
}
/**
* @param value 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.
*/
@JvmName("xjjxdceucwkqwcjr")
public suspend fun interval(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.interval = mapped
}
/**
* @param value Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
*/
@JvmName("ldjrnlwexooiokwx")
public suspend fun logicAppId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logicAppId = mapped
}
/**
* @param value Specifies the name of the Recurrence Triggers 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.
*/
@JvmName("rvjyvghlempnquyp")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value A `schedule` block as specified below.
*/
@JvmName("sywjxoxuueokhprf")
public suspend fun schedule(`value`: TriggerRecurrenceScheduleArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schedule = mapped
}
/**
* @param argument A `schedule` block as specified below.
*/
@JvmName("mjvlifdvvldnboan")
public suspend fun schedule(argument: suspend TriggerRecurrenceScheduleArgsBuilder.() -> Unit) {
val toBeMapped = TriggerRecurrenceScheduleArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.schedule = mapped
}
/**
* @param value Specifies the start date and time for this trigger in RFC3339 format: `2000-01-02T03:04:05Z`.
*/
@JvmName("ucqyanptcrptrlgp")
public suspend fun startTime(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.startTime = mapped
}
/**
* @param value Specifies the time zone for this trigger. Supported time zone options are listed [here](https://support.microsoft.com/en-us/help/973627/microsoft-time-zone-index-values)
*/
@JvmName("ysmjqcmpskuheory")
public suspend fun timeZone(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeZone = mapped
}
internal fun build(): TriggerRecurrenceArgs = TriggerRecurrenceArgs(
frequency = frequency,
interval = interval,
logicAppId = logicAppId,
name = name,
schedule = schedule,
startTime = startTime,
timeZone = timeZone,
)
}