pulumi-azure-native 3.1.0a1744023970__py3-none-any.whl → 3.1.0a1744104520__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.1.0a1744023970.dist-info → pulumi_azure_native-3.1.0a1744104520.dist-info}/METADATA +1 -1
- {pulumi_azure_native-3.1.0a1744023970.dist-info → pulumi_azure_native-3.1.0a1744104520.dist-info}/RECORD +28 -18
- {pulumi_azure_native-3.1.0a1744023970.dist-info → pulumi_azure_native-3.1.0a1744104520.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-3.1.0a1744023970.dist-info → pulumi_azure_native-3.1.0a1744104520.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,344 @@
|
|
|
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
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetDataCollectionRuleResult',
|
|
20
|
+
'AwaitableGetDataCollectionRuleResult',
|
|
21
|
+
'get_data_collection_rule',
|
|
22
|
+
'get_data_collection_rule_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetDataCollectionRuleResult:
|
|
27
|
+
"""
|
|
28
|
+
Definition of ARM tracked top level resource.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, azure_api_version=None, data_collection_endpoint_id=None, data_flows=None, data_sources=None, description=None, destinations=None, etag=None, id=None, identity=None, immutable_id=None, kind=None, location=None, metadata=None, name=None, provisioning_state=None, stream_declarations=None, system_data=None, tags=None, type=None):
|
|
31
|
+
if azure_api_version and not isinstance(azure_api_version, str):
|
|
32
|
+
raise TypeError("Expected argument 'azure_api_version' to be a str")
|
|
33
|
+
pulumi.set(__self__, "azure_api_version", azure_api_version)
|
|
34
|
+
if data_collection_endpoint_id and not isinstance(data_collection_endpoint_id, str):
|
|
35
|
+
raise TypeError("Expected argument 'data_collection_endpoint_id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "data_collection_endpoint_id", data_collection_endpoint_id)
|
|
37
|
+
if data_flows and not isinstance(data_flows, list):
|
|
38
|
+
raise TypeError("Expected argument 'data_flows' to be a list")
|
|
39
|
+
pulumi.set(__self__, "data_flows", data_flows)
|
|
40
|
+
if data_sources and not isinstance(data_sources, dict):
|
|
41
|
+
raise TypeError("Expected argument 'data_sources' to be a dict")
|
|
42
|
+
pulumi.set(__self__, "data_sources", data_sources)
|
|
43
|
+
if description and not isinstance(description, str):
|
|
44
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
45
|
+
pulumi.set(__self__, "description", description)
|
|
46
|
+
if destinations and not isinstance(destinations, dict):
|
|
47
|
+
raise TypeError("Expected argument 'destinations' to be a dict")
|
|
48
|
+
pulumi.set(__self__, "destinations", destinations)
|
|
49
|
+
if etag and not isinstance(etag, str):
|
|
50
|
+
raise TypeError("Expected argument 'etag' to be a str")
|
|
51
|
+
pulumi.set(__self__, "etag", etag)
|
|
52
|
+
if id and not isinstance(id, str):
|
|
53
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
54
|
+
pulumi.set(__self__, "id", id)
|
|
55
|
+
if identity and not isinstance(identity, dict):
|
|
56
|
+
raise TypeError("Expected argument 'identity' to be a dict")
|
|
57
|
+
pulumi.set(__self__, "identity", identity)
|
|
58
|
+
if immutable_id and not isinstance(immutable_id, str):
|
|
59
|
+
raise TypeError("Expected argument 'immutable_id' to be a str")
|
|
60
|
+
pulumi.set(__self__, "immutable_id", immutable_id)
|
|
61
|
+
if kind and not isinstance(kind, str):
|
|
62
|
+
raise TypeError("Expected argument 'kind' to be a str")
|
|
63
|
+
pulumi.set(__self__, "kind", kind)
|
|
64
|
+
if location and not isinstance(location, str):
|
|
65
|
+
raise TypeError("Expected argument 'location' to be a str")
|
|
66
|
+
pulumi.set(__self__, "location", location)
|
|
67
|
+
if metadata and not isinstance(metadata, dict):
|
|
68
|
+
raise TypeError("Expected argument 'metadata' to be a dict")
|
|
69
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
70
|
+
if name and not isinstance(name, str):
|
|
71
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
72
|
+
pulumi.set(__self__, "name", name)
|
|
73
|
+
if provisioning_state and not isinstance(provisioning_state, str):
|
|
74
|
+
raise TypeError("Expected argument 'provisioning_state' to be a str")
|
|
75
|
+
pulumi.set(__self__, "provisioning_state", provisioning_state)
|
|
76
|
+
if stream_declarations and not isinstance(stream_declarations, dict):
|
|
77
|
+
raise TypeError("Expected argument 'stream_declarations' to be a dict")
|
|
78
|
+
pulumi.set(__self__, "stream_declarations", stream_declarations)
|
|
79
|
+
if system_data and not isinstance(system_data, dict):
|
|
80
|
+
raise TypeError("Expected argument 'system_data' to be a dict")
|
|
81
|
+
pulumi.set(__self__, "system_data", system_data)
|
|
82
|
+
if tags and not isinstance(tags, dict):
|
|
83
|
+
raise TypeError("Expected argument 'tags' to be a dict")
|
|
84
|
+
pulumi.set(__self__, "tags", tags)
|
|
85
|
+
if type and not isinstance(type, str):
|
|
86
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
87
|
+
pulumi.set(__self__, "type", type)
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter(name="azureApiVersion")
|
|
91
|
+
def azure_api_version(self) -> str:
|
|
92
|
+
"""
|
|
93
|
+
The Azure API version of the resource.
|
|
94
|
+
"""
|
|
95
|
+
return pulumi.get(self, "azure_api_version")
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
@pulumi.getter(name="dataCollectionEndpointId")
|
|
99
|
+
def data_collection_endpoint_id(self) -> Optional[str]:
|
|
100
|
+
"""
|
|
101
|
+
The resource ID of the data collection endpoint that this rule can be used with.
|
|
102
|
+
"""
|
|
103
|
+
return pulumi.get(self, "data_collection_endpoint_id")
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
@pulumi.getter(name="dataFlows")
|
|
107
|
+
def data_flows(self) -> Optional[Sequence['outputs.DataFlowResponse']]:
|
|
108
|
+
"""
|
|
109
|
+
The specification of data flows.
|
|
110
|
+
"""
|
|
111
|
+
return pulumi.get(self, "data_flows")
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
@pulumi.getter(name="dataSources")
|
|
115
|
+
def data_sources(self) -> Optional['outputs.DataCollectionRuleResponseDataSources']:
|
|
116
|
+
"""
|
|
117
|
+
The specification of data sources.
|
|
118
|
+
This property is optional and can be omitted if the rule is meant to be used via direct calls to the provisioned endpoint.
|
|
119
|
+
"""
|
|
120
|
+
return pulumi.get(self, "data_sources")
|
|
121
|
+
|
|
122
|
+
@property
|
|
123
|
+
@pulumi.getter
|
|
124
|
+
def description(self) -> Optional[str]:
|
|
125
|
+
"""
|
|
126
|
+
Description of the data collection rule.
|
|
127
|
+
"""
|
|
128
|
+
return pulumi.get(self, "description")
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
@pulumi.getter
|
|
132
|
+
def destinations(self) -> Optional['outputs.DataCollectionRuleResponseDestinations']:
|
|
133
|
+
"""
|
|
134
|
+
The specification of destinations.
|
|
135
|
+
"""
|
|
136
|
+
return pulumi.get(self, "destinations")
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
@pulumi.getter
|
|
140
|
+
def etag(self) -> str:
|
|
141
|
+
"""
|
|
142
|
+
Resource entity tag (ETag).
|
|
143
|
+
"""
|
|
144
|
+
return pulumi.get(self, "etag")
|
|
145
|
+
|
|
146
|
+
@property
|
|
147
|
+
@pulumi.getter
|
|
148
|
+
def id(self) -> str:
|
|
149
|
+
"""
|
|
150
|
+
Fully qualified ID of the resource.
|
|
151
|
+
"""
|
|
152
|
+
return pulumi.get(self, "id")
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
@pulumi.getter
|
|
156
|
+
def identity(self) -> Optional['outputs.DataCollectionRuleResourceResponseIdentity']:
|
|
157
|
+
"""
|
|
158
|
+
Managed service identity of the resource.
|
|
159
|
+
"""
|
|
160
|
+
return pulumi.get(self, "identity")
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
@pulumi.getter(name="immutableId")
|
|
164
|
+
def immutable_id(self) -> str:
|
|
165
|
+
"""
|
|
166
|
+
The immutable ID of this data collection rule. This property is READ-ONLY.
|
|
167
|
+
"""
|
|
168
|
+
return pulumi.get(self, "immutable_id")
|
|
169
|
+
|
|
170
|
+
@property
|
|
171
|
+
@pulumi.getter
|
|
172
|
+
def kind(self) -> Optional[str]:
|
|
173
|
+
"""
|
|
174
|
+
The kind of the resource.
|
|
175
|
+
"""
|
|
176
|
+
return pulumi.get(self, "kind")
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
@pulumi.getter
|
|
180
|
+
def location(self) -> str:
|
|
181
|
+
"""
|
|
182
|
+
The geo-location where the resource lives.
|
|
183
|
+
"""
|
|
184
|
+
return pulumi.get(self, "location")
|
|
185
|
+
|
|
186
|
+
@property
|
|
187
|
+
@pulumi.getter
|
|
188
|
+
def metadata(self) -> 'outputs.DataCollectionRuleResponseMetadata':
|
|
189
|
+
"""
|
|
190
|
+
Metadata about the resource
|
|
191
|
+
"""
|
|
192
|
+
return pulumi.get(self, "metadata")
|
|
193
|
+
|
|
194
|
+
@property
|
|
195
|
+
@pulumi.getter
|
|
196
|
+
def name(self) -> str:
|
|
197
|
+
"""
|
|
198
|
+
The name of the resource.
|
|
199
|
+
"""
|
|
200
|
+
return pulumi.get(self, "name")
|
|
201
|
+
|
|
202
|
+
@property
|
|
203
|
+
@pulumi.getter(name="provisioningState")
|
|
204
|
+
def provisioning_state(self) -> str:
|
|
205
|
+
"""
|
|
206
|
+
The resource provisioning state.
|
|
207
|
+
"""
|
|
208
|
+
return pulumi.get(self, "provisioning_state")
|
|
209
|
+
|
|
210
|
+
@property
|
|
211
|
+
@pulumi.getter(name="streamDeclarations")
|
|
212
|
+
def stream_declarations(self) -> Optional[Mapping[str, 'outputs.StreamDeclarationResponse']]:
|
|
213
|
+
"""
|
|
214
|
+
Declaration of custom streams used in this rule.
|
|
215
|
+
"""
|
|
216
|
+
return pulumi.get(self, "stream_declarations")
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
@pulumi.getter(name="systemData")
|
|
220
|
+
def system_data(self) -> 'outputs.DataCollectionRuleResourceResponseSystemData':
|
|
221
|
+
"""
|
|
222
|
+
Metadata pertaining to creation and last modification of the resource.
|
|
223
|
+
"""
|
|
224
|
+
return pulumi.get(self, "system_data")
|
|
225
|
+
|
|
226
|
+
@property
|
|
227
|
+
@pulumi.getter
|
|
228
|
+
def tags(self) -> Optional[Mapping[str, str]]:
|
|
229
|
+
"""
|
|
230
|
+
Resource tags.
|
|
231
|
+
"""
|
|
232
|
+
return pulumi.get(self, "tags")
|
|
233
|
+
|
|
234
|
+
@property
|
|
235
|
+
@pulumi.getter
|
|
236
|
+
def type(self) -> str:
|
|
237
|
+
"""
|
|
238
|
+
The type of the resource.
|
|
239
|
+
"""
|
|
240
|
+
return pulumi.get(self, "type")
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
class AwaitableGetDataCollectionRuleResult(GetDataCollectionRuleResult):
|
|
244
|
+
# pylint: disable=using-constant-test
|
|
245
|
+
def __await__(self):
|
|
246
|
+
if False:
|
|
247
|
+
yield self
|
|
248
|
+
return GetDataCollectionRuleResult(
|
|
249
|
+
azure_api_version=self.azure_api_version,
|
|
250
|
+
data_collection_endpoint_id=self.data_collection_endpoint_id,
|
|
251
|
+
data_flows=self.data_flows,
|
|
252
|
+
data_sources=self.data_sources,
|
|
253
|
+
description=self.description,
|
|
254
|
+
destinations=self.destinations,
|
|
255
|
+
etag=self.etag,
|
|
256
|
+
id=self.id,
|
|
257
|
+
identity=self.identity,
|
|
258
|
+
immutable_id=self.immutable_id,
|
|
259
|
+
kind=self.kind,
|
|
260
|
+
location=self.location,
|
|
261
|
+
metadata=self.metadata,
|
|
262
|
+
name=self.name,
|
|
263
|
+
provisioning_state=self.provisioning_state,
|
|
264
|
+
stream_declarations=self.stream_declarations,
|
|
265
|
+
system_data=self.system_data,
|
|
266
|
+
tags=self.tags,
|
|
267
|
+
type=self.type)
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
def get_data_collection_rule(data_collection_rule_name: Optional[str] = None,
|
|
271
|
+
resource_group_name: Optional[str] = None,
|
|
272
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDataCollectionRuleResult:
|
|
273
|
+
"""
|
|
274
|
+
Definition of ARM tracked top level resource.
|
|
275
|
+
|
|
276
|
+
Uses Azure REST API version 2022-06-01.
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
:param str data_collection_rule_name: The name of the data collection rule. The name is case insensitive.
|
|
280
|
+
:param str resource_group_name: The name of the resource group. The name is case insensitive.
|
|
281
|
+
"""
|
|
282
|
+
__args__ = dict()
|
|
283
|
+
__args__['dataCollectionRuleName'] = data_collection_rule_name
|
|
284
|
+
__args__['resourceGroupName'] = resource_group_name
|
|
285
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
286
|
+
__ret__ = pulumi.runtime.invoke('azure-native:monitor:getDataCollectionRule', __args__, opts=opts, typ=GetDataCollectionRuleResult).value
|
|
287
|
+
|
|
288
|
+
return AwaitableGetDataCollectionRuleResult(
|
|
289
|
+
azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
|
|
290
|
+
data_collection_endpoint_id=pulumi.get(__ret__, 'data_collection_endpoint_id'),
|
|
291
|
+
data_flows=pulumi.get(__ret__, 'data_flows'),
|
|
292
|
+
data_sources=pulumi.get(__ret__, 'data_sources'),
|
|
293
|
+
description=pulumi.get(__ret__, 'description'),
|
|
294
|
+
destinations=pulumi.get(__ret__, 'destinations'),
|
|
295
|
+
etag=pulumi.get(__ret__, 'etag'),
|
|
296
|
+
id=pulumi.get(__ret__, 'id'),
|
|
297
|
+
identity=pulumi.get(__ret__, 'identity'),
|
|
298
|
+
immutable_id=pulumi.get(__ret__, 'immutable_id'),
|
|
299
|
+
kind=pulumi.get(__ret__, 'kind'),
|
|
300
|
+
location=pulumi.get(__ret__, 'location'),
|
|
301
|
+
metadata=pulumi.get(__ret__, 'metadata'),
|
|
302
|
+
name=pulumi.get(__ret__, 'name'),
|
|
303
|
+
provisioning_state=pulumi.get(__ret__, 'provisioning_state'),
|
|
304
|
+
stream_declarations=pulumi.get(__ret__, 'stream_declarations'),
|
|
305
|
+
system_data=pulumi.get(__ret__, 'system_data'),
|
|
306
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
307
|
+
type=pulumi.get(__ret__, 'type'))
|
|
308
|
+
def get_data_collection_rule_output(data_collection_rule_name: Optional[pulumi.Input[str]] = None,
|
|
309
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
310
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDataCollectionRuleResult]:
|
|
311
|
+
"""
|
|
312
|
+
Definition of ARM tracked top level resource.
|
|
313
|
+
|
|
314
|
+
Uses Azure REST API version 2022-06-01.
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
:param str data_collection_rule_name: The name of the data collection rule. The name is case insensitive.
|
|
318
|
+
:param str resource_group_name: The name of the resource group. The name is case insensitive.
|
|
319
|
+
"""
|
|
320
|
+
__args__ = dict()
|
|
321
|
+
__args__['dataCollectionRuleName'] = data_collection_rule_name
|
|
322
|
+
__args__['resourceGroupName'] = resource_group_name
|
|
323
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
324
|
+
__ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getDataCollectionRule', __args__, opts=opts, typ=GetDataCollectionRuleResult)
|
|
325
|
+
return __ret__.apply(lambda __response__: GetDataCollectionRuleResult(
|
|
326
|
+
azure_api_version=pulumi.get(__response__, 'azure_api_version'),
|
|
327
|
+
data_collection_endpoint_id=pulumi.get(__response__, 'data_collection_endpoint_id'),
|
|
328
|
+
data_flows=pulumi.get(__response__, 'data_flows'),
|
|
329
|
+
data_sources=pulumi.get(__response__, 'data_sources'),
|
|
330
|
+
description=pulumi.get(__response__, 'description'),
|
|
331
|
+
destinations=pulumi.get(__response__, 'destinations'),
|
|
332
|
+
etag=pulumi.get(__response__, 'etag'),
|
|
333
|
+
id=pulumi.get(__response__, 'id'),
|
|
334
|
+
identity=pulumi.get(__response__, 'identity'),
|
|
335
|
+
immutable_id=pulumi.get(__response__, 'immutable_id'),
|
|
336
|
+
kind=pulumi.get(__response__, 'kind'),
|
|
337
|
+
location=pulumi.get(__response__, 'location'),
|
|
338
|
+
metadata=pulumi.get(__response__, 'metadata'),
|
|
339
|
+
name=pulumi.get(__response__, 'name'),
|
|
340
|
+
provisioning_state=pulumi.get(__response__, 'provisioning_state'),
|
|
341
|
+
stream_declarations=pulumi.get(__response__, 'stream_declarations'),
|
|
342
|
+
system_data=pulumi.get(__response__, 'system_data'),
|
|
343
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
344
|
+
type=pulumi.get(__response__, 'type')))
|
|
@@ -0,0 +1,231 @@
|
|
|
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
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'GetDataCollectionRuleAssociationResult',
|
|
20
|
+
'AwaitableGetDataCollectionRuleAssociationResult',
|
|
21
|
+
'get_data_collection_rule_association',
|
|
22
|
+
'get_data_collection_rule_association_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetDataCollectionRuleAssociationResult:
|
|
27
|
+
"""
|
|
28
|
+
Definition of generic ARM proxy resource.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, azure_api_version=None, data_collection_endpoint_id=None, data_collection_rule_id=None, description=None, etag=None, id=None, metadata=None, name=None, provisioning_state=None, system_data=None, type=None):
|
|
31
|
+
if azure_api_version and not isinstance(azure_api_version, str):
|
|
32
|
+
raise TypeError("Expected argument 'azure_api_version' to be a str")
|
|
33
|
+
pulumi.set(__self__, "azure_api_version", azure_api_version)
|
|
34
|
+
if data_collection_endpoint_id and not isinstance(data_collection_endpoint_id, str):
|
|
35
|
+
raise TypeError("Expected argument 'data_collection_endpoint_id' to be a str")
|
|
36
|
+
pulumi.set(__self__, "data_collection_endpoint_id", data_collection_endpoint_id)
|
|
37
|
+
if data_collection_rule_id and not isinstance(data_collection_rule_id, str):
|
|
38
|
+
raise TypeError("Expected argument 'data_collection_rule_id' to be a str")
|
|
39
|
+
pulumi.set(__self__, "data_collection_rule_id", data_collection_rule_id)
|
|
40
|
+
if description and not isinstance(description, str):
|
|
41
|
+
raise TypeError("Expected argument 'description' to be a str")
|
|
42
|
+
pulumi.set(__self__, "description", description)
|
|
43
|
+
if etag and not isinstance(etag, str):
|
|
44
|
+
raise TypeError("Expected argument 'etag' to be a str")
|
|
45
|
+
pulumi.set(__self__, "etag", etag)
|
|
46
|
+
if id and not isinstance(id, str):
|
|
47
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
48
|
+
pulumi.set(__self__, "id", id)
|
|
49
|
+
if metadata and not isinstance(metadata, dict):
|
|
50
|
+
raise TypeError("Expected argument 'metadata' to be a dict")
|
|
51
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
52
|
+
if name and not isinstance(name, str):
|
|
53
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
54
|
+
pulumi.set(__self__, "name", name)
|
|
55
|
+
if provisioning_state and not isinstance(provisioning_state, str):
|
|
56
|
+
raise TypeError("Expected argument 'provisioning_state' to be a str")
|
|
57
|
+
pulumi.set(__self__, "provisioning_state", provisioning_state)
|
|
58
|
+
if system_data and not isinstance(system_data, dict):
|
|
59
|
+
raise TypeError("Expected argument 'system_data' to be a dict")
|
|
60
|
+
pulumi.set(__self__, "system_data", system_data)
|
|
61
|
+
if type and not isinstance(type, str):
|
|
62
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
63
|
+
pulumi.set(__self__, "type", type)
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
@pulumi.getter(name="azureApiVersion")
|
|
67
|
+
def azure_api_version(self) -> str:
|
|
68
|
+
"""
|
|
69
|
+
The Azure API version of the resource.
|
|
70
|
+
"""
|
|
71
|
+
return pulumi.get(self, "azure_api_version")
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
@pulumi.getter(name="dataCollectionEndpointId")
|
|
75
|
+
def data_collection_endpoint_id(self) -> Optional[str]:
|
|
76
|
+
"""
|
|
77
|
+
The resource ID of the data collection endpoint that is to be associated.
|
|
78
|
+
"""
|
|
79
|
+
return pulumi.get(self, "data_collection_endpoint_id")
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter(name="dataCollectionRuleId")
|
|
83
|
+
def data_collection_rule_id(self) -> Optional[str]:
|
|
84
|
+
"""
|
|
85
|
+
The resource ID of the data collection rule that is to be associated.
|
|
86
|
+
"""
|
|
87
|
+
return pulumi.get(self, "data_collection_rule_id")
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
@pulumi.getter
|
|
91
|
+
def description(self) -> Optional[str]:
|
|
92
|
+
"""
|
|
93
|
+
Description of the association.
|
|
94
|
+
"""
|
|
95
|
+
return pulumi.get(self, "description")
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
@pulumi.getter
|
|
99
|
+
def etag(self) -> str:
|
|
100
|
+
"""
|
|
101
|
+
Resource entity tag (ETag).
|
|
102
|
+
"""
|
|
103
|
+
return pulumi.get(self, "etag")
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
@pulumi.getter
|
|
107
|
+
def id(self) -> str:
|
|
108
|
+
"""
|
|
109
|
+
Fully qualified ID of the resource.
|
|
110
|
+
"""
|
|
111
|
+
return pulumi.get(self, "id")
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
@pulumi.getter
|
|
115
|
+
def metadata(self) -> 'outputs.DataCollectionRuleAssociationResponseMetadata':
|
|
116
|
+
"""
|
|
117
|
+
Metadata about the resource
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "metadata")
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
@pulumi.getter
|
|
123
|
+
def name(self) -> str:
|
|
124
|
+
"""
|
|
125
|
+
The name of the resource.
|
|
126
|
+
"""
|
|
127
|
+
return pulumi.get(self, "name")
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter(name="provisioningState")
|
|
131
|
+
def provisioning_state(self) -> str:
|
|
132
|
+
"""
|
|
133
|
+
The resource provisioning state.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "provisioning_state")
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
@pulumi.getter(name="systemData")
|
|
139
|
+
def system_data(self) -> 'outputs.DataCollectionRuleAssociationProxyOnlyResourceResponseSystemData':
|
|
140
|
+
"""
|
|
141
|
+
Metadata pertaining to creation and last modification of the resource.
|
|
142
|
+
"""
|
|
143
|
+
return pulumi.get(self, "system_data")
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
@pulumi.getter
|
|
147
|
+
def type(self) -> str:
|
|
148
|
+
"""
|
|
149
|
+
The type of the resource.
|
|
150
|
+
"""
|
|
151
|
+
return pulumi.get(self, "type")
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
class AwaitableGetDataCollectionRuleAssociationResult(GetDataCollectionRuleAssociationResult):
|
|
155
|
+
# pylint: disable=using-constant-test
|
|
156
|
+
def __await__(self):
|
|
157
|
+
if False:
|
|
158
|
+
yield self
|
|
159
|
+
return GetDataCollectionRuleAssociationResult(
|
|
160
|
+
azure_api_version=self.azure_api_version,
|
|
161
|
+
data_collection_endpoint_id=self.data_collection_endpoint_id,
|
|
162
|
+
data_collection_rule_id=self.data_collection_rule_id,
|
|
163
|
+
description=self.description,
|
|
164
|
+
etag=self.etag,
|
|
165
|
+
id=self.id,
|
|
166
|
+
metadata=self.metadata,
|
|
167
|
+
name=self.name,
|
|
168
|
+
provisioning_state=self.provisioning_state,
|
|
169
|
+
system_data=self.system_data,
|
|
170
|
+
type=self.type)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
def get_data_collection_rule_association(association_name: Optional[str] = None,
|
|
174
|
+
resource_uri: Optional[str] = None,
|
|
175
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDataCollectionRuleAssociationResult:
|
|
176
|
+
"""
|
|
177
|
+
Definition of generic ARM proxy resource.
|
|
178
|
+
|
|
179
|
+
Uses Azure REST API version 2022-06-01.
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
:param str association_name: The name of the association. The name is case insensitive.
|
|
183
|
+
:param str resource_uri: The identifier of the resource.
|
|
184
|
+
"""
|
|
185
|
+
__args__ = dict()
|
|
186
|
+
__args__['associationName'] = association_name
|
|
187
|
+
__args__['resourceUri'] = resource_uri
|
|
188
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
189
|
+
__ret__ = pulumi.runtime.invoke('azure-native:monitor:getDataCollectionRuleAssociation', __args__, opts=opts, typ=GetDataCollectionRuleAssociationResult).value
|
|
190
|
+
|
|
191
|
+
return AwaitableGetDataCollectionRuleAssociationResult(
|
|
192
|
+
azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
|
|
193
|
+
data_collection_endpoint_id=pulumi.get(__ret__, 'data_collection_endpoint_id'),
|
|
194
|
+
data_collection_rule_id=pulumi.get(__ret__, 'data_collection_rule_id'),
|
|
195
|
+
description=pulumi.get(__ret__, 'description'),
|
|
196
|
+
etag=pulumi.get(__ret__, 'etag'),
|
|
197
|
+
id=pulumi.get(__ret__, 'id'),
|
|
198
|
+
metadata=pulumi.get(__ret__, 'metadata'),
|
|
199
|
+
name=pulumi.get(__ret__, 'name'),
|
|
200
|
+
provisioning_state=pulumi.get(__ret__, 'provisioning_state'),
|
|
201
|
+
system_data=pulumi.get(__ret__, 'system_data'),
|
|
202
|
+
type=pulumi.get(__ret__, 'type'))
|
|
203
|
+
def get_data_collection_rule_association_output(association_name: Optional[pulumi.Input[str]] = None,
|
|
204
|
+
resource_uri: Optional[pulumi.Input[str]] = None,
|
|
205
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDataCollectionRuleAssociationResult]:
|
|
206
|
+
"""
|
|
207
|
+
Definition of generic ARM proxy resource.
|
|
208
|
+
|
|
209
|
+
Uses Azure REST API version 2022-06-01.
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:param str association_name: The name of the association. The name is case insensitive.
|
|
213
|
+
:param str resource_uri: The identifier of the resource.
|
|
214
|
+
"""
|
|
215
|
+
__args__ = dict()
|
|
216
|
+
__args__['associationName'] = association_name
|
|
217
|
+
__args__['resourceUri'] = resource_uri
|
|
218
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
219
|
+
__ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getDataCollectionRuleAssociation', __args__, opts=opts, typ=GetDataCollectionRuleAssociationResult)
|
|
220
|
+
return __ret__.apply(lambda __response__: GetDataCollectionRuleAssociationResult(
|
|
221
|
+
azure_api_version=pulumi.get(__response__, 'azure_api_version'),
|
|
222
|
+
data_collection_endpoint_id=pulumi.get(__response__, 'data_collection_endpoint_id'),
|
|
223
|
+
data_collection_rule_id=pulumi.get(__response__, 'data_collection_rule_id'),
|
|
224
|
+
description=pulumi.get(__response__, 'description'),
|
|
225
|
+
etag=pulumi.get(__response__, 'etag'),
|
|
226
|
+
id=pulumi.get(__response__, 'id'),
|
|
227
|
+
metadata=pulumi.get(__response__, 'metadata'),
|
|
228
|
+
name=pulumi.get(__response__, 'name'),
|
|
229
|
+
provisioning_state=pulumi.get(__response__, 'provisioning_state'),
|
|
230
|
+
system_data=pulumi.get(__response__, 'system_data'),
|
|
231
|
+
type=pulumi.get(__response__, 'type')))
|