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.

Files changed (28) hide show
  1. pulumi_azure_native/__init__.py +5 -0
  2. pulumi_azure_native/monitor/__init__.py +10 -0
  3. pulumi_azure_native/monitor/_enums.py +204 -0
  4. pulumi_azure_native/monitor/_inputs.py +4241 -851
  5. pulumi_azure_native/monitor/action_group.py +9 -9
  6. pulumi_azure_native/monitor/activity_log_alert.py +388 -0
  7. pulumi_azure_native/monitor/data_collection_endpoint.py +468 -0
  8. pulumi_azure_native/monitor/data_collection_rule.py +519 -0
  9. pulumi_azure_native/monitor/data_collection_rule_association.py +300 -0
  10. pulumi_azure_native/monitor/get_action_group.py +2 -2
  11. pulumi_azure_native/monitor/get_activity_log_alert.py +231 -0
  12. pulumi_azure_native/monitor/get_data_collection_endpoint.py +357 -0
  13. pulumi_azure_native/monitor/get_data_collection_rule.py +344 -0
  14. pulumi_azure_native/monitor/get_data_collection_rule_association.py +231 -0
  15. pulumi_azure_native/monitor/get_metric_alert.py +343 -0
  16. pulumi_azure_native/monitor/get_private_endpoint_connection.py +4 -0
  17. pulumi_azure_native/monitor/get_private_link_scope.py +4 -0
  18. pulumi_azure_native/monitor/get_private_link_scoped_resource.py +4 -0
  19. pulumi_azure_native/monitor/metric_alert.py +578 -0
  20. pulumi_azure_native/monitor/outputs.py +4276 -743
  21. pulumi_azure_native/monitor/private_endpoint_connection.py +4 -0
  22. pulumi_azure_native/monitor/private_link_scope.py +4 -0
  23. pulumi_azure_native/monitor/private_link_scoped_resource.py +4 -0
  24. pulumi_azure_native/pulumi-plugin.json +1 -1
  25. {pulumi_azure_native-3.1.0a1744023970.dist-info → pulumi_azure_native-3.1.0a1744104520.dist-info}/METADATA +1 -1
  26. {pulumi_azure_native-3.1.0a1744023970.dist-info → pulumi_azure_native-3.1.0a1744104520.dist-info}/RECORD +28 -18
  27. {pulumi_azure_native-3.1.0a1744023970.dist-info → pulumi_azure_native-3.1.0a1744104520.dist-info}/WHEEL +0 -0
  28. {pulumi_azure_native-3.1.0a1744023970.dist-info → pulumi_azure_native-3.1.0a1744104520.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,300 @@
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__ = ['DataCollectionRuleAssociationArgs', 'DataCollectionRuleAssociation']
19
+
20
+ @pulumi.input_type
21
+ class DataCollectionRuleAssociationArgs:
22
+ def __init__(__self__, *,
23
+ resource_uri: pulumi.Input[str],
24
+ association_name: Optional[pulumi.Input[str]] = None,
25
+ data_collection_endpoint_id: Optional[pulumi.Input[str]] = None,
26
+ data_collection_rule_id: Optional[pulumi.Input[str]] = None,
27
+ description: Optional[pulumi.Input[str]] = None):
28
+ """
29
+ The set of arguments for constructing a DataCollectionRuleAssociation resource.
30
+ :param pulumi.Input[str] resource_uri: The identifier of the resource.
31
+ :param pulumi.Input[str] association_name: The name of the association. The name is case insensitive.
32
+ :param pulumi.Input[str] data_collection_endpoint_id: The resource ID of the data collection endpoint that is to be associated.
33
+ :param pulumi.Input[str] data_collection_rule_id: The resource ID of the data collection rule that is to be associated.
34
+ :param pulumi.Input[str] description: Description of the association.
35
+ """
36
+ pulumi.set(__self__, "resource_uri", resource_uri)
37
+ if association_name is not None:
38
+ pulumi.set(__self__, "association_name", association_name)
39
+ if data_collection_endpoint_id is not None:
40
+ pulumi.set(__self__, "data_collection_endpoint_id", data_collection_endpoint_id)
41
+ if data_collection_rule_id is not None:
42
+ pulumi.set(__self__, "data_collection_rule_id", data_collection_rule_id)
43
+ if description is not None:
44
+ pulumi.set(__self__, "description", description)
45
+
46
+ @property
47
+ @pulumi.getter(name="resourceUri")
48
+ def resource_uri(self) -> pulumi.Input[str]:
49
+ """
50
+ The identifier of the resource.
51
+ """
52
+ return pulumi.get(self, "resource_uri")
53
+
54
+ @resource_uri.setter
55
+ def resource_uri(self, value: pulumi.Input[str]):
56
+ pulumi.set(self, "resource_uri", value)
57
+
58
+ @property
59
+ @pulumi.getter(name="associationName")
60
+ def association_name(self) -> Optional[pulumi.Input[str]]:
61
+ """
62
+ The name of the association. The name is case insensitive.
63
+ """
64
+ return pulumi.get(self, "association_name")
65
+
66
+ @association_name.setter
67
+ def association_name(self, value: Optional[pulumi.Input[str]]):
68
+ pulumi.set(self, "association_name", value)
69
+
70
+ @property
71
+ @pulumi.getter(name="dataCollectionEndpointId")
72
+ def data_collection_endpoint_id(self) -> Optional[pulumi.Input[str]]:
73
+ """
74
+ The resource ID of the data collection endpoint that is to be associated.
75
+ """
76
+ return pulumi.get(self, "data_collection_endpoint_id")
77
+
78
+ @data_collection_endpoint_id.setter
79
+ def data_collection_endpoint_id(self, value: Optional[pulumi.Input[str]]):
80
+ pulumi.set(self, "data_collection_endpoint_id", value)
81
+
82
+ @property
83
+ @pulumi.getter(name="dataCollectionRuleId")
84
+ def data_collection_rule_id(self) -> Optional[pulumi.Input[str]]:
85
+ """
86
+ The resource ID of the data collection rule that is to be associated.
87
+ """
88
+ return pulumi.get(self, "data_collection_rule_id")
89
+
90
+ @data_collection_rule_id.setter
91
+ def data_collection_rule_id(self, value: Optional[pulumi.Input[str]]):
92
+ pulumi.set(self, "data_collection_rule_id", value)
93
+
94
+ @property
95
+ @pulumi.getter
96
+ def description(self) -> Optional[pulumi.Input[str]]:
97
+ """
98
+ Description of the association.
99
+ """
100
+ return pulumi.get(self, "description")
101
+
102
+ @description.setter
103
+ def description(self, value: Optional[pulumi.Input[str]]):
104
+ pulumi.set(self, "description", value)
105
+
106
+
107
+ class DataCollectionRuleAssociation(pulumi.CustomResource):
108
+ @overload
109
+ def __init__(__self__,
110
+ resource_name: str,
111
+ opts: Optional[pulumi.ResourceOptions] = None,
112
+ association_name: Optional[pulumi.Input[str]] = None,
113
+ data_collection_endpoint_id: Optional[pulumi.Input[str]] = None,
114
+ data_collection_rule_id: Optional[pulumi.Input[str]] = None,
115
+ description: Optional[pulumi.Input[str]] = None,
116
+ resource_uri: Optional[pulumi.Input[str]] = None,
117
+ __props__=None):
118
+ """
119
+ Definition of generic ARM proxy resource.
120
+
121
+ Uses Azure REST API version 2022-06-01.
122
+
123
+ :param str resource_name: The name of the resource.
124
+ :param pulumi.ResourceOptions opts: Options for the resource.
125
+ :param pulumi.Input[str] association_name: The name of the association. The name is case insensitive.
126
+ :param pulumi.Input[str] data_collection_endpoint_id: The resource ID of the data collection endpoint that is to be associated.
127
+ :param pulumi.Input[str] data_collection_rule_id: The resource ID of the data collection rule that is to be associated.
128
+ :param pulumi.Input[str] description: Description of the association.
129
+ :param pulumi.Input[str] resource_uri: The identifier of the resource.
130
+ """
131
+ ...
132
+ @overload
133
+ def __init__(__self__,
134
+ resource_name: str,
135
+ args: DataCollectionRuleAssociationArgs,
136
+ opts: Optional[pulumi.ResourceOptions] = None):
137
+ """
138
+ Definition of generic ARM proxy resource.
139
+
140
+ Uses Azure REST API version 2022-06-01.
141
+
142
+ :param str resource_name: The name of the resource.
143
+ :param DataCollectionRuleAssociationArgs args: The arguments to use to populate this resource's properties.
144
+ :param pulumi.ResourceOptions opts: Options for the resource.
145
+ """
146
+ ...
147
+ def __init__(__self__, resource_name: str, *args, **kwargs):
148
+ resource_args, opts = _utilities.get_resource_args_opts(DataCollectionRuleAssociationArgs, pulumi.ResourceOptions, *args, **kwargs)
149
+ if resource_args is not None:
150
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
151
+ else:
152
+ __self__._internal_init(resource_name, *args, **kwargs)
153
+
154
+ def _internal_init(__self__,
155
+ resource_name: str,
156
+ opts: Optional[pulumi.ResourceOptions] = None,
157
+ association_name: Optional[pulumi.Input[str]] = None,
158
+ data_collection_endpoint_id: Optional[pulumi.Input[str]] = None,
159
+ data_collection_rule_id: Optional[pulumi.Input[str]] = None,
160
+ description: Optional[pulumi.Input[str]] = None,
161
+ resource_uri: Optional[pulumi.Input[str]] = None,
162
+ __props__=None):
163
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
164
+ if not isinstance(opts, pulumi.ResourceOptions):
165
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
166
+ if opts.id is None:
167
+ if __props__ is not None:
168
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
169
+ __props__ = DataCollectionRuleAssociationArgs.__new__(DataCollectionRuleAssociationArgs)
170
+
171
+ __props__.__dict__["association_name"] = association_name
172
+ __props__.__dict__["data_collection_endpoint_id"] = data_collection_endpoint_id
173
+ __props__.__dict__["data_collection_rule_id"] = data_collection_rule_id
174
+ __props__.__dict__["description"] = description
175
+ if resource_uri is None and not opts.urn:
176
+ raise TypeError("Missing required property 'resource_uri'")
177
+ __props__.__dict__["resource_uri"] = resource_uri
178
+ __props__.__dict__["azure_api_version"] = None
179
+ __props__.__dict__["etag"] = None
180
+ __props__.__dict__["metadata"] = None
181
+ __props__.__dict__["name"] = None
182
+ __props__.__dict__["provisioning_state"] = None
183
+ __props__.__dict__["system_data"] = None
184
+ __props__.__dict__["type"] = None
185
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:insights/v20220601:DataCollectionRuleAssociation"), pulumi.Alias(type_="azure-native:insights/v20230311:DataCollectionRuleAssociation"), pulumi.Alias(type_="azure-native:insights:DataCollectionRuleAssociation"), pulumi.Alias(type_="azure-native:monitor/v20191101preview:DataCollectionRuleAssociation"), pulumi.Alias(type_="azure-native:monitor/v20210401:DataCollectionRuleAssociation"), pulumi.Alias(type_="azure-native:monitor/v20210901preview:DataCollectionRuleAssociation"), pulumi.Alias(type_="azure-native:monitor/v20220601:DataCollectionRuleAssociation"), pulumi.Alias(type_="azure-native:monitor/v20230311:DataCollectionRuleAssociation")])
186
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
187
+ super(DataCollectionRuleAssociation, __self__).__init__(
188
+ 'azure-native:monitor:DataCollectionRuleAssociation',
189
+ resource_name,
190
+ __props__,
191
+ opts)
192
+
193
+ @staticmethod
194
+ def get(resource_name: str,
195
+ id: pulumi.Input[str],
196
+ opts: Optional[pulumi.ResourceOptions] = None) -> 'DataCollectionRuleAssociation':
197
+ """
198
+ Get an existing DataCollectionRuleAssociation resource's state with the given name, id, and optional extra
199
+ properties used to qualify the lookup.
200
+
201
+ :param str resource_name: The unique name of the resulting resource.
202
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
203
+ :param pulumi.ResourceOptions opts: Options for the resource.
204
+ """
205
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
206
+
207
+ __props__ = DataCollectionRuleAssociationArgs.__new__(DataCollectionRuleAssociationArgs)
208
+
209
+ __props__.__dict__["azure_api_version"] = None
210
+ __props__.__dict__["data_collection_endpoint_id"] = None
211
+ __props__.__dict__["data_collection_rule_id"] = None
212
+ __props__.__dict__["description"] = None
213
+ __props__.__dict__["etag"] = None
214
+ __props__.__dict__["metadata"] = None
215
+ __props__.__dict__["name"] = None
216
+ __props__.__dict__["provisioning_state"] = None
217
+ __props__.__dict__["system_data"] = None
218
+ __props__.__dict__["type"] = None
219
+ return DataCollectionRuleAssociation(resource_name, opts=opts, __props__=__props__)
220
+
221
+ @property
222
+ @pulumi.getter(name="azureApiVersion")
223
+ def azure_api_version(self) -> pulumi.Output[str]:
224
+ """
225
+ The Azure API version of the resource.
226
+ """
227
+ return pulumi.get(self, "azure_api_version")
228
+
229
+ @property
230
+ @pulumi.getter(name="dataCollectionEndpointId")
231
+ def data_collection_endpoint_id(self) -> pulumi.Output[Optional[str]]:
232
+ """
233
+ The resource ID of the data collection endpoint that is to be associated.
234
+ """
235
+ return pulumi.get(self, "data_collection_endpoint_id")
236
+
237
+ @property
238
+ @pulumi.getter(name="dataCollectionRuleId")
239
+ def data_collection_rule_id(self) -> pulumi.Output[Optional[str]]:
240
+ """
241
+ The resource ID of the data collection rule that is to be associated.
242
+ """
243
+ return pulumi.get(self, "data_collection_rule_id")
244
+
245
+ @property
246
+ @pulumi.getter
247
+ def description(self) -> pulumi.Output[Optional[str]]:
248
+ """
249
+ Description of the association.
250
+ """
251
+ return pulumi.get(self, "description")
252
+
253
+ @property
254
+ @pulumi.getter
255
+ def etag(self) -> pulumi.Output[str]:
256
+ """
257
+ Resource entity tag (ETag).
258
+ """
259
+ return pulumi.get(self, "etag")
260
+
261
+ @property
262
+ @pulumi.getter
263
+ def metadata(self) -> pulumi.Output['outputs.DataCollectionRuleAssociationResponseMetadata']:
264
+ """
265
+ Metadata about the resource
266
+ """
267
+ return pulumi.get(self, "metadata")
268
+
269
+ @property
270
+ @pulumi.getter
271
+ def name(self) -> pulumi.Output[str]:
272
+ """
273
+ The name of the resource.
274
+ """
275
+ return pulumi.get(self, "name")
276
+
277
+ @property
278
+ @pulumi.getter(name="provisioningState")
279
+ def provisioning_state(self) -> pulumi.Output[str]:
280
+ """
281
+ The resource provisioning state.
282
+ """
283
+ return pulumi.get(self, "provisioning_state")
284
+
285
+ @property
286
+ @pulumi.getter(name="systemData")
287
+ def system_data(self) -> pulumi.Output['outputs.DataCollectionRuleAssociationProxyOnlyResourceResponseSystemData']:
288
+ """
289
+ Metadata pertaining to creation and last modification of the resource.
290
+ """
291
+ return pulumi.get(self, "system_data")
292
+
293
+ @property
294
+ @pulumi.getter
295
+ def type(self) -> pulumi.Output[str]:
296
+ """
297
+ The type of the resource.
298
+ """
299
+ return pulumi.get(self, "type")
300
+
@@ -298,7 +298,7 @@ def get_action_group(action_group_name: Optional[str] = None,
298
298
 
299
299
  Uses Azure REST API version 2024-10-01-preview.
300
300
 
301
- Other available API versions: 2023-09-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
301
+ Other available API versions: 2018-03-01, 2022-06-01, 2023-09-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
302
302
 
303
303
 
304
304
  :param str action_group_name: The name of the action group.
@@ -340,7 +340,7 @@ def get_action_group_output(action_group_name: Optional[pulumi.Input[str]] = Non
340
340
 
341
341
  Uses Azure REST API version 2024-10-01-preview.
342
342
 
343
- Other available API versions: 2023-09-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
343
+ Other available API versions: 2018-03-01, 2022-06-01, 2023-09-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native monitor [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
344
344
 
345
345
 
346
346
  :param str action_group_name: The name of the action group.
@@ -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
+ 'GetActivityLogAlertResult',
20
+ 'AwaitableGetActivityLogAlertResult',
21
+ 'get_activity_log_alert',
22
+ 'get_activity_log_alert_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetActivityLogAlertResult:
27
+ """
28
+ An Activity Log Alert rule resource.
29
+ """
30
+ def __init__(__self__, actions=None, azure_api_version=None, condition=None, description=None, enabled=None, id=None, location=None, name=None, scopes=None, tags=None, type=None):
31
+ if actions and not isinstance(actions, dict):
32
+ raise TypeError("Expected argument 'actions' to be a dict")
33
+ pulumi.set(__self__, "actions", actions)
34
+ if azure_api_version and not isinstance(azure_api_version, str):
35
+ raise TypeError("Expected argument 'azure_api_version' to be a str")
36
+ pulumi.set(__self__, "azure_api_version", azure_api_version)
37
+ if condition and not isinstance(condition, dict):
38
+ raise TypeError("Expected argument 'condition' to be a dict")
39
+ pulumi.set(__self__, "condition", condition)
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 enabled and not isinstance(enabled, bool):
44
+ raise TypeError("Expected argument 'enabled' to be a bool")
45
+ pulumi.set(__self__, "enabled", enabled)
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 location and not isinstance(location, str):
50
+ raise TypeError("Expected argument 'location' to be a str")
51
+ pulumi.set(__self__, "location", location)
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 scopes and not isinstance(scopes, list):
56
+ raise TypeError("Expected argument 'scopes' to be a list")
57
+ pulumi.set(__self__, "scopes", scopes)
58
+ if tags and not isinstance(tags, dict):
59
+ raise TypeError("Expected argument 'tags' to be a dict")
60
+ pulumi.set(__self__, "tags", tags)
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
67
+ def actions(self) -> 'outputs.ActionListResponse':
68
+ """
69
+ The actions that will activate when the condition is met.
70
+ """
71
+ return pulumi.get(self, "actions")
72
+
73
+ @property
74
+ @pulumi.getter(name="azureApiVersion")
75
+ def azure_api_version(self) -> str:
76
+ """
77
+ The Azure API version of the resource.
78
+ """
79
+ return pulumi.get(self, "azure_api_version")
80
+
81
+ @property
82
+ @pulumi.getter
83
+ def condition(self) -> 'outputs.AlertRuleAllOfConditionResponse':
84
+ """
85
+ The condition that will cause this alert to activate.
86
+ """
87
+ return pulumi.get(self, "condition")
88
+
89
+ @property
90
+ @pulumi.getter
91
+ def description(self) -> Optional[str]:
92
+ """
93
+ A description of this Activity Log Alert rule.
94
+ """
95
+ return pulumi.get(self, "description")
96
+
97
+ @property
98
+ @pulumi.getter
99
+ def enabled(self) -> Optional[bool]:
100
+ """
101
+ Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.
102
+ """
103
+ return pulumi.get(self, "enabled")
104
+
105
+ @property
106
+ @pulumi.getter
107
+ def id(self) -> str:
108
+ """
109
+ The resource Id.
110
+ """
111
+ return pulumi.get(self, "id")
112
+
113
+ @property
114
+ @pulumi.getter
115
+ def location(self) -> Optional[str]:
116
+ """
117
+ The location of the resource. Azure Activity Log Alert rules are supported on Global, West Europe and North Europe regions.
118
+ """
119
+ return pulumi.get(self, "location")
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
131
+ def scopes(self) -> Sequence[str]:
132
+ """
133
+ A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.
134
+ """
135
+ return pulumi.get(self, "scopes")
136
+
137
+ @property
138
+ @pulumi.getter
139
+ def tags(self) -> Optional[Mapping[str, str]]:
140
+ """
141
+ The tags of the resource.
142
+ """
143
+ return pulumi.get(self, "tags")
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 AwaitableGetActivityLogAlertResult(GetActivityLogAlertResult):
155
+ # pylint: disable=using-constant-test
156
+ def __await__(self):
157
+ if False:
158
+ yield self
159
+ return GetActivityLogAlertResult(
160
+ actions=self.actions,
161
+ azure_api_version=self.azure_api_version,
162
+ condition=self.condition,
163
+ description=self.description,
164
+ enabled=self.enabled,
165
+ id=self.id,
166
+ location=self.location,
167
+ name=self.name,
168
+ scopes=self.scopes,
169
+ tags=self.tags,
170
+ type=self.type)
171
+
172
+
173
+ def get_activity_log_alert(activity_log_alert_name: Optional[str] = None,
174
+ resource_group_name: Optional[str] = None,
175
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetActivityLogAlertResult:
176
+ """
177
+ Get an Activity Log Alert rule.
178
+
179
+ Uses Azure REST API version 2020-10-01.
180
+
181
+
182
+ :param str activity_log_alert_name: The name of the Activity Log Alert rule.
183
+ :param str resource_group_name: The name of the resource group. The name is case insensitive.
184
+ """
185
+ __args__ = dict()
186
+ __args__['activityLogAlertName'] = activity_log_alert_name
187
+ __args__['resourceGroupName'] = resource_group_name
188
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
189
+ __ret__ = pulumi.runtime.invoke('azure-native:monitor:getActivityLogAlert', __args__, opts=opts, typ=GetActivityLogAlertResult).value
190
+
191
+ return AwaitableGetActivityLogAlertResult(
192
+ actions=pulumi.get(__ret__, 'actions'),
193
+ azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
194
+ condition=pulumi.get(__ret__, 'condition'),
195
+ description=pulumi.get(__ret__, 'description'),
196
+ enabled=pulumi.get(__ret__, 'enabled'),
197
+ id=pulumi.get(__ret__, 'id'),
198
+ location=pulumi.get(__ret__, 'location'),
199
+ name=pulumi.get(__ret__, 'name'),
200
+ scopes=pulumi.get(__ret__, 'scopes'),
201
+ tags=pulumi.get(__ret__, 'tags'),
202
+ type=pulumi.get(__ret__, 'type'))
203
+ def get_activity_log_alert_output(activity_log_alert_name: Optional[pulumi.Input[str]] = None,
204
+ resource_group_name: Optional[pulumi.Input[str]] = None,
205
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetActivityLogAlertResult]:
206
+ """
207
+ Get an Activity Log Alert rule.
208
+
209
+ Uses Azure REST API version 2020-10-01.
210
+
211
+
212
+ :param str activity_log_alert_name: The name of the Activity Log Alert rule.
213
+ :param str resource_group_name: The name of the resource group. The name is case insensitive.
214
+ """
215
+ __args__ = dict()
216
+ __args__['activityLogAlertName'] = activity_log_alert_name
217
+ __args__['resourceGroupName'] = resource_group_name
218
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
219
+ __ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getActivityLogAlert', __args__, opts=opts, typ=GetActivityLogAlertResult)
220
+ return __ret__.apply(lambda __response__: GetActivityLogAlertResult(
221
+ actions=pulumi.get(__response__, 'actions'),
222
+ azure_api_version=pulumi.get(__response__, 'azure_api_version'),
223
+ condition=pulumi.get(__response__, 'condition'),
224
+ description=pulumi.get(__response__, 'description'),
225
+ enabled=pulumi.get(__response__, 'enabled'),
226
+ id=pulumi.get(__response__, 'id'),
227
+ location=pulumi.get(__response__, 'location'),
228
+ name=pulumi.get(__response__, 'name'),
229
+ scopes=pulumi.get(__response__, 'scopes'),
230
+ tags=pulumi.get(__response__, 'tags'),
231
+ type=pulumi.get(__response__, 'type')))