com.pulumi.azurenative.logz.kotlin.MonitorArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.logz.kotlin
import com.pulumi.azurenative.logz.MonitorArgs.builder
import com.pulumi.azurenative.logz.kotlin.inputs.IdentityPropertiesArgs
import com.pulumi.azurenative.logz.kotlin.inputs.IdentityPropertiesArgsBuilder
import com.pulumi.azurenative.logz.kotlin.inputs.MonitorPropertiesArgs
import com.pulumi.azurenative.logz.kotlin.inputs.MonitorPropertiesArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
*
* Azure REST API version: 2022-01-01-preview. Prior API version in Azure Native 1.x: 2020-10-01.
* ## Example Usage
* ### Monitors_Create
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var monitor = new AzureNative.Logz.Monitor("monitor", new()
* {
* MonitorName = "myMonitor",
* ResourceGroupName = "myResourceGroup",
* });
* });
* ```
* ```go
* package main
* import (
* logz "github.com/pulumi/pulumi-azure-native-sdk/logz/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := logz.NewMonitor(ctx, "monitor", &logz.MonitorArgs{
* MonitorName: pulumi.String("myMonitor"),
* ResourceGroupName: pulumi.String("myResourceGroup"),
* })
* 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.logz.Monitor;
* import com.pulumi.azurenative.logz.MonitorArgs;
* 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 monitor = new Monitor("monitor", MonitorArgs.builder()
* .monitorName("myMonitor")
* .resourceGroupName("myResourceGroup")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:logz:Monitor myMonitor /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Logz/monitors/{monitorName}
* ```
* @property identity
* @property location
* @property monitorName Monitor resource name
* @property properties Properties specific to the monitor resource.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property tags
*/
public data class MonitorArgs(
public val identity: Output? = null,
public val location: Output? = null,
public val monitorName: Output? = null,
public val properties: Output? = null,
public val resourceGroupName: Output? = null,
public val tags: Output