azure-native.datadog.MonitoredSubscription
Explore with Pulumi AI
The request to update subscriptions needed to be monitored by the Datadog monitor resource. Azure REST API version: 2023-01-01.
Example Usage
Monitors_AddMonitoredSubscriptions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var monitoredSubscription = new AzureNative.Datadog.MonitoredSubscription("monitoredSubscription", new()
{
ConfigurationName = "default",
MonitorName = "myMonitor",
Properties = new AzureNative.Datadog.Inputs.SubscriptionListArgs
{
MonitoredSubscriptionList = new[]
{
new AzureNative.Datadog.Inputs.MonitoredSubscriptionArgs
{
Status = AzureNative.Datadog.Status.Active,
SubscriptionId = "/subscriptions/00000000-0000-0000-0000-000000000000",
TagRules = new AzureNative.Datadog.Inputs.MonitoringTagRulesPropertiesArgs
{
Automuting = true,
LogRules = new AzureNative.Datadog.Inputs.LogRulesArgs
{
FilteringTags = new[]
{
new AzureNative.Datadog.Inputs.FilteringTagArgs
{
Action = AzureNative.Datadog.TagAction.Include,
Name = "Environment",
Value = "Prod",
},
new AzureNative.Datadog.Inputs.FilteringTagArgs
{
Action = AzureNative.Datadog.TagAction.Exclude,
Name = "Environment",
Value = "Dev",
},
},
SendAadLogs = false,
SendResourceLogs = true,
SendSubscriptionLogs = true,
},
MetricRules = new AzureNative.Datadog.Inputs.MetricRulesArgs
{
FilteringTags = new() { },
},
},
},
new AzureNative.Datadog.Inputs.MonitoredSubscriptionArgs
{
Status = AzureNative.Datadog.Status.Failed,
SubscriptionId = "/subscriptions/00000000-0000-0000-0000-000000000001",
TagRules = new AzureNative.Datadog.Inputs.MonitoringTagRulesPropertiesArgs
{
Automuting = true,
LogRules = new AzureNative.Datadog.Inputs.LogRulesArgs
{
FilteringTags = new[]
{
new AzureNative.Datadog.Inputs.FilteringTagArgs
{
Action = AzureNative.Datadog.TagAction.Include,
Name = "Environment",
Value = "Prod",
},
new AzureNative.Datadog.Inputs.FilteringTagArgs
{
Action = AzureNative.Datadog.TagAction.Exclude,
Name = "Environment",
Value = "Dev",
},
},
SendAadLogs = false,
SendResourceLogs = true,
SendSubscriptionLogs = true,
},
MetricRules = new AzureNative.Datadog.Inputs.MetricRulesArgs
{
FilteringTags = new() { },
},
},
},
},
Operation = AzureNative.Datadog.Operation.AddBegin,
},
ResourceGroupName = "myResourceGroup",
});
});
package main
import (
datadog "github.com/pulumi/pulumi-azure-native-sdk/datadog/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datadog.NewMonitoredSubscription(ctx, "monitoredSubscription", &datadog.MonitoredSubscriptionArgs{
ConfigurationName: pulumi.String("default"),
MonitorName: pulumi.String("myMonitor"),
Properties: &datadog.SubscriptionListArgs{
MonitoredSubscriptionList: datadog.MonitoredSubscriptionTypeArray{
&datadog.MonitoredSubscriptionTypeArgs{
Status: pulumi.String(datadog.StatusActive),
SubscriptionId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000"),
TagRules: &datadog.MonitoringTagRulesPropertiesArgs{
Automuting: pulumi.Bool(true),
LogRules: &datadog.LogRulesArgs{
FilteringTags: datadog.FilteringTagArray{
&datadog.FilteringTagArgs{
Action: pulumi.String(datadog.TagActionInclude),
Name: pulumi.String("Environment"),
Value: pulumi.String("Prod"),
},
&datadog.FilteringTagArgs{
Action: pulumi.String(datadog.TagActionExclude),
Name: pulumi.String("Environment"),
Value: pulumi.String("Dev"),
},
},
SendAadLogs: pulumi.Bool(false),
SendResourceLogs: pulumi.Bool(true),
SendSubscriptionLogs: pulumi.Bool(true),
},
MetricRules: &datadog.MetricRulesArgs{
FilteringTags: datadog.FilteringTagArray{},
},
},
},
&datadog.MonitoredSubscriptionTypeArgs{
Status: pulumi.String(datadog.StatusFailed),
SubscriptionId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000001"),
TagRules: &datadog.MonitoringTagRulesPropertiesArgs{
Automuting: pulumi.Bool(true),
LogRules: &datadog.LogRulesArgs{
FilteringTags: datadog.FilteringTagArray{
&datadog.FilteringTagArgs{
Action: pulumi.String(datadog.TagActionInclude),
Name: pulumi.String("Environment"),
Value: pulumi.String("Prod"),
},
&datadog.FilteringTagArgs{
Action: pulumi.String(datadog.TagActionExclude),
Name: pulumi.String("Environment"),
Value: pulumi.String("Dev"),
},
},
SendAadLogs: pulumi.Bool(false),
SendResourceLogs: pulumi.Bool(true),
SendSubscriptionLogs: pulumi.Bool(true),
},
MetricRules: &datadog.MetricRulesArgs{
FilteringTags: datadog.FilteringTagArray{},
},
},
},
},
Operation: pulumi.String(datadog.OperationAddBegin),
},
ResourceGroupName: pulumi.String("myResourceGroup"),
})
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.datadog.MonitoredSubscription;
import com.pulumi.azurenative.datadog.MonitoredSubscriptionArgs;
import com.pulumi.azurenative.datadog.inputs.SubscriptionListArgs;
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 monitoredSubscription = new MonitoredSubscription("monitoredSubscription", MonitoredSubscriptionArgs.builder()
.configurationName("default")
.monitorName("myMonitor")
.properties(SubscriptionListArgs.builder()
.monitoredSubscriptionList(
MonitoredSubscriptionArgs.builder()
.status("Active")
.subscriptionId("/subscriptions/00000000-0000-0000-0000-000000000000")
.tagRules(MonitoringTagRulesPropertiesArgs.builder()
.automuting(true)
.logRules(LogRulesArgs.builder()
.filteringTags(
FilteringTagArgs.builder()
.action("Include")
.name("Environment")
.value("Prod")
.build(),
FilteringTagArgs.builder()
.action("Exclude")
.name("Environment")
.value("Dev")
.build())
.sendAadLogs(false)
.sendResourceLogs(true)
.sendSubscriptionLogs(true)
.build())
.metricRules(MetricRulesArgs.builder()
.filteringTags()
.build())
.build())
.build(),
MonitoredSubscriptionArgs.builder()
.status("Failed")
.subscriptionId("/subscriptions/00000000-0000-0000-0000-000000000001")
.tagRules(MonitoringTagRulesPropertiesArgs.builder()
.automuting(true)
.logRules(LogRulesArgs.builder()
.filteringTags(
FilteringTagArgs.builder()
.action("Include")
.name("Environment")
.value("Prod")
.build(),
FilteringTagArgs.builder()
.action("Exclude")
.name("Environment")
.value("Dev")
.build())
.sendAadLogs(false)
.sendResourceLogs(true)
.sendSubscriptionLogs(true)
.build())
.metricRules(MetricRulesArgs.builder()
.filteringTags()
.build())
.build())
.build())
.operation("AddBegin")
.build())
.resourceGroupName("myResourceGroup")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
monitored_subscription = azure_native.datadog.MonitoredSubscription("monitoredSubscription",
configuration_name="default",
monitor_name="myMonitor",
properties={
"monitored_subscription_list": [
{
"status": azure_native.datadog.Status.ACTIVE,
"subscription_id": "/subscriptions/00000000-0000-0000-0000-000000000000",
"tag_rules": {
"automuting": True,
"log_rules": {
"filtering_tags": [
{
"action": azure_native.datadog.TagAction.INCLUDE,
"name": "Environment",
"value": "Prod",
},
{
"action": azure_native.datadog.TagAction.EXCLUDE,
"name": "Environment",
"value": "Dev",
},
],
"send_aad_logs": False,
"send_resource_logs": True,
"send_subscription_logs": True,
},
"metric_rules": {
"filtering_tags": [],
},
},
},
{
"status": azure_native.datadog.Status.FAILED,
"subscription_id": "/subscriptions/00000000-0000-0000-0000-000000000001",
"tag_rules": {
"automuting": True,
"log_rules": {
"filtering_tags": [
{
"action": azure_native.datadog.TagAction.INCLUDE,
"name": "Environment",
"value": "Prod",
},
{
"action": azure_native.datadog.TagAction.EXCLUDE,
"name": "Environment",
"value": "Dev",
},
],
"send_aad_logs": False,
"send_resource_logs": True,
"send_subscription_logs": True,
},
"metric_rules": {
"filtering_tags": [],
},
},
},
],
"operation": azure_native.datadog.Operation.ADD_BEGIN,
},
resource_group_name="myResourceGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const monitoredSubscription = new azure_native.datadog.MonitoredSubscription("monitoredSubscription", {
configurationName: "default",
monitorName: "myMonitor",
properties: {
monitoredSubscriptionList: [
{
status: azure_native.datadog.Status.Active,
subscriptionId: "/subscriptions/00000000-0000-0000-0000-000000000000",
tagRules: {
automuting: true,
logRules: {
filteringTags: [
{
action: azure_native.datadog.TagAction.Include,
name: "Environment",
value: "Prod",
},
{
action: azure_native.datadog.TagAction.Exclude,
name: "Environment",
value: "Dev",
},
],
sendAadLogs: false,
sendResourceLogs: true,
sendSubscriptionLogs: true,
},
metricRules: {
filteringTags: [],
},
},
},
{
status: azure_native.datadog.Status.Failed,
subscriptionId: "/subscriptions/00000000-0000-0000-0000-000000000001",
tagRules: {
automuting: true,
logRules: {
filteringTags: [
{
action: azure_native.datadog.TagAction.Include,
name: "Environment",
value: "Prod",
},
{
action: azure_native.datadog.TagAction.Exclude,
name: "Environment",
value: "Dev",
},
],
sendAadLogs: false,
sendResourceLogs: true,
sendSubscriptionLogs: true,
},
metricRules: {
filteringTags: [],
},
},
},
],
operation: azure_native.datadog.Operation.AddBegin,
},
resourceGroupName: "myResourceGroup",
});
resources:
monitoredSubscription:
type: azure-native:datadog:MonitoredSubscription
properties:
configurationName: default
monitorName: myMonitor
properties:
monitoredSubscriptionList:
- status: Active
subscriptionId: /subscriptions/00000000-0000-0000-0000-000000000000
tagRules:
automuting: true
logRules:
filteringTags:
- action: Include
name: Environment
value: Prod
- action: Exclude
name: Environment
value: Dev
sendAadLogs: false
sendResourceLogs: true
sendSubscriptionLogs: true
metricRules:
filteringTags: []
- status: Failed
subscriptionId: /subscriptions/00000000-0000-0000-0000-000000000001
tagRules:
automuting: true
logRules:
filteringTags:
- action: Include
name: Environment
value: Prod
- action: Exclude
name: Environment
value: Dev
sendAadLogs: false
sendResourceLogs: true
sendSubscriptionLogs: true
metricRules:
filteringTags: []
operation: AddBegin
resourceGroupName: myResourceGroup
Create MonitoredSubscription Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitoredSubscription(name: string, args: MonitoredSubscriptionArgs, opts?: CustomResourceOptions);
@overload
def MonitoredSubscription(resource_name: str,
args: MonitoredSubscriptionInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitoredSubscription(resource_name: str,
opts: Optional[ResourceOptions] = None,
monitor_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
configuration_name: Optional[str] = None,
properties: Optional[SubscriptionListArgs] = None)
func NewMonitoredSubscription(ctx *Context, name string, args MonitoredSubscriptionArgs, opts ...ResourceOption) (*MonitoredSubscription, error)
public MonitoredSubscription(string name, MonitoredSubscriptionArgs args, CustomResourceOptions? opts = null)
public MonitoredSubscription(String name, MonitoredSubscriptionArgs args)
public MonitoredSubscription(String name, MonitoredSubscriptionArgs args, CustomResourceOptions options)
type: azure-native:datadog:MonitoredSubscription
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MonitoredSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MonitoredSubscriptionInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MonitoredSubscriptionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitoredSubscriptionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitoredSubscriptionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var monitoredSubscriptionResource = new AzureNative.Datadog.MonitoredSubscription("monitoredSubscriptionResource", new()
{
MonitorName = "string",
ResourceGroupName = "string",
ConfigurationName = "string",
Properties = new AzureNative.Datadog.Inputs.SubscriptionListArgs
{
MonitoredSubscriptionList = new[]
{
new AzureNative.Datadog.Inputs.MonitoredSubscriptionArgs
{
Error = "string",
Status = "string",
SubscriptionId = "string",
TagRules = new AzureNative.Datadog.Inputs.MonitoringTagRulesPropertiesArgs
{
Automuting = false,
LogRules = new AzureNative.Datadog.Inputs.LogRulesArgs
{
FilteringTags = new[]
{
new AzureNative.Datadog.Inputs.FilteringTagArgs
{
Action = "string",
Name = "string",
Value = "string",
},
},
SendAadLogs = false,
SendResourceLogs = false,
SendSubscriptionLogs = false,
},
MetricRules = new AzureNative.Datadog.Inputs.MetricRulesArgs
{
FilteringTags = new[]
{
new AzureNative.Datadog.Inputs.FilteringTagArgs
{
Action = "string",
Name = "string",
Value = "string",
},
},
},
},
},
},
Operation = "string",
},
});
example, err := datadog.NewMonitoredSubscription(ctx, "monitoredSubscriptionResource", &datadog.MonitoredSubscriptionArgs{
MonitorName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ConfigurationName: pulumi.String("string"),
Properties: &datadog.SubscriptionListArgs{
MonitoredSubscriptionList: datadog.MonitoredSubscriptionTypeArray{
&datadog.MonitoredSubscriptionTypeArgs{
Error: pulumi.String("string"),
Status: pulumi.String("string"),
SubscriptionId: pulumi.String("string"),
TagRules: &datadog.MonitoringTagRulesPropertiesArgs{
Automuting: pulumi.Bool(false),
LogRules: &datadog.LogRulesArgs{
FilteringTags: datadog.FilteringTagArray{
&datadog.FilteringTagArgs{
Action: pulumi.String("string"),
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
SendAadLogs: pulumi.Bool(false),
SendResourceLogs: pulumi.Bool(false),
SendSubscriptionLogs: pulumi.Bool(false),
},
MetricRules: &datadog.MetricRulesArgs{
FilteringTags: datadog.FilteringTagArray{
&datadog.FilteringTagArgs{
Action: pulumi.String("string"),
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
},
},
Operation: pulumi.String("string"),
},
})
var monitoredSubscriptionResource = new MonitoredSubscription("monitoredSubscriptionResource", MonitoredSubscriptionArgs.builder()
.monitorName("string")
.resourceGroupName("string")
.configurationName("string")
.properties(SubscriptionListArgs.builder()
.monitoredSubscriptionList(MonitoredSubscriptionArgs.builder()
.error("string")
.status("string")
.subscriptionId("string")
.tagRules(MonitoringTagRulesPropertiesArgs.builder()
.automuting(false)
.logRules(LogRulesArgs.builder()
.filteringTags(FilteringTagArgs.builder()
.action("string")
.name("string")
.value("string")
.build())
.sendAadLogs(false)
.sendResourceLogs(false)
.sendSubscriptionLogs(false)
.build())
.metricRules(MetricRulesArgs.builder()
.filteringTags(FilteringTagArgs.builder()
.action("string")
.name("string")
.value("string")
.build())
.build())
.build())
.build())
.operation("string")
.build())
.build());
monitored_subscription_resource = azure_native.datadog.MonitoredSubscription("monitoredSubscriptionResource",
monitor_name="string",
resource_group_name="string",
configuration_name="string",
properties={
"monitored_subscription_list": [{
"error": "string",
"status": "string",
"subscription_id": "string",
"tag_rules": {
"automuting": False,
"log_rules": {
"filtering_tags": [{
"action": "string",
"name": "string",
"value": "string",
}],
"send_aad_logs": False,
"send_resource_logs": False,
"send_subscription_logs": False,
},
"metric_rules": {
"filtering_tags": [{
"action": "string",
"name": "string",
"value": "string",
}],
},
},
}],
"operation": "string",
})
const monitoredSubscriptionResource = new azure_native.datadog.MonitoredSubscription("monitoredSubscriptionResource", {
monitorName: "string",
resourceGroupName: "string",
configurationName: "string",
properties: {
monitoredSubscriptionList: [{
error: "string",
status: "string",
subscriptionId: "string",
tagRules: {
automuting: false,
logRules: {
filteringTags: [{
action: "string",
name: "string",
value: "string",
}],
sendAadLogs: false,
sendResourceLogs: false,
sendSubscriptionLogs: false,
},
metricRules: {
filteringTags: [{
action: "string",
name: "string",
value: "string",
}],
},
},
}],
operation: "string",
},
});
type: azure-native:datadog:MonitoredSubscription
properties:
configurationName: string
monitorName: string
properties:
monitoredSubscriptionList:
- error: string
status: string
subscriptionId: string
tagRules:
automuting: false
logRules:
filteringTags:
- action: string
name: string
value: string
sendAadLogs: false
sendResourceLogs: false
sendSubscriptionLogs: false
metricRules:
filteringTags:
- action: string
name: string
value: string
operation: string
resourceGroupName: string
MonitoredSubscription Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MonitoredSubscription resource accepts the following input properties:
- Monitor
Name string - Monitor resource name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Configuration
Name string - The configuration name. Only 'default' value is supported.
- Properties
Pulumi.
Azure Native. Datadog. Inputs. Subscription List - The request to update subscriptions needed to be monitored by the Datadog monitor resource.
- Monitor
Name string - Monitor resource name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Configuration
Name string - The configuration name. Only 'default' value is supported.
- Properties
Subscription
List Args - The request to update subscriptions needed to be monitored by the Datadog monitor resource.
- monitor
Name String - Monitor resource name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- configuration
Name String - The configuration name. Only 'default' value is supported.
- properties
Subscription
List - The request to update subscriptions needed to be monitored by the Datadog monitor resource.
- monitor
Name string - Monitor resource name
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- configuration
Name string - The configuration name. Only 'default' value is supported.
- properties
Subscription
List - The request to update subscriptions needed to be monitored by the Datadog monitor resource.
- monitor_
name str - Monitor resource name
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- configuration_
name str - The configuration name. Only 'default' value is supported.
- properties
Subscription
List Args - The request to update subscriptions needed to be monitored by the Datadog monitor resource.
- monitor
Name String - Monitor resource name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- configuration
Name String - The configuration name. Only 'default' value is supported.
- properties Property Map
- The request to update subscriptions needed to be monitored by the Datadog monitor resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitoredSubscription resource produces the following output properties:
Supporting Types
FilteringTag, FilteringTagArgs
- Action
string | Pulumi.
Azure Native. Datadog. Tag Action - Valid actions for a filtering tag. Exclusion takes priority over inclusion.
- Name string
- The name (also known as the key) of the tag.
- Value string
- The value of the tag.
- action String | "Include" | "Exclude"
- Valid actions for a filtering tag. Exclusion takes priority over inclusion.
- name String
- The name (also known as the key) of the tag.
- value String
- The value of the tag.
FilteringTagResponse, FilteringTagResponseArgs
LogRules, LogRulesArgs
- List<Pulumi.
Azure Native. Datadog. Inputs. Filtering Tag> - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- Send
Aad boolLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- Send
Resource boolLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- Send
Subscription boolLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
- []Filtering
Tag - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- Send
Aad boolLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- Send
Resource boolLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- Send
Subscription boolLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
- List<Filtering
Tag> - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- send
Aad BooleanLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send
Resource BooleanLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- send
Subscription BooleanLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
- Filtering
Tag[] - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- send
Aad booleanLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send
Resource booleanLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- send
Subscription booleanLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
- Sequence[Filtering
Tag] - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- send_
aad_ boollogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send_
resource_ boollogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- send_
subscription_ boollogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
- List<Property Map>
- List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- send
Aad BooleanLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send
Resource BooleanLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- send
Subscription BooleanLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
LogRulesResponse, LogRulesResponseArgs
- List<Pulumi.
Azure Native. Datadog. Inputs. Filtering Tag Response> - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- Send
Aad boolLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- Send
Resource boolLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- Send
Subscription boolLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
- []Filtering
Tag Response - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- Send
Aad boolLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- Send
Resource boolLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- Send
Subscription boolLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
- List<Filtering
Tag Response> - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- send
Aad BooleanLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send
Resource BooleanLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- send
Subscription BooleanLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
- Filtering
Tag Response[] - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- send
Aad booleanLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send
Resource booleanLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- send
Subscription booleanLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
- Sequence[Filtering
Tag Response] - List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- send_
aad_ boollogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send_
resource_ boollogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- send_
subscription_ boollogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
- List<Property Map>
- List of filtering tags to be used for capturing logs. This only takes effect if SendResourceLogs flag is enabled. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- send
Aad BooleanLogs - Flag specifying if AAD logs should be sent for the Monitor resource.
- send
Resource BooleanLogs - Flag specifying if Azure resource logs should be sent for the Monitor resource.
- send
Subscription BooleanLogs - Flag specifying if Azure subscription logs should be sent for the Monitor resource.
MetricRules, MetricRulesArgs
- List<Pulumi.
Azure Native. Datadog. Inputs. Filtering Tag> - List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- []Filtering
Tag - List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- List<Filtering
Tag> - List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- Filtering
Tag[] - List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- Sequence[Filtering
Tag] - List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- List<Property Map>
- List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
MetricRulesResponse, MetricRulesResponseArgs
- List<Pulumi.
Azure Native. Datadog. Inputs. Filtering Tag Response> - List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- []Filtering
Tag Response - List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- List<Filtering
Tag Response> - List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- Filtering
Tag Response[] - List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- Sequence[Filtering
Tag Response] - List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
- List<Property Map>
- List of filtering tags to be used for capturing metrics. If empty, all resources will be captured. If only Exclude action is specified, the rules will apply to the list of all available resources. If Include actions are specified, the rules will only include resources with the associated tags.
MonitoredSubscription, MonitoredSubscriptionArgs
- Error string
- The reason of not monitoring the subscription.
- Status
string | Pulumi.
Azure Native. Datadog. Status - The state of monitoring.
- Subscription
Id string - The subscriptionId to be monitored.
- Tag
Rules Pulumi.Azure Native. Datadog. Inputs. Monitoring Tag Rules Properties - Definition of the properties for a TagRules resource.
- Error string
- The reason of not monitoring the subscription.
- Status string | Status
- The state of monitoring.
- Subscription
Id string - The subscriptionId to be monitored.
- Tag
Rules MonitoringTag Rules Properties - Definition of the properties for a TagRules resource.
- error String
- The reason of not monitoring the subscription.
- status String | Status
- The state of monitoring.
- subscription
Id String - The subscriptionId to be monitored.
- tag
Rules MonitoringTag Rules Properties - Definition of the properties for a TagRules resource.
- error string
- The reason of not monitoring the subscription.
- status string | Status
- The state of monitoring.
- subscription
Id string - The subscriptionId to be monitored.
- tag
Rules MonitoringTag Rules Properties - Definition of the properties for a TagRules resource.
- error str
- The reason of not monitoring the subscription.
- status str | Status
- The state of monitoring.
- subscription_
id str - The subscriptionId to be monitored.
- tag_
rules MonitoringTag Rules Properties - Definition of the properties for a TagRules resource.
- error String
- The reason of not monitoring the subscription.
- status
String | "In
Progress" | "Active" | "Failed" | "Deleting" - The state of monitoring.
- subscription
Id String - The subscriptionId to be monitored.
- tag
Rules Property Map - Definition of the properties for a TagRules resource.
MonitoredSubscriptionResponse, MonitoredSubscriptionResponseArgs
- Error string
- The reason of not monitoring the subscription.
- Status string
- The state of monitoring.
- Subscription
Id string - The subscriptionId to be monitored.
- Tag
Rules Pulumi.Azure Native. Datadog. Inputs. Monitoring Tag Rules Properties Response - Definition of the properties for a TagRules resource.
- Error string
- The reason of not monitoring the subscription.
- Status string
- The state of monitoring.
- Subscription
Id string - The subscriptionId to be monitored.
- Tag
Rules MonitoringTag Rules Properties Response - Definition of the properties for a TagRules resource.
- error String
- The reason of not monitoring the subscription.
- status String
- The state of monitoring.
- subscription
Id String - The subscriptionId to be monitored.
- tag
Rules MonitoringTag Rules Properties Response - Definition of the properties for a TagRules resource.
- error string
- The reason of not monitoring the subscription.
- status string
- The state of monitoring.
- subscription
Id string - The subscriptionId to be monitored.
- tag
Rules MonitoringTag Rules Properties Response - Definition of the properties for a TagRules resource.
- error str
- The reason of not monitoring the subscription.
- status str
- The state of monitoring.
- subscription_
id str - The subscriptionId to be monitored.
- tag_
rules MonitoringTag Rules Properties Response - Definition of the properties for a TagRules resource.
- error String
- The reason of not monitoring the subscription.
- status String
- The state of monitoring.
- subscription
Id String - The subscriptionId to be monitored.
- tag
Rules Property Map - Definition of the properties for a TagRules resource.
MonitoringTagRulesProperties, MonitoringTagRulesPropertiesArgs
- Automuting bool
- Configuration to enable/disable auto-muting flag
- Log
Rules Pulumi.Azure Native. Datadog. Inputs. Log Rules - Set of rules for sending logs for the Monitor resource.
- Metric
Rules Pulumi.Azure Native. Datadog. Inputs. Metric Rules - Set of rules for sending metrics for the Monitor resource.
- Automuting bool
- Configuration to enable/disable auto-muting flag
- Log
Rules LogRules - Set of rules for sending logs for the Monitor resource.
- Metric
Rules MetricRules - Set of rules for sending metrics for the Monitor resource.
- automuting Boolean
- Configuration to enable/disable auto-muting flag
- log
Rules LogRules - Set of rules for sending logs for the Monitor resource.
- metric
Rules MetricRules - Set of rules for sending metrics for the Monitor resource.
- automuting boolean
- Configuration to enable/disable auto-muting flag
- log
Rules LogRules - Set of rules for sending logs for the Monitor resource.
- metric
Rules MetricRules - Set of rules for sending metrics for the Monitor resource.
- automuting bool
- Configuration to enable/disable auto-muting flag
- log_
rules LogRules - Set of rules for sending logs for the Monitor resource.
- metric_
rules MetricRules - Set of rules for sending metrics for the Monitor resource.
- automuting Boolean
- Configuration to enable/disable auto-muting flag
- log
Rules Property Map - Set of rules for sending logs for the Monitor resource.
- metric
Rules Property Map - Set of rules for sending metrics for the Monitor resource.
MonitoringTagRulesPropertiesResponse, MonitoringTagRulesPropertiesResponseArgs
- Provisioning
State string - Automuting bool
- Configuration to enable/disable auto-muting flag
- Log
Rules Pulumi.Azure Native. Datadog. Inputs. Log Rules Response - Set of rules for sending logs for the Monitor resource.
- Metric
Rules Pulumi.Azure Native. Datadog. Inputs. Metric Rules Response - Set of rules for sending metrics for the Monitor resource.
- Provisioning
State string - Automuting bool
- Configuration to enable/disable auto-muting flag
- Log
Rules LogRules Response - Set of rules for sending logs for the Monitor resource.
- Metric
Rules MetricRules Response - Set of rules for sending metrics for the Monitor resource.
- provisioning
State String - automuting Boolean
- Configuration to enable/disable auto-muting flag
- log
Rules LogRules Response - Set of rules for sending logs for the Monitor resource.
- metric
Rules MetricRules Response - Set of rules for sending metrics for the Monitor resource.
- provisioning
State string - automuting boolean
- Configuration to enable/disable auto-muting flag
- log
Rules LogRules Response - Set of rules for sending logs for the Monitor resource.
- metric
Rules MetricRules Response - Set of rules for sending metrics for the Monitor resource.
- provisioning_
state str - automuting bool
- Configuration to enable/disable auto-muting flag
- log_
rules LogRules Response - Set of rules for sending logs for the Monitor resource.
- metric_
rules MetricRules Response - Set of rules for sending metrics for the Monitor resource.
- provisioning
State String - automuting Boolean
- Configuration to enable/disable auto-muting flag
- log
Rules Property Map - Set of rules for sending logs for the Monitor resource.
- metric
Rules Property Map - Set of rules for sending metrics for the Monitor resource.
Operation, OperationArgs
- Add
Begin - AddBegin
- Add
Complete - AddComplete
- Delete
Begin - DeleteBegin
- Delete
Complete - DeleteComplete
- Active
- Active
- Operation
Add Begin - AddBegin
- Operation
Add Complete - AddComplete
- Operation
Delete Begin - DeleteBegin
- Operation
Delete Complete - DeleteComplete
- Operation
Active - Active
- Add
Begin - AddBegin
- Add
Complete - AddComplete
- Delete
Begin - DeleteBegin
- Delete
Complete - DeleteComplete
- Active
- Active
- Add
Begin - AddBegin
- Add
Complete - AddComplete
- Delete
Begin - DeleteBegin
- Delete
Complete - DeleteComplete
- Active
- Active
- ADD_BEGIN
- AddBegin
- ADD_COMPLETE
- AddComplete
- DELETE_BEGIN
- DeleteBegin
- DELETE_COMPLETE
- DeleteComplete
- ACTIVE
- Active
- "Add
Begin" - AddBegin
- "Add
Complete" - AddComplete
- "Delete
Begin" - DeleteBegin
- "Delete
Complete" - DeleteComplete
- "Active"
- Active
Status, StatusArgs
- In
Progress - InProgress
- Active
- Active
- Failed
- Failed
- Deleting
- Deleting
- Status
In Progress - InProgress
- Status
Active - Active
- Status
Failed - Failed
- Status
Deleting - Deleting
- In
Progress - InProgress
- Active
- Active
- Failed
- Failed
- Deleting
- Deleting
- In
Progress - InProgress
- Active
- Active
- Failed
- Failed
- Deleting
- Deleting
- IN_PROGRESS
- InProgress
- ACTIVE
- Active
- FAILED
- Failed
- DELETING
- Deleting
- "In
Progress" - InProgress
- "Active"
- Active
- "Failed"
- Failed
- "Deleting"
- Deleting
SubscriptionList, SubscriptionListArgs
- Monitored
Subscription List<Pulumi.List Azure Native. Datadog. Inputs. Monitored Subscription> - List of subscriptions and the state of the monitoring.
- Operation
string | Pulumi.
Azure Native. Datadog. Operation - The operation for the patch on the resource.
- Monitored
Subscription []MonitoredList Subscription Type - List of subscriptions and the state of the monitoring.
- Operation string | Operation
- The operation for the patch on the resource.
- monitored
Subscription List<MonitoredList Subscription> - List of subscriptions and the state of the monitoring.
- operation String | Operation
- The operation for the patch on the resource.
- monitored
Subscription MonitoredList Subscription[] - List of subscriptions and the state of the monitoring.
- operation string | Operation
- The operation for the patch on the resource.
- monitored_
subscription_ Sequence[Monitoredlist Subscription] - List of subscriptions and the state of the monitoring.
- operation str | Operation
- The operation for the patch on the resource.
- monitored
Subscription List<Property Map>List - List of subscriptions and the state of the monitoring.
- operation
String | "Add
Begin" | "Add Complete" | "Delete Begin" | "Delete Complete" | "Active" - The operation for the patch on the resource.
SubscriptionListResponse, SubscriptionListResponseArgs
- Monitored
Subscription List<Pulumi.List Azure Native. Datadog. Inputs. Monitored Subscription Response> - List of subscriptions and the state of the monitoring.
- Monitored
Subscription []MonitoredList Subscription Response - List of subscriptions and the state of the monitoring.
- monitored
Subscription List<MonitoredList Subscription Response> - List of subscriptions and the state of the monitoring.
- monitored
Subscription MonitoredList Subscription Response[] - List of subscriptions and the state of the monitoring.
- monitored_
subscription_ Sequence[Monitoredlist Subscription Response] - List of subscriptions and the state of the monitoring.
- monitored
Subscription List<Property Map>List - List of subscriptions and the state of the monitoring.
TagAction, TagActionArgs
- Include
- Include
- Exclude
- Exclude
- Tag
Action Include - Include
- Tag
Action Exclude - Exclude
- Include
- Include
- Exclude
- Exclude
- Include
- Include
- Exclude
- Exclude
- INCLUDE
- Include
- EXCLUDE
- Exclude
- "Include"
- Include
- "Exclude"
- Exclude
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:datadog:MonitoredSubscription default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}/monitoredSubscriptions/{configurationName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0