pulumi-azure-native 3.0.1__py3-none-any.whl → 3.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-azure-native might be problematic. Click here for more details.
- pulumi_azure_native/__init__.py +5 -0
- pulumi_azure_native/monitor/__init__.py +10 -0
- pulumi_azure_native/monitor/_enums.py +204 -0
- pulumi_azure_native/monitor/_inputs.py +4241 -851
- pulumi_azure_native/monitor/action_group.py +9 -9
- pulumi_azure_native/monitor/activity_log_alert.py +388 -0
- pulumi_azure_native/monitor/data_collection_endpoint.py +468 -0
- pulumi_azure_native/monitor/data_collection_rule.py +519 -0
- pulumi_azure_native/monitor/data_collection_rule_association.py +300 -0
- pulumi_azure_native/monitor/get_action_group.py +2 -2
- pulumi_azure_native/monitor/get_activity_log_alert.py +231 -0
- pulumi_azure_native/monitor/get_data_collection_endpoint.py +357 -0
- pulumi_azure_native/monitor/get_data_collection_rule.py +344 -0
- pulumi_azure_native/monitor/get_data_collection_rule_association.py +231 -0
- pulumi_azure_native/monitor/get_metric_alert.py +343 -0
- pulumi_azure_native/monitor/get_private_endpoint_connection.py +4 -0
- pulumi_azure_native/monitor/get_private_link_scope.py +4 -0
- pulumi_azure_native/monitor/get_private_link_scoped_resource.py +4 -0
- pulumi_azure_native/monitor/metric_alert.py +578 -0
- pulumi_azure_native/monitor/outputs.py +4276 -743
- pulumi_azure_native/monitor/private_endpoint_connection.py +4 -0
- pulumi_azure_native/monitor/private_link_scope.py +4 -0
- pulumi_azure_native/monitor/private_link_scoped_resource.py +4 -0
- pulumi_azure_native/pulumi-plugin.json +1 -1
- {pulumi_azure_native-3.0.1.dist-info → pulumi_azure_native-3.1.0.dist-info}/METADATA +1 -1
- {pulumi_azure_native-3.0.1.dist-info → pulumi_azure_native-3.1.0.dist-info}/RECORD +28 -18
- {pulumi_azure_native-3.0.1.dist-info → pulumi_azure_native-3.1.0.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-3.0.1.dist-info → pulumi_azure_native-3.1.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._enums import *
|
|
18
|
+
from ._inputs import *
|
|
19
|
+
|
|
20
|
+
__all__ = ['DataCollectionRuleArgs', 'DataCollectionRule']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class DataCollectionRuleArgs:
|
|
24
|
+
def __init__(__self__, *,
|
|
25
|
+
resource_group_name: pulumi.Input[str],
|
|
26
|
+
data_collection_endpoint_id: Optional[pulumi.Input[str]] = None,
|
|
27
|
+
data_collection_rule_name: Optional[pulumi.Input[str]] = None,
|
|
28
|
+
data_flows: Optional[pulumi.Input[Sequence[pulumi.Input['DataFlowArgs']]]] = None,
|
|
29
|
+
data_sources: Optional[pulumi.Input['DataCollectionRuleDataSourcesArgs']] = None,
|
|
30
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
31
|
+
destinations: Optional[pulumi.Input['DataCollectionRuleDestinationsArgs']] = None,
|
|
32
|
+
identity: Optional[pulumi.Input['DataCollectionRuleResourceIdentityArgs']] = None,
|
|
33
|
+
kind: Optional[pulumi.Input[Union[str, 'KnownDataCollectionRuleResourceKind']]] = None,
|
|
34
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
35
|
+
stream_declarations: Optional[pulumi.Input[Mapping[str, pulumi.Input['StreamDeclarationArgs']]]] = None,
|
|
36
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
|
|
37
|
+
"""
|
|
38
|
+
The set of arguments for constructing a DataCollectionRule resource.
|
|
39
|
+
:param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
|
|
40
|
+
:param pulumi.Input[str] data_collection_endpoint_id: The resource ID of the data collection endpoint that this rule can be used with.
|
|
41
|
+
:param pulumi.Input[str] data_collection_rule_name: The name of the data collection rule. The name is case insensitive.
|
|
42
|
+
:param pulumi.Input[Sequence[pulumi.Input['DataFlowArgs']]] data_flows: The specification of data flows.
|
|
43
|
+
:param pulumi.Input['DataCollectionRuleDataSourcesArgs'] data_sources: The specification of data sources.
|
|
44
|
+
This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
|
|
45
|
+
:param pulumi.Input[str] description: Description of the data collection rule.
|
|
46
|
+
:param pulumi.Input['DataCollectionRuleDestinationsArgs'] destinations: The specification of destinations.
|
|
47
|
+
:param pulumi.Input['DataCollectionRuleResourceIdentityArgs'] identity: Managed service identity of the resource.
|
|
48
|
+
:param pulumi.Input[Union[str, 'KnownDataCollectionRuleResourceKind']] kind: The kind of the resource.
|
|
49
|
+
:param pulumi.Input[str] location: The geo-location where the resource lives.
|
|
50
|
+
:param pulumi.Input[Mapping[str, pulumi.Input['StreamDeclarationArgs']]] stream_declarations: Declaration of custom streams used in this rule.
|
|
51
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags.
|
|
52
|
+
"""
|
|
53
|
+
pulumi.set(__self__, "resource_group_name", resource_group_name)
|
|
54
|
+
if data_collection_endpoint_id is not None:
|
|
55
|
+
pulumi.set(__self__, "data_collection_endpoint_id", data_collection_endpoint_id)
|
|
56
|
+
if data_collection_rule_name is not None:
|
|
57
|
+
pulumi.set(__self__, "data_collection_rule_name", data_collection_rule_name)
|
|
58
|
+
if data_flows is not None:
|
|
59
|
+
pulumi.set(__self__, "data_flows", data_flows)
|
|
60
|
+
if data_sources is not None:
|
|
61
|
+
pulumi.set(__self__, "data_sources", data_sources)
|
|
62
|
+
if description is not None:
|
|
63
|
+
pulumi.set(__self__, "description", description)
|
|
64
|
+
if destinations is not None:
|
|
65
|
+
pulumi.set(__self__, "destinations", destinations)
|
|
66
|
+
if identity is not None:
|
|
67
|
+
pulumi.set(__self__, "identity", identity)
|
|
68
|
+
if kind is not None:
|
|
69
|
+
pulumi.set(__self__, "kind", kind)
|
|
70
|
+
if location is not None:
|
|
71
|
+
pulumi.set(__self__, "location", location)
|
|
72
|
+
if stream_declarations is not None:
|
|
73
|
+
pulumi.set(__self__, "stream_declarations", stream_declarations)
|
|
74
|
+
if tags is not None:
|
|
75
|
+
pulumi.set(__self__, "tags", tags)
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter(name="resourceGroupName")
|
|
79
|
+
def resource_group_name(self) -> pulumi.Input[str]:
|
|
80
|
+
"""
|
|
81
|
+
The name of the resource group. The name is case insensitive.
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "resource_group_name")
|
|
84
|
+
|
|
85
|
+
@resource_group_name.setter
|
|
86
|
+
def resource_group_name(self, value: pulumi.Input[str]):
|
|
87
|
+
pulumi.set(self, "resource_group_name", value)
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter(name="dataCollectionEndpointId")
|
|
91
|
+
def data_collection_endpoint_id(self) -> Optional[pulumi.Input[str]]:
|
|
92
|
+
"""
|
|
93
|
+
The resource ID of the data collection endpoint that this rule can be used with.
|
|
94
|
+
"""
|
|
95
|
+
return pulumi.get(self, "data_collection_endpoint_id")
|
|
96
|
+
|
|
97
|
+
@data_collection_endpoint_id.setter
|
|
98
|
+
def data_collection_endpoint_id(self, value: Optional[pulumi.Input[str]]):
|
|
99
|
+
pulumi.set(self, "data_collection_endpoint_id", value)
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
@pulumi.getter(name="dataCollectionRuleName")
|
|
103
|
+
def data_collection_rule_name(self) -> Optional[pulumi.Input[str]]:
|
|
104
|
+
"""
|
|
105
|
+
The name of the data collection rule. The name is case insensitive.
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "data_collection_rule_name")
|
|
108
|
+
|
|
109
|
+
@data_collection_rule_name.setter
|
|
110
|
+
def data_collection_rule_name(self, value: Optional[pulumi.Input[str]]):
|
|
111
|
+
pulumi.set(self, "data_collection_rule_name", value)
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
@pulumi.getter(name="dataFlows")
|
|
115
|
+
def data_flows(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DataFlowArgs']]]]:
|
|
116
|
+
"""
|
|
117
|
+
The specification of data flows.
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "data_flows")
|
|
120
|
+
|
|
121
|
+
@data_flows.setter
|
|
122
|
+
def data_flows(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DataFlowArgs']]]]):
|
|
123
|
+
pulumi.set(self, "data_flows", value)
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
@pulumi.getter(name="dataSources")
|
|
127
|
+
def data_sources(self) -> Optional[pulumi.Input['DataCollectionRuleDataSourcesArgs']]:
|
|
128
|
+
"""
|
|
129
|
+
The specification of data sources.
|
|
130
|
+
This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
|
|
131
|
+
"""
|
|
132
|
+
return pulumi.get(self, "data_sources")
|
|
133
|
+
|
|
134
|
+
@data_sources.setter
|
|
135
|
+
def data_sources(self, value: Optional[pulumi.Input['DataCollectionRuleDataSourcesArgs']]):
|
|
136
|
+
pulumi.set(self, "data_sources", value)
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
@pulumi.getter
|
|
140
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
|
141
|
+
"""
|
|
142
|
+
Description of the data collection rule.
|
|
143
|
+
"""
|
|
144
|
+
return pulumi.get(self, "description")
|
|
145
|
+
|
|
146
|
+
@description.setter
|
|
147
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
|
148
|
+
pulumi.set(self, "description", value)
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
@pulumi.getter
|
|
152
|
+
def destinations(self) -> Optional[pulumi.Input['DataCollectionRuleDestinationsArgs']]:
|
|
153
|
+
"""
|
|
154
|
+
The specification of destinations.
|
|
155
|
+
"""
|
|
156
|
+
return pulumi.get(self, "destinations")
|
|
157
|
+
|
|
158
|
+
@destinations.setter
|
|
159
|
+
def destinations(self, value: Optional[pulumi.Input['DataCollectionRuleDestinationsArgs']]):
|
|
160
|
+
pulumi.set(self, "destinations", value)
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
@pulumi.getter
|
|
164
|
+
def identity(self) -> Optional[pulumi.Input['DataCollectionRuleResourceIdentityArgs']]:
|
|
165
|
+
"""
|
|
166
|
+
Managed service identity of the resource.
|
|
167
|
+
"""
|
|
168
|
+
return pulumi.get(self, "identity")
|
|
169
|
+
|
|
170
|
+
@identity.setter
|
|
171
|
+
def identity(self, value: Optional[pulumi.Input['DataCollectionRuleResourceIdentityArgs']]):
|
|
172
|
+
pulumi.set(self, "identity", value)
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
@pulumi.getter
|
|
176
|
+
def kind(self) -> Optional[pulumi.Input[Union[str, 'KnownDataCollectionRuleResourceKind']]]:
|
|
177
|
+
"""
|
|
178
|
+
The kind of the resource.
|
|
179
|
+
"""
|
|
180
|
+
return pulumi.get(self, "kind")
|
|
181
|
+
|
|
182
|
+
@kind.setter
|
|
183
|
+
def kind(self, value: Optional[pulumi.Input[Union[str, 'KnownDataCollectionRuleResourceKind']]]):
|
|
184
|
+
pulumi.set(self, "kind", value)
|
|
185
|
+
|
|
186
|
+
@property
|
|
187
|
+
@pulumi.getter
|
|
188
|
+
def location(self) -> Optional[pulumi.Input[str]]:
|
|
189
|
+
"""
|
|
190
|
+
The geo-location where the resource lives.
|
|
191
|
+
"""
|
|
192
|
+
return pulumi.get(self, "location")
|
|
193
|
+
|
|
194
|
+
@location.setter
|
|
195
|
+
def location(self, value: Optional[pulumi.Input[str]]):
|
|
196
|
+
pulumi.set(self, "location", value)
|
|
197
|
+
|
|
198
|
+
@property
|
|
199
|
+
@pulumi.getter(name="streamDeclarations")
|
|
200
|
+
def stream_declarations(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['StreamDeclarationArgs']]]]:
|
|
201
|
+
"""
|
|
202
|
+
Declaration of custom streams used in this rule.
|
|
203
|
+
"""
|
|
204
|
+
return pulumi.get(self, "stream_declarations")
|
|
205
|
+
|
|
206
|
+
@stream_declarations.setter
|
|
207
|
+
def stream_declarations(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['StreamDeclarationArgs']]]]):
|
|
208
|
+
pulumi.set(self, "stream_declarations", value)
|
|
209
|
+
|
|
210
|
+
@property
|
|
211
|
+
@pulumi.getter
|
|
212
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
213
|
+
"""
|
|
214
|
+
Resource tags.
|
|
215
|
+
"""
|
|
216
|
+
return pulumi.get(self, "tags")
|
|
217
|
+
|
|
218
|
+
@tags.setter
|
|
219
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
220
|
+
pulumi.set(self, "tags", value)
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class DataCollectionRule(pulumi.CustomResource):
|
|
224
|
+
@overload
|
|
225
|
+
def __init__(__self__,
|
|
226
|
+
resource_name: str,
|
|
227
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
228
|
+
data_collection_endpoint_id: Optional[pulumi.Input[str]] = None,
|
|
229
|
+
data_collection_rule_name: Optional[pulumi.Input[str]] = None,
|
|
230
|
+
data_flows: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataFlowArgs', 'DataFlowArgsDict']]]]] = None,
|
|
231
|
+
data_sources: Optional[pulumi.Input[Union['DataCollectionRuleDataSourcesArgs', 'DataCollectionRuleDataSourcesArgsDict']]] = None,
|
|
232
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
233
|
+
destinations: Optional[pulumi.Input[Union['DataCollectionRuleDestinationsArgs', 'DataCollectionRuleDestinationsArgsDict']]] = None,
|
|
234
|
+
identity: Optional[pulumi.Input[Union['DataCollectionRuleResourceIdentityArgs', 'DataCollectionRuleResourceIdentityArgsDict']]] = None,
|
|
235
|
+
kind: Optional[pulumi.Input[Union[str, 'KnownDataCollectionRuleResourceKind']]] = None,
|
|
236
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
237
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
238
|
+
stream_declarations: Optional[pulumi.Input[Mapping[str, pulumi.Input[Union['StreamDeclarationArgs', 'StreamDeclarationArgsDict']]]]] = None,
|
|
239
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
240
|
+
__props__=None):
|
|
241
|
+
"""
|
|
242
|
+
Definition of ARM tracked top level resource.
|
|
243
|
+
|
|
244
|
+
Uses Azure REST API version 2022-06-01.
|
|
245
|
+
|
|
246
|
+
:param str resource_name: The name of the resource.
|
|
247
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
248
|
+
:param pulumi.Input[str] data_collection_endpoint_id: The resource ID of the data collection endpoint that this rule can be used with.
|
|
249
|
+
:param pulumi.Input[str] data_collection_rule_name: The name of the data collection rule. The name is case insensitive.
|
|
250
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['DataFlowArgs', 'DataFlowArgsDict']]]] data_flows: The specification of data flows.
|
|
251
|
+
:param pulumi.Input[Union['DataCollectionRuleDataSourcesArgs', 'DataCollectionRuleDataSourcesArgsDict']] data_sources: The specification of data sources.
|
|
252
|
+
This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
|
|
253
|
+
:param pulumi.Input[str] description: Description of the data collection rule.
|
|
254
|
+
:param pulumi.Input[Union['DataCollectionRuleDestinationsArgs', 'DataCollectionRuleDestinationsArgsDict']] destinations: The specification of destinations.
|
|
255
|
+
:param pulumi.Input[Union['DataCollectionRuleResourceIdentityArgs', 'DataCollectionRuleResourceIdentityArgsDict']] identity: Managed service identity of the resource.
|
|
256
|
+
:param pulumi.Input[Union[str, 'KnownDataCollectionRuleResourceKind']] kind: The kind of the resource.
|
|
257
|
+
:param pulumi.Input[str] location: The geo-location where the resource lives.
|
|
258
|
+
:param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive.
|
|
259
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[Union['StreamDeclarationArgs', 'StreamDeclarationArgsDict']]]] stream_declarations: Declaration of custom streams used in this rule.
|
|
260
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags.
|
|
261
|
+
"""
|
|
262
|
+
...
|
|
263
|
+
@overload
|
|
264
|
+
def __init__(__self__,
|
|
265
|
+
resource_name: str,
|
|
266
|
+
args: DataCollectionRuleArgs,
|
|
267
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
268
|
+
"""
|
|
269
|
+
Definition of ARM tracked top level resource.
|
|
270
|
+
|
|
271
|
+
Uses Azure REST API version 2022-06-01.
|
|
272
|
+
|
|
273
|
+
:param str resource_name: The name of the resource.
|
|
274
|
+
:param DataCollectionRuleArgs args: The arguments to use to populate this resource's properties.
|
|
275
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
276
|
+
"""
|
|
277
|
+
...
|
|
278
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
279
|
+
resource_args, opts = _utilities.get_resource_args_opts(DataCollectionRuleArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
280
|
+
if resource_args is not None:
|
|
281
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
282
|
+
else:
|
|
283
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
284
|
+
|
|
285
|
+
def _internal_init(__self__,
|
|
286
|
+
resource_name: str,
|
|
287
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
288
|
+
data_collection_endpoint_id: Optional[pulumi.Input[str]] = None,
|
|
289
|
+
data_collection_rule_name: Optional[pulumi.Input[str]] = None,
|
|
290
|
+
data_flows: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DataFlowArgs', 'DataFlowArgsDict']]]]] = None,
|
|
291
|
+
data_sources: Optional[pulumi.Input[Union['DataCollectionRuleDataSourcesArgs', 'DataCollectionRuleDataSourcesArgsDict']]] = None,
|
|
292
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
293
|
+
destinations: Optional[pulumi.Input[Union['DataCollectionRuleDestinationsArgs', 'DataCollectionRuleDestinationsArgsDict']]] = None,
|
|
294
|
+
identity: Optional[pulumi.Input[Union['DataCollectionRuleResourceIdentityArgs', 'DataCollectionRuleResourceIdentityArgsDict']]] = None,
|
|
295
|
+
kind: Optional[pulumi.Input[Union[str, 'KnownDataCollectionRuleResourceKind']]] = None,
|
|
296
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
297
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
298
|
+
stream_declarations: Optional[pulumi.Input[Mapping[str, pulumi.Input[Union['StreamDeclarationArgs', 'StreamDeclarationArgsDict']]]]] = None,
|
|
299
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
300
|
+
__props__=None):
|
|
301
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
302
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
303
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
304
|
+
if opts.id is None:
|
|
305
|
+
if __props__ is not None:
|
|
306
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
307
|
+
__props__ = DataCollectionRuleArgs.__new__(DataCollectionRuleArgs)
|
|
308
|
+
|
|
309
|
+
__props__.__dict__["data_collection_endpoint_id"] = data_collection_endpoint_id
|
|
310
|
+
__props__.__dict__["data_collection_rule_name"] = data_collection_rule_name
|
|
311
|
+
__props__.__dict__["data_flows"] = data_flows
|
|
312
|
+
__props__.__dict__["data_sources"] = data_sources
|
|
313
|
+
__props__.__dict__["description"] = description
|
|
314
|
+
__props__.__dict__["destinations"] = destinations
|
|
315
|
+
__props__.__dict__["identity"] = identity
|
|
316
|
+
__props__.__dict__["kind"] = kind
|
|
317
|
+
__props__.__dict__["location"] = location
|
|
318
|
+
if resource_group_name is None and not opts.urn:
|
|
319
|
+
raise TypeError("Missing required property 'resource_group_name'")
|
|
320
|
+
__props__.__dict__["resource_group_name"] = resource_group_name
|
|
321
|
+
__props__.__dict__["stream_declarations"] = stream_declarations
|
|
322
|
+
__props__.__dict__["tags"] = tags
|
|
323
|
+
__props__.__dict__["azure_api_version"] = None
|
|
324
|
+
__props__.__dict__["etag"] = None
|
|
325
|
+
__props__.__dict__["immutable_id"] = None
|
|
326
|
+
__props__.__dict__["metadata"] = None
|
|
327
|
+
__props__.__dict__["name"] = None
|
|
328
|
+
__props__.__dict__["provisioning_state"] = None
|
|
329
|
+
__props__.__dict__["system_data"] = None
|
|
330
|
+
__props__.__dict__["type"] = None
|
|
331
|
+
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:insights/v20220601:DataCollectionRule"), pulumi.Alias(type_="azure-native:insights/v20230311:DataCollectionRule"), pulumi.Alias(type_="azure-native:insights:DataCollectionRule"), pulumi.Alias(type_="azure-native:monitor/v20191101preview:DataCollectionRule"), pulumi.Alias(type_="azure-native:monitor/v20210401:DataCollectionRule"), pulumi.Alias(type_="azure-native:monitor/v20210901preview:DataCollectionRule"), pulumi.Alias(type_="azure-native:monitor/v20220601:DataCollectionRule"), pulumi.Alias(type_="azure-native:monitor/v20230311:DataCollectionRule")])
|
|
332
|
+
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
|
|
333
|
+
super(DataCollectionRule, __self__).__init__(
|
|
334
|
+
'azure-native:monitor:DataCollectionRule',
|
|
335
|
+
resource_name,
|
|
336
|
+
__props__,
|
|
337
|
+
opts)
|
|
338
|
+
|
|
339
|
+
@staticmethod
|
|
340
|
+
def get(resource_name: str,
|
|
341
|
+
id: pulumi.Input[str],
|
|
342
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'DataCollectionRule':
|
|
343
|
+
"""
|
|
344
|
+
Get an existing DataCollectionRule resource's state with the given name, id, and optional extra
|
|
345
|
+
properties used to qualify the lookup.
|
|
346
|
+
|
|
347
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
348
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
349
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
350
|
+
"""
|
|
351
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
352
|
+
|
|
353
|
+
__props__ = DataCollectionRuleArgs.__new__(DataCollectionRuleArgs)
|
|
354
|
+
|
|
355
|
+
__props__.__dict__["azure_api_version"] = None
|
|
356
|
+
__props__.__dict__["data_collection_endpoint_id"] = None
|
|
357
|
+
__props__.__dict__["data_flows"] = None
|
|
358
|
+
__props__.__dict__["data_sources"] = None
|
|
359
|
+
__props__.__dict__["description"] = None
|
|
360
|
+
__props__.__dict__["destinations"] = None
|
|
361
|
+
__props__.__dict__["etag"] = None
|
|
362
|
+
__props__.__dict__["identity"] = None
|
|
363
|
+
__props__.__dict__["immutable_id"] = None
|
|
364
|
+
__props__.__dict__["kind"] = None
|
|
365
|
+
__props__.__dict__["location"] = None
|
|
366
|
+
__props__.__dict__["metadata"] = None
|
|
367
|
+
__props__.__dict__["name"] = None
|
|
368
|
+
__props__.__dict__["provisioning_state"] = None
|
|
369
|
+
__props__.__dict__["stream_declarations"] = None
|
|
370
|
+
__props__.__dict__["system_data"] = None
|
|
371
|
+
__props__.__dict__["tags"] = None
|
|
372
|
+
__props__.__dict__["type"] = None
|
|
373
|
+
return DataCollectionRule(resource_name, opts=opts, __props__=__props__)
|
|
374
|
+
|
|
375
|
+
@property
|
|
376
|
+
@pulumi.getter(name="azureApiVersion")
|
|
377
|
+
def azure_api_version(self) -> pulumi.Output[str]:
|
|
378
|
+
"""
|
|
379
|
+
The Azure API version of the resource.
|
|
380
|
+
"""
|
|
381
|
+
return pulumi.get(self, "azure_api_version")
|
|
382
|
+
|
|
383
|
+
@property
|
|
384
|
+
@pulumi.getter(name="dataCollectionEndpointId")
|
|
385
|
+
def data_collection_endpoint_id(self) -> pulumi.Output[Optional[str]]:
|
|
386
|
+
"""
|
|
387
|
+
The resource ID of the data collection endpoint that this rule can be used with.
|
|
388
|
+
"""
|
|
389
|
+
return pulumi.get(self, "data_collection_endpoint_id")
|
|
390
|
+
|
|
391
|
+
@property
|
|
392
|
+
@pulumi.getter(name="dataFlows")
|
|
393
|
+
def data_flows(self) -> pulumi.Output[Optional[Sequence['outputs.DataFlowResponse']]]:
|
|
394
|
+
"""
|
|
395
|
+
The specification of data flows.
|
|
396
|
+
"""
|
|
397
|
+
return pulumi.get(self, "data_flows")
|
|
398
|
+
|
|
399
|
+
@property
|
|
400
|
+
@pulumi.getter(name="dataSources")
|
|
401
|
+
def data_sources(self) -> pulumi.Output[Optional['outputs.DataCollectionRuleResponseDataSources']]:
|
|
402
|
+
"""
|
|
403
|
+
The specification of data sources.
|
|
404
|
+
This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
|
|
405
|
+
"""
|
|
406
|
+
return pulumi.get(self, "data_sources")
|
|
407
|
+
|
|
408
|
+
@property
|
|
409
|
+
@pulumi.getter
|
|
410
|
+
def description(self) -> pulumi.Output[Optional[str]]:
|
|
411
|
+
"""
|
|
412
|
+
Description of the data collection rule.
|
|
413
|
+
"""
|
|
414
|
+
return pulumi.get(self, "description")
|
|
415
|
+
|
|
416
|
+
@property
|
|
417
|
+
@pulumi.getter
|
|
418
|
+
def destinations(self) -> pulumi.Output[Optional['outputs.DataCollectionRuleResponseDestinations']]:
|
|
419
|
+
"""
|
|
420
|
+
The specification of destinations.
|
|
421
|
+
"""
|
|
422
|
+
return pulumi.get(self, "destinations")
|
|
423
|
+
|
|
424
|
+
@property
|
|
425
|
+
@pulumi.getter
|
|
426
|
+
def etag(self) -> pulumi.Output[str]:
|
|
427
|
+
"""
|
|
428
|
+
Resource entity tag (ETag).
|
|
429
|
+
"""
|
|
430
|
+
return pulumi.get(self, "etag")
|
|
431
|
+
|
|
432
|
+
@property
|
|
433
|
+
@pulumi.getter
|
|
434
|
+
def identity(self) -> pulumi.Output[Optional['outputs.DataCollectionRuleResourceResponseIdentity']]:
|
|
435
|
+
"""
|
|
436
|
+
Managed service identity of the resource.
|
|
437
|
+
"""
|
|
438
|
+
return pulumi.get(self, "identity")
|
|
439
|
+
|
|
440
|
+
@property
|
|
441
|
+
@pulumi.getter(name="immutableId")
|
|
442
|
+
def immutable_id(self) -> pulumi.Output[str]:
|
|
443
|
+
"""
|
|
444
|
+
The immutable ID of this data collection rule. This property is READ-ONLY.
|
|
445
|
+
"""
|
|
446
|
+
return pulumi.get(self, "immutable_id")
|
|
447
|
+
|
|
448
|
+
@property
|
|
449
|
+
@pulumi.getter
|
|
450
|
+
def kind(self) -> pulumi.Output[Optional[str]]:
|
|
451
|
+
"""
|
|
452
|
+
The kind of the resource.
|
|
453
|
+
"""
|
|
454
|
+
return pulumi.get(self, "kind")
|
|
455
|
+
|
|
456
|
+
@property
|
|
457
|
+
@pulumi.getter
|
|
458
|
+
def location(self) -> pulumi.Output[str]:
|
|
459
|
+
"""
|
|
460
|
+
The geo-location where the resource lives.
|
|
461
|
+
"""
|
|
462
|
+
return pulumi.get(self, "location")
|
|
463
|
+
|
|
464
|
+
@property
|
|
465
|
+
@pulumi.getter
|
|
466
|
+
def metadata(self) -> pulumi.Output['outputs.DataCollectionRuleResponseMetadata']:
|
|
467
|
+
"""
|
|
468
|
+
Metadata about the resource
|
|
469
|
+
"""
|
|
470
|
+
return pulumi.get(self, "metadata")
|
|
471
|
+
|
|
472
|
+
@property
|
|
473
|
+
@pulumi.getter
|
|
474
|
+
def name(self) -> pulumi.Output[str]:
|
|
475
|
+
"""
|
|
476
|
+
The name of the resource.
|
|
477
|
+
"""
|
|
478
|
+
return pulumi.get(self, "name")
|
|
479
|
+
|
|
480
|
+
@property
|
|
481
|
+
@pulumi.getter(name="provisioningState")
|
|
482
|
+
def provisioning_state(self) -> pulumi.Output[str]:
|
|
483
|
+
"""
|
|
484
|
+
The resource provisioning state.
|
|
485
|
+
"""
|
|
486
|
+
return pulumi.get(self, "provisioning_state")
|
|
487
|
+
|
|
488
|
+
@property
|
|
489
|
+
@pulumi.getter(name="streamDeclarations")
|
|
490
|
+
def stream_declarations(self) -> pulumi.Output[Optional[Mapping[str, 'outputs.StreamDeclarationResponse']]]:
|
|
491
|
+
"""
|
|
492
|
+
Declaration of custom streams used in this rule.
|
|
493
|
+
"""
|
|
494
|
+
return pulumi.get(self, "stream_declarations")
|
|
495
|
+
|
|
496
|
+
@property
|
|
497
|
+
@pulumi.getter(name="systemData")
|
|
498
|
+
def system_data(self) -> pulumi.Output['outputs.DataCollectionRuleResourceResponseSystemData']:
|
|
499
|
+
"""
|
|
500
|
+
Metadata pertaining to creation and last modification of the resource.
|
|
501
|
+
"""
|
|
502
|
+
return pulumi.get(self, "system_data")
|
|
503
|
+
|
|
504
|
+
@property
|
|
505
|
+
@pulumi.getter
|
|
506
|
+
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
507
|
+
"""
|
|
508
|
+
Resource tags.
|
|
509
|
+
"""
|
|
510
|
+
return pulumi.get(self, "tags")
|
|
511
|
+
|
|
512
|
+
@property
|
|
513
|
+
@pulumi.getter
|
|
514
|
+
def type(self) -> pulumi.Output[str]:
|
|
515
|
+
"""
|
|
516
|
+
The type of the resource.
|
|
517
|
+
"""
|
|
518
|
+
return pulumi.get(self, "type")
|
|
519
|
+
|