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.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.automation.kotlin
import com.pulumi.azurenative.automation.WatcherArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Definition of the watcher type.
* Azure REST API version: 2020-01-13-preview. Prior API version in Azure Native 1.x: 2019-06-01.
* Other available API versions: 2023-05-15-preview.
* ## Example Usage
* ### Create or update watcher
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var watcher = new AzureNative.Automation.Watcher("watcher", new()
* {
* AutomationAccountName = "MyTestAutomationAccount",
* Description = "This is a test watcher.",
* ExecutionFrequencyInSeconds = 60,
* ResourceGroupName = "rg",
* ScriptName = "MyTestWatcherRunbook",
* ScriptRunOn = "MyTestHybridWorkerGroup",
* Tags = null,
* WatcherName = "MyTestWatcher",
* });
* });
* ```
* ```go
* package main
* import (
* automation "github.com/pulumi/pulumi-azure-native-sdk/automation/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := automation.NewWatcher(ctx, "watcher", &automation.WatcherArgs{
* AutomationAccountName: pulumi.String("MyTestAutomationAccount"),
* Description: pulumi.String("This is a test watcher."),
* ExecutionFrequencyInSeconds: pulumi.Float64(60),
* ResourceGroupName: pulumi.String("rg"),
* ScriptName: pulumi.String("MyTestWatcherRunbook"),
* ScriptRunOn: pulumi.String("MyTestHybridWorkerGroup"),
* Tags: nil,
* WatcherName: pulumi.String("MyTestWatcher"),
* })
* 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.azurenative.automation.Watcher;
* import com.pulumi.azurenative.automation.WatcherArgs;
* 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 watcher = new Watcher("watcher", WatcherArgs.builder()
* .automationAccountName("MyTestAutomationAccount")
* .description("This is a test watcher.")
* .executionFrequencyInSeconds(60)
* .resourceGroupName("rg")
* .scriptName("MyTestWatcherRunbook")
* .scriptRunOn("MyTestHybridWorkerGroup")
* .tags()
* .watcherName("MyTestWatcher")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:automation:Watcher MyTestWatcher /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}
* ```
* @property automationAccountName The name of the automation account.
* @property description Gets or sets the description.
* @property executionFrequencyInSeconds Gets or sets the frequency at which the watcher is invoked.
* @property location The geo-location where the resource lives
* @property resourceGroupName Name of an Azure Resource group.
* @property scriptName Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
* @property scriptParameters Gets or sets the parameters of the script.
* @property scriptRunOn Gets or sets the name of the hybrid worker group the watcher will run on.
* @property tags Resource tags.
* @property watcherName The watcher name.
*/
public data class WatcherArgs(
public val automationAccountName: Output? = null,
public val description: Output? = null,
public val executionFrequencyInSeconds: Output? = null,
public val location: Output? = null,
public val resourceGroupName: Output? = null,
public val scriptName: Output? = null,
public val scriptParameters: Output