TagRuleArgs

data class TagRuleArgs(val monitorName: Output<String>? = null, val properties: Output<MonitoringTagRulesPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val ruleSetName: Output<String>? = null) : ConvertibleToJava<TagRuleArgs>

Capture logs and metrics of Azure resources based on ARM tags. API Version: 2020-07-01.

Example Usage

TagRules_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var tagRule = new AzureNative.Elastic.TagRule("tagRule", new()
{
MonitorName = "myMonitor",
ResourceGroupName = "myResourceGroup",
RuleSetName = "default",
});
});
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.NewTagRule(ctx, "tagRule", &elastic.TagRuleArgs{
MonitorName: pulumi.String("myMonitor"),
ResourceGroupName: pulumi.String("myResourceGroup"),
RuleSetName: pulumi.String("default"),
})
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.azurenative.elastic.TagRule;
import com.pulumi.azurenative.elastic.TagRuleArgs;
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 tagRule = new TagRule("tagRule", TagRuleArgs.builder()
.monitorName("myMonitor")
.resourceGroupName("myResourceGroup")
.ruleSetName("default")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:elastic:TagRule default /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Datadog/monitors/myMonitor/tagRules/default

Constructors

Link copied to clipboard
constructor(monitorName: Output<String>? = null, properties: Output<MonitoringTagRulesPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, ruleSetName: Output<String>? = null)

Properties

Link copied to clipboard
val monitorName: Output<String>? = null

Monitor resource name

Link copied to clipboard

Properties of the monitoring tag rules.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group to which the Elastic resource belongs.

Link copied to clipboard
val ruleSetName: Output<String>? = null

Tag Rule Set resource name

Functions

Link copied to clipboard
open override fun toJava(): TagRuleArgs