Monitor Args
data class MonitorArgs(val identity: Output<IdentityPropertiesArgs>? = null, val location: Output<String>? = null, val monitorName: Output<String>? = null, val properties: Output<MonitorPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<ResourceSkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<MonitorArgs>
Monitor resource. API Version: 2020-07-01.
Example Usage
Monitors_Create
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var monitor = new AzureNative.Elastic.Monitor("monitor", new()
{
MonitorName = "myMonitor",
ResourceGroupName = "myResourceGroup",
});
});
Content copied to clipboard
package main
import (
elastic "github.com/pulumi/pulumi-azure-native-sdk/elastic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elastic.NewMonitor(ctx, "monitor", &elastic.MonitorArgs{
MonitorName: pulumi.String("myMonitor"),
ResourceGroupName: pulumi.String("myResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.elastic.Monitor;
import com.pulumi.azurenative.elastic.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());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:elastic:Monitor myMonitor /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/monitors/myMonitor
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(identity: Output<IdentityPropertiesArgs>? = null, location: Output<String>? = null, monitorName: Output<String>? = null, properties: Output<MonitorPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, sku: Output<ResourceSkuArgs>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
Identity properties of the monitor resource.
Link copied to clipboard
Monitor resource name
Link copied to clipboard
Properties of the monitor resource.
Link copied to clipboard
The name of the resource group to which the Elastic resource belongs.
Link copied to clipboard
SKU of the monitor resource.