pulumi-azure-native 2.78.0__py3-none-any.whl → 2.78.0a1734002667__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 +16 -0
- pulumi_azure_native/alertsmanagement/__init__.py +6 -0
- pulumi_azure_native/alertsmanagement/action_rule_by_name.py +1 -1
- pulumi_azure_native/alertsmanagement/alert_processing_rule_by_name.py +5 -1
- pulumi_azure_native/alertsmanagement/get_alert_processing_rule_by_name.py +4 -0
- pulumi_azure_native/alertsmanagement/v20190505preview/action_rule_by_name.py +1 -1
- pulumi_azure_native/alertsmanagement/v20210808/alert_processing_rule_by_name.py +1 -1
- pulumi_azure_native/alertsmanagement/v20230501preview/__init__.py +12 -0
- pulumi_azure_native/alertsmanagement/v20230501preview/_enums.py +80 -0
- pulumi_azure_native/alertsmanagement/v20230501preview/_inputs.py +868 -0
- pulumi_azure_native/alertsmanagement/v20230501preview/alert_processing_rule_by_name.py +258 -0
- pulumi_azure_native/alertsmanagement/v20230501preview/get_alert_processing_rule_by_name.py +171 -0
- pulumi_azure_native/alertsmanagement/v20230501preview/outputs.py +795 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/__init__.py +12 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/_enums.py +88 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/_inputs.py +965 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/alert_processing_rule_by_name.py +258 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/get_alert_processing_rule_by_name.py +171 -0
- pulumi_azure_native/alertsmanagement/v20240301preview/outputs.py +877 -0
- pulumi_azure_native/pulumi-plugin.json +1 -1
- {pulumi_azure_native-2.78.0.dist-info → pulumi_azure_native-2.78.0a1734002667.dist-info}/METADATA +3 -3
- {pulumi_azure_native-2.78.0.dist-info → pulumi_azure_native-2.78.0a1734002667.dist-info}/RECORD +24 -12
- {pulumi_azure_native-2.78.0.dist-info → pulumi_azure_native-2.78.0a1734002667.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-2.78.0.dist-info → pulumi_azure_native-2.78.0a1734002667.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,258 @@
|
|
|
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__ = ['AlertProcessingRuleByNameArgs', 'AlertProcessingRuleByName']
|
|
21
|
+
|
|
22
|
+
@pulumi.input_type
|
|
23
|
+
class AlertProcessingRuleByNameArgs:
|
|
24
|
+
def __init__(__self__, *,
|
|
25
|
+
resource_group_name: pulumi.Input[str],
|
|
26
|
+
alert_processing_rule_name: Optional[pulumi.Input[str]] = None,
|
|
27
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
28
|
+
properties: Optional[pulumi.Input['AlertProcessingRulePropertiesArgs']] = None,
|
|
29
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
|
|
30
|
+
"""
|
|
31
|
+
The set of arguments for constructing a AlertProcessingRuleByName resource.
|
|
32
|
+
:param pulumi.Input[str] resource_group_name: Resource group name where the resource is created.
|
|
33
|
+
:param pulumi.Input[str] alert_processing_rule_name: The name of the alert processing rule that needs to be created/updated.
|
|
34
|
+
:param pulumi.Input[str] location: Resource location
|
|
35
|
+
:param pulumi.Input['AlertProcessingRulePropertiesArgs'] properties: Alert processing rule properties.
|
|
36
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags
|
|
37
|
+
"""
|
|
38
|
+
pulumi.set(__self__, "resource_group_name", resource_group_name)
|
|
39
|
+
if alert_processing_rule_name is not None:
|
|
40
|
+
pulumi.set(__self__, "alert_processing_rule_name", alert_processing_rule_name)
|
|
41
|
+
if location is not None:
|
|
42
|
+
pulumi.set(__self__, "location", location)
|
|
43
|
+
if properties is not None:
|
|
44
|
+
pulumi.set(__self__, "properties", properties)
|
|
45
|
+
if tags is not None:
|
|
46
|
+
pulumi.set(__self__, "tags", tags)
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
@pulumi.getter(name="resourceGroupName")
|
|
50
|
+
def resource_group_name(self) -> pulumi.Input[str]:
|
|
51
|
+
"""
|
|
52
|
+
Resource group name where the resource is created.
|
|
53
|
+
"""
|
|
54
|
+
return pulumi.get(self, "resource_group_name")
|
|
55
|
+
|
|
56
|
+
@resource_group_name.setter
|
|
57
|
+
def resource_group_name(self, value: pulumi.Input[str]):
|
|
58
|
+
pulumi.set(self, "resource_group_name", value)
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
@pulumi.getter(name="alertProcessingRuleName")
|
|
62
|
+
def alert_processing_rule_name(self) -> Optional[pulumi.Input[str]]:
|
|
63
|
+
"""
|
|
64
|
+
The name of the alert processing rule that needs to be created/updated.
|
|
65
|
+
"""
|
|
66
|
+
return pulumi.get(self, "alert_processing_rule_name")
|
|
67
|
+
|
|
68
|
+
@alert_processing_rule_name.setter
|
|
69
|
+
def alert_processing_rule_name(self, value: Optional[pulumi.Input[str]]):
|
|
70
|
+
pulumi.set(self, "alert_processing_rule_name", value)
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
@pulumi.getter
|
|
74
|
+
def location(self) -> Optional[pulumi.Input[str]]:
|
|
75
|
+
"""
|
|
76
|
+
Resource location
|
|
77
|
+
"""
|
|
78
|
+
return pulumi.get(self, "location")
|
|
79
|
+
|
|
80
|
+
@location.setter
|
|
81
|
+
def location(self, value: Optional[pulumi.Input[str]]):
|
|
82
|
+
pulumi.set(self, "location", value)
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
@pulumi.getter
|
|
86
|
+
def properties(self) -> Optional[pulumi.Input['AlertProcessingRulePropertiesArgs']]:
|
|
87
|
+
"""
|
|
88
|
+
Alert processing rule properties.
|
|
89
|
+
"""
|
|
90
|
+
return pulumi.get(self, "properties")
|
|
91
|
+
|
|
92
|
+
@properties.setter
|
|
93
|
+
def properties(self, value: Optional[pulumi.Input['AlertProcessingRulePropertiesArgs']]):
|
|
94
|
+
pulumi.set(self, "properties", value)
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
@pulumi.getter
|
|
98
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
99
|
+
"""
|
|
100
|
+
Resource tags
|
|
101
|
+
"""
|
|
102
|
+
return pulumi.get(self, "tags")
|
|
103
|
+
|
|
104
|
+
@tags.setter
|
|
105
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
106
|
+
pulumi.set(self, "tags", value)
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
class AlertProcessingRuleByName(pulumi.CustomResource):
|
|
110
|
+
@overload
|
|
111
|
+
def __init__(__self__,
|
|
112
|
+
resource_name: str,
|
|
113
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
114
|
+
alert_processing_rule_name: Optional[pulumi.Input[str]] = None,
|
|
115
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
116
|
+
properties: Optional[pulumi.Input[Union['AlertProcessingRulePropertiesArgs', 'AlertProcessingRulePropertiesArgsDict']]] = None,
|
|
117
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
118
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
119
|
+
__props__=None):
|
|
120
|
+
"""
|
|
121
|
+
Alert processing rule object containing target scopes, conditions and scheduling logic.
|
|
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] alert_processing_rule_name: The name of the alert processing rule that needs to be created/updated.
|
|
126
|
+
:param pulumi.Input[str] location: Resource location
|
|
127
|
+
:param pulumi.Input[Union['AlertProcessingRulePropertiesArgs', 'AlertProcessingRulePropertiesArgsDict']] properties: Alert processing rule properties.
|
|
128
|
+
:param pulumi.Input[str] resource_group_name: Resource group name where the resource is created.
|
|
129
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: Resource tags
|
|
130
|
+
"""
|
|
131
|
+
...
|
|
132
|
+
@overload
|
|
133
|
+
def __init__(__self__,
|
|
134
|
+
resource_name: str,
|
|
135
|
+
args: AlertProcessingRuleByNameArgs,
|
|
136
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
137
|
+
"""
|
|
138
|
+
Alert processing rule object containing target scopes, conditions and scheduling logic.
|
|
139
|
+
|
|
140
|
+
:param str resource_name: The name of the resource.
|
|
141
|
+
:param AlertProcessingRuleByNameArgs args: The arguments to use to populate this resource's properties.
|
|
142
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
143
|
+
"""
|
|
144
|
+
...
|
|
145
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
146
|
+
resource_args, opts = _utilities.get_resource_args_opts(AlertProcessingRuleByNameArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
147
|
+
if resource_args is not None:
|
|
148
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
149
|
+
else:
|
|
150
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
151
|
+
|
|
152
|
+
def _internal_init(__self__,
|
|
153
|
+
resource_name: str,
|
|
154
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
155
|
+
alert_processing_rule_name: Optional[pulumi.Input[str]] = None,
|
|
156
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
157
|
+
properties: Optional[pulumi.Input[Union['AlertProcessingRulePropertiesArgs', 'AlertProcessingRulePropertiesArgsDict']]] = None,
|
|
158
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
159
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
160
|
+
__props__=None):
|
|
161
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
162
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
163
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
164
|
+
if opts.id is None:
|
|
165
|
+
if __props__ is not None:
|
|
166
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
167
|
+
__props__ = AlertProcessingRuleByNameArgs.__new__(AlertProcessingRuleByNameArgs)
|
|
168
|
+
|
|
169
|
+
__props__.__dict__["alert_processing_rule_name"] = alert_processing_rule_name
|
|
170
|
+
__props__.__dict__["location"] = location
|
|
171
|
+
__props__.__dict__["properties"] = properties
|
|
172
|
+
if resource_group_name is None and not opts.urn:
|
|
173
|
+
raise TypeError("Missing required property 'resource_group_name'")
|
|
174
|
+
__props__.__dict__["resource_group_name"] = resource_group_name
|
|
175
|
+
__props__.__dict__["tags"] = tags
|
|
176
|
+
__props__.__dict__["name"] = None
|
|
177
|
+
__props__.__dict__["system_data"] = None
|
|
178
|
+
__props__.__dict__["type"] = None
|
|
179
|
+
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:alertsmanagement:AlertProcessingRuleByName"), pulumi.Alias(type_="azure-native:alertsmanagement/v20181102privatepreview:AlertProcessingRuleByName"), pulumi.Alias(type_="azure-native:alertsmanagement/v20190505preview:AlertProcessingRuleByName"), pulumi.Alias(type_="azure-native:alertsmanagement/v20210808:AlertProcessingRuleByName"), pulumi.Alias(type_="azure-native:alertsmanagement/v20210808preview:AlertProcessingRuleByName"), pulumi.Alias(type_="azure-native:alertsmanagement/v20230501preview:AlertProcessingRuleByName")])
|
|
180
|
+
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
|
|
181
|
+
super(AlertProcessingRuleByName, __self__).__init__(
|
|
182
|
+
'azure-native:alertsmanagement/v20240301preview:AlertProcessingRuleByName',
|
|
183
|
+
resource_name,
|
|
184
|
+
__props__,
|
|
185
|
+
opts)
|
|
186
|
+
|
|
187
|
+
@staticmethod
|
|
188
|
+
def get(resource_name: str,
|
|
189
|
+
id: pulumi.Input[str],
|
|
190
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'AlertProcessingRuleByName':
|
|
191
|
+
"""
|
|
192
|
+
Get an existing AlertProcessingRuleByName resource's state with the given name, id, and optional extra
|
|
193
|
+
properties used to qualify the lookup.
|
|
194
|
+
|
|
195
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
196
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
197
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
198
|
+
"""
|
|
199
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
200
|
+
|
|
201
|
+
__props__ = AlertProcessingRuleByNameArgs.__new__(AlertProcessingRuleByNameArgs)
|
|
202
|
+
|
|
203
|
+
__props__.__dict__["location"] = None
|
|
204
|
+
__props__.__dict__["name"] = None
|
|
205
|
+
__props__.__dict__["properties"] = None
|
|
206
|
+
__props__.__dict__["system_data"] = None
|
|
207
|
+
__props__.__dict__["tags"] = None
|
|
208
|
+
__props__.__dict__["type"] = None
|
|
209
|
+
return AlertProcessingRuleByName(resource_name, opts=opts, __props__=__props__)
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
@pulumi.getter
|
|
213
|
+
def location(self) -> pulumi.Output[str]:
|
|
214
|
+
"""
|
|
215
|
+
Resource location
|
|
216
|
+
"""
|
|
217
|
+
return pulumi.get(self, "location")
|
|
218
|
+
|
|
219
|
+
@property
|
|
220
|
+
@pulumi.getter
|
|
221
|
+
def name(self) -> pulumi.Output[str]:
|
|
222
|
+
"""
|
|
223
|
+
Azure resource name
|
|
224
|
+
"""
|
|
225
|
+
return pulumi.get(self, "name")
|
|
226
|
+
|
|
227
|
+
@property
|
|
228
|
+
@pulumi.getter
|
|
229
|
+
def properties(self) -> pulumi.Output['outputs.AlertProcessingRulePropertiesResponse']:
|
|
230
|
+
"""
|
|
231
|
+
Alert processing rule properties.
|
|
232
|
+
"""
|
|
233
|
+
return pulumi.get(self, "properties")
|
|
234
|
+
|
|
235
|
+
@property
|
|
236
|
+
@pulumi.getter(name="systemData")
|
|
237
|
+
def system_data(self) -> pulumi.Output['outputs.SystemDataResponse']:
|
|
238
|
+
"""
|
|
239
|
+
Alert processing rule system data.
|
|
240
|
+
"""
|
|
241
|
+
return pulumi.get(self, "system_data")
|
|
242
|
+
|
|
243
|
+
@property
|
|
244
|
+
@pulumi.getter
|
|
245
|
+
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
246
|
+
"""
|
|
247
|
+
Resource tags
|
|
248
|
+
"""
|
|
249
|
+
return pulumi.get(self, "tags")
|
|
250
|
+
|
|
251
|
+
@property
|
|
252
|
+
@pulumi.getter
|
|
253
|
+
def type(self) -> pulumi.Output[str]:
|
|
254
|
+
"""
|
|
255
|
+
Azure resource type
|
|
256
|
+
"""
|
|
257
|
+
return pulumi.get(self, "type")
|
|
258
|
+
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
+
'GetAlertProcessingRuleByNameResult',
|
|
20
|
+
'AwaitableGetAlertProcessingRuleByNameResult',
|
|
21
|
+
'get_alert_processing_rule_by_name',
|
|
22
|
+
'get_alert_processing_rule_by_name_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetAlertProcessingRuleByNameResult:
|
|
27
|
+
"""
|
|
28
|
+
Alert processing rule object containing target scopes, conditions and scheduling logic.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, id=None, location=None, name=None, properties=None, system_data=None, tags=None, type=None):
|
|
31
|
+
if id and not isinstance(id, str):
|
|
32
|
+
raise TypeError("Expected argument 'id' to be a str")
|
|
33
|
+
pulumi.set(__self__, "id", id)
|
|
34
|
+
if location and not isinstance(location, str):
|
|
35
|
+
raise TypeError("Expected argument 'location' to be a str")
|
|
36
|
+
pulumi.set(__self__, "location", location)
|
|
37
|
+
if name and not isinstance(name, str):
|
|
38
|
+
raise TypeError("Expected argument 'name' to be a str")
|
|
39
|
+
pulumi.set(__self__, "name", name)
|
|
40
|
+
if properties and not isinstance(properties, dict):
|
|
41
|
+
raise TypeError("Expected argument 'properties' to be a dict")
|
|
42
|
+
pulumi.set(__self__, "properties", properties)
|
|
43
|
+
if system_data and not isinstance(system_data, dict):
|
|
44
|
+
raise TypeError("Expected argument 'system_data' to be a dict")
|
|
45
|
+
pulumi.set(__self__, "system_data", system_data)
|
|
46
|
+
if tags and not isinstance(tags, dict):
|
|
47
|
+
raise TypeError("Expected argument 'tags' to be a dict")
|
|
48
|
+
pulumi.set(__self__, "tags", tags)
|
|
49
|
+
if type and not isinstance(type, str):
|
|
50
|
+
raise TypeError("Expected argument 'type' to be a str")
|
|
51
|
+
pulumi.set(__self__, "type", type)
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
@pulumi.getter
|
|
55
|
+
def id(self) -> str:
|
|
56
|
+
"""
|
|
57
|
+
Azure resource Id
|
|
58
|
+
"""
|
|
59
|
+
return pulumi.get(self, "id")
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
@pulumi.getter
|
|
63
|
+
def location(self) -> str:
|
|
64
|
+
"""
|
|
65
|
+
Resource location
|
|
66
|
+
"""
|
|
67
|
+
return pulumi.get(self, "location")
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
@pulumi.getter
|
|
71
|
+
def name(self) -> str:
|
|
72
|
+
"""
|
|
73
|
+
Azure resource name
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "name")
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
@pulumi.getter
|
|
79
|
+
def properties(self) -> 'outputs.AlertProcessingRulePropertiesResponse':
|
|
80
|
+
"""
|
|
81
|
+
Alert processing rule properties.
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "properties")
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
@pulumi.getter(name="systemData")
|
|
87
|
+
def system_data(self) -> 'outputs.SystemDataResponse':
|
|
88
|
+
"""
|
|
89
|
+
Alert processing rule system data.
|
|
90
|
+
"""
|
|
91
|
+
return pulumi.get(self, "system_data")
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
@pulumi.getter
|
|
95
|
+
def tags(self) -> Optional[Mapping[str, str]]:
|
|
96
|
+
"""
|
|
97
|
+
Resource tags
|
|
98
|
+
"""
|
|
99
|
+
return pulumi.get(self, "tags")
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
@pulumi.getter
|
|
103
|
+
def type(self) -> str:
|
|
104
|
+
"""
|
|
105
|
+
Azure resource type
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "type")
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class AwaitableGetAlertProcessingRuleByNameResult(GetAlertProcessingRuleByNameResult):
|
|
111
|
+
# pylint: disable=using-constant-test
|
|
112
|
+
def __await__(self):
|
|
113
|
+
if False:
|
|
114
|
+
yield self
|
|
115
|
+
return GetAlertProcessingRuleByNameResult(
|
|
116
|
+
id=self.id,
|
|
117
|
+
location=self.location,
|
|
118
|
+
name=self.name,
|
|
119
|
+
properties=self.properties,
|
|
120
|
+
system_data=self.system_data,
|
|
121
|
+
tags=self.tags,
|
|
122
|
+
type=self.type)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
def get_alert_processing_rule_by_name(alert_processing_rule_name: Optional[str] = None,
|
|
126
|
+
resource_group_name: Optional[str] = None,
|
|
127
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAlertProcessingRuleByNameResult:
|
|
128
|
+
"""
|
|
129
|
+
Get an alert processing rule by name.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:param str alert_processing_rule_name: The name of the alert processing rule that needs to be fetched.
|
|
133
|
+
:param str resource_group_name: Resource group name where the resource is created.
|
|
134
|
+
"""
|
|
135
|
+
__args__ = dict()
|
|
136
|
+
__args__['alertProcessingRuleName'] = alert_processing_rule_name
|
|
137
|
+
__args__['resourceGroupName'] = resource_group_name
|
|
138
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
139
|
+
__ret__ = pulumi.runtime.invoke('azure-native:alertsmanagement/v20240301preview:getAlertProcessingRuleByName', __args__, opts=opts, typ=GetAlertProcessingRuleByNameResult).value
|
|
140
|
+
|
|
141
|
+
return AwaitableGetAlertProcessingRuleByNameResult(
|
|
142
|
+
id=pulumi.get(__ret__, 'id'),
|
|
143
|
+
location=pulumi.get(__ret__, 'location'),
|
|
144
|
+
name=pulumi.get(__ret__, 'name'),
|
|
145
|
+
properties=pulumi.get(__ret__, 'properties'),
|
|
146
|
+
system_data=pulumi.get(__ret__, 'system_data'),
|
|
147
|
+
tags=pulumi.get(__ret__, 'tags'),
|
|
148
|
+
type=pulumi.get(__ret__, 'type'))
|
|
149
|
+
def get_alert_processing_rule_by_name_output(alert_processing_rule_name: Optional[pulumi.Input[str]] = None,
|
|
150
|
+
resource_group_name: Optional[pulumi.Input[str]] = None,
|
|
151
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertProcessingRuleByNameResult]:
|
|
152
|
+
"""
|
|
153
|
+
Get an alert processing rule by name.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param str alert_processing_rule_name: The name of the alert processing rule that needs to be fetched.
|
|
157
|
+
:param str resource_group_name: Resource group name where the resource is created.
|
|
158
|
+
"""
|
|
159
|
+
__args__ = dict()
|
|
160
|
+
__args__['alertProcessingRuleName'] = alert_processing_rule_name
|
|
161
|
+
__args__['resourceGroupName'] = resource_group_name
|
|
162
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
163
|
+
__ret__ = pulumi.runtime.invoke_output('azure-native:alertsmanagement/v20240301preview:getAlertProcessingRuleByName', __args__, opts=opts, typ=GetAlertProcessingRuleByNameResult)
|
|
164
|
+
return __ret__.apply(lambda __response__: GetAlertProcessingRuleByNameResult(
|
|
165
|
+
id=pulumi.get(__response__, 'id'),
|
|
166
|
+
location=pulumi.get(__response__, 'location'),
|
|
167
|
+
name=pulumi.get(__response__, 'name'),
|
|
168
|
+
properties=pulumi.get(__response__, 'properties'),
|
|
169
|
+
system_data=pulumi.get(__response__, 'system_data'),
|
|
170
|
+
tags=pulumi.get(__response__, 'tags'),
|
|
171
|
+
type=pulumi.get(__response__, 'type')))
|