pulumi-azure-native 3.0.0a1743504154__py3-none-any.whl → 3.1.0a1744014979__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.

@@ -0,0 +1,444 @@
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 ._inputs import *
18
+
19
+ __all__ = ['DiagnosticSettingArgs', 'DiagnosticSetting']
20
+
21
+ @pulumi.input_type
22
+ class DiagnosticSettingArgs:
23
+ def __init__(__self__, *,
24
+ resource_uri: pulumi.Input[str],
25
+ event_hub_authorization_rule_id: Optional[pulumi.Input[str]] = None,
26
+ event_hub_name: Optional[pulumi.Input[str]] = None,
27
+ log_analytics_destination_type: Optional[pulumi.Input[str]] = None,
28
+ logs: Optional[pulumi.Input[Sequence[pulumi.Input['LogSettingsArgs']]]] = None,
29
+ marketplace_partner_id: Optional[pulumi.Input[str]] = None,
30
+ metrics: Optional[pulumi.Input[Sequence[pulumi.Input['MetricSettingsArgs']]]] = None,
31
+ name: Optional[pulumi.Input[str]] = None,
32
+ service_bus_rule_id: Optional[pulumi.Input[str]] = None,
33
+ storage_account_id: Optional[pulumi.Input[str]] = None,
34
+ workspace_id: Optional[pulumi.Input[str]] = None):
35
+ """
36
+ The set of arguments for constructing a DiagnosticSetting resource.
37
+ :param pulumi.Input[str] resource_uri: The identifier of the resource.
38
+ :param pulumi.Input[str] event_hub_authorization_rule_id: The resource Id for the event hub authorization rule.
39
+ :param pulumi.Input[str] event_hub_name: The name of the event hub. If none is specified, the default event hub will be selected.
40
+ :param pulumi.Input[str] log_analytics_destination_type: A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)
41
+ :param pulumi.Input[Sequence[pulumi.Input['LogSettingsArgs']]] logs: The list of logs settings.
42
+ :param pulumi.Input[str] marketplace_partner_id: The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
43
+ :param pulumi.Input[Sequence[pulumi.Input['MetricSettingsArgs']]] metrics: The list of metric settings.
44
+ :param pulumi.Input[str] name: The name of the diagnostic setting.
45
+ :param pulumi.Input[str] service_bus_rule_id: The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
46
+ :param pulumi.Input[str] storage_account_id: The resource ID of the storage account to which you would like to send Diagnostic Logs.
47
+ :param pulumi.Input[str] workspace_id: The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
48
+ """
49
+ pulumi.set(__self__, "resource_uri", resource_uri)
50
+ if event_hub_authorization_rule_id is not None:
51
+ pulumi.set(__self__, "event_hub_authorization_rule_id", event_hub_authorization_rule_id)
52
+ if event_hub_name is not None:
53
+ pulumi.set(__self__, "event_hub_name", event_hub_name)
54
+ if log_analytics_destination_type is not None:
55
+ pulumi.set(__self__, "log_analytics_destination_type", log_analytics_destination_type)
56
+ if logs is not None:
57
+ pulumi.set(__self__, "logs", logs)
58
+ if marketplace_partner_id is not None:
59
+ pulumi.set(__self__, "marketplace_partner_id", marketplace_partner_id)
60
+ if metrics is not None:
61
+ pulumi.set(__self__, "metrics", metrics)
62
+ if name is not None:
63
+ pulumi.set(__self__, "name", name)
64
+ if service_bus_rule_id is not None:
65
+ pulumi.set(__self__, "service_bus_rule_id", service_bus_rule_id)
66
+ if storage_account_id is not None:
67
+ pulumi.set(__self__, "storage_account_id", storage_account_id)
68
+ if workspace_id is not None:
69
+ pulumi.set(__self__, "workspace_id", workspace_id)
70
+
71
+ @property
72
+ @pulumi.getter(name="resourceUri")
73
+ def resource_uri(self) -> pulumi.Input[str]:
74
+ """
75
+ The identifier of the resource.
76
+ """
77
+ return pulumi.get(self, "resource_uri")
78
+
79
+ @resource_uri.setter
80
+ def resource_uri(self, value: pulumi.Input[str]):
81
+ pulumi.set(self, "resource_uri", value)
82
+
83
+ @property
84
+ @pulumi.getter(name="eventHubAuthorizationRuleId")
85
+ def event_hub_authorization_rule_id(self) -> Optional[pulumi.Input[str]]:
86
+ """
87
+ The resource Id for the event hub authorization rule.
88
+ """
89
+ return pulumi.get(self, "event_hub_authorization_rule_id")
90
+
91
+ @event_hub_authorization_rule_id.setter
92
+ def event_hub_authorization_rule_id(self, value: Optional[pulumi.Input[str]]):
93
+ pulumi.set(self, "event_hub_authorization_rule_id", value)
94
+
95
+ @property
96
+ @pulumi.getter(name="eventHubName")
97
+ def event_hub_name(self) -> Optional[pulumi.Input[str]]:
98
+ """
99
+ The name of the event hub. If none is specified, the default event hub will be selected.
100
+ """
101
+ return pulumi.get(self, "event_hub_name")
102
+
103
+ @event_hub_name.setter
104
+ def event_hub_name(self, value: Optional[pulumi.Input[str]]):
105
+ pulumi.set(self, "event_hub_name", value)
106
+
107
+ @property
108
+ @pulumi.getter(name="logAnalyticsDestinationType")
109
+ def log_analytics_destination_type(self) -> Optional[pulumi.Input[str]]:
110
+ """
111
+ A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)
112
+ """
113
+ return pulumi.get(self, "log_analytics_destination_type")
114
+
115
+ @log_analytics_destination_type.setter
116
+ def log_analytics_destination_type(self, value: Optional[pulumi.Input[str]]):
117
+ pulumi.set(self, "log_analytics_destination_type", value)
118
+
119
+ @property
120
+ @pulumi.getter
121
+ def logs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LogSettingsArgs']]]]:
122
+ """
123
+ The list of logs settings.
124
+ """
125
+ return pulumi.get(self, "logs")
126
+
127
+ @logs.setter
128
+ def logs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LogSettingsArgs']]]]):
129
+ pulumi.set(self, "logs", value)
130
+
131
+ @property
132
+ @pulumi.getter(name="marketplacePartnerId")
133
+ def marketplace_partner_id(self) -> Optional[pulumi.Input[str]]:
134
+ """
135
+ The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
136
+ """
137
+ return pulumi.get(self, "marketplace_partner_id")
138
+
139
+ @marketplace_partner_id.setter
140
+ def marketplace_partner_id(self, value: Optional[pulumi.Input[str]]):
141
+ pulumi.set(self, "marketplace_partner_id", value)
142
+
143
+ @property
144
+ @pulumi.getter
145
+ def metrics(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MetricSettingsArgs']]]]:
146
+ """
147
+ The list of metric settings.
148
+ """
149
+ return pulumi.get(self, "metrics")
150
+
151
+ @metrics.setter
152
+ def metrics(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MetricSettingsArgs']]]]):
153
+ pulumi.set(self, "metrics", value)
154
+
155
+ @property
156
+ @pulumi.getter
157
+ def name(self) -> Optional[pulumi.Input[str]]:
158
+ """
159
+ The name of the diagnostic setting.
160
+ """
161
+ return pulumi.get(self, "name")
162
+
163
+ @name.setter
164
+ def name(self, value: Optional[pulumi.Input[str]]):
165
+ pulumi.set(self, "name", value)
166
+
167
+ @property
168
+ @pulumi.getter(name="serviceBusRuleId")
169
+ def service_bus_rule_id(self) -> Optional[pulumi.Input[str]]:
170
+ """
171
+ The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
172
+ """
173
+ return pulumi.get(self, "service_bus_rule_id")
174
+
175
+ @service_bus_rule_id.setter
176
+ def service_bus_rule_id(self, value: Optional[pulumi.Input[str]]):
177
+ pulumi.set(self, "service_bus_rule_id", value)
178
+
179
+ @property
180
+ @pulumi.getter(name="storageAccountId")
181
+ def storage_account_id(self) -> Optional[pulumi.Input[str]]:
182
+ """
183
+ The resource ID of the storage account to which you would like to send Diagnostic Logs.
184
+ """
185
+ return pulumi.get(self, "storage_account_id")
186
+
187
+ @storage_account_id.setter
188
+ def storage_account_id(self, value: Optional[pulumi.Input[str]]):
189
+ pulumi.set(self, "storage_account_id", value)
190
+
191
+ @property
192
+ @pulumi.getter(name="workspaceId")
193
+ def workspace_id(self) -> Optional[pulumi.Input[str]]:
194
+ """
195
+ The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
196
+ """
197
+ return pulumi.get(self, "workspace_id")
198
+
199
+ @workspace_id.setter
200
+ def workspace_id(self, value: Optional[pulumi.Input[str]]):
201
+ pulumi.set(self, "workspace_id", value)
202
+
203
+
204
+ class DiagnosticSetting(pulumi.CustomResource):
205
+ @overload
206
+ def __init__(__self__,
207
+ resource_name: str,
208
+ opts: Optional[pulumi.ResourceOptions] = None,
209
+ event_hub_authorization_rule_id: Optional[pulumi.Input[str]] = None,
210
+ event_hub_name: Optional[pulumi.Input[str]] = None,
211
+ log_analytics_destination_type: Optional[pulumi.Input[str]] = None,
212
+ logs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LogSettingsArgs', 'LogSettingsArgsDict']]]]] = None,
213
+ marketplace_partner_id: Optional[pulumi.Input[str]] = None,
214
+ metrics: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MetricSettingsArgs', 'MetricSettingsArgsDict']]]]] = None,
215
+ name: Optional[pulumi.Input[str]] = None,
216
+ resource_uri: Optional[pulumi.Input[str]] = None,
217
+ service_bus_rule_id: Optional[pulumi.Input[str]] = None,
218
+ storage_account_id: Optional[pulumi.Input[str]] = None,
219
+ workspace_id: Optional[pulumi.Input[str]] = None,
220
+ __props__=None):
221
+ """
222
+ The diagnostic setting resource.
223
+
224
+ Uses Azure REST API version 2021-05-01-preview.
225
+
226
+ :param str resource_name: The name of the resource.
227
+ :param pulumi.ResourceOptions opts: Options for the resource.
228
+ :param pulumi.Input[str] event_hub_authorization_rule_id: The resource Id for the event hub authorization rule.
229
+ :param pulumi.Input[str] event_hub_name: The name of the event hub. If none is specified, the default event hub will be selected.
230
+ :param pulumi.Input[str] log_analytics_destination_type: A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)
231
+ :param pulumi.Input[Sequence[pulumi.Input[Union['LogSettingsArgs', 'LogSettingsArgsDict']]]] logs: The list of logs settings.
232
+ :param pulumi.Input[str] marketplace_partner_id: The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
233
+ :param pulumi.Input[Sequence[pulumi.Input[Union['MetricSettingsArgs', 'MetricSettingsArgsDict']]]] metrics: The list of metric settings.
234
+ :param pulumi.Input[str] name: The name of the diagnostic setting.
235
+ :param pulumi.Input[str] resource_uri: The identifier of the resource.
236
+ :param pulumi.Input[str] service_bus_rule_id: The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
237
+ :param pulumi.Input[str] storage_account_id: The resource ID of the storage account to which you would like to send Diagnostic Logs.
238
+ :param pulumi.Input[str] workspace_id: The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
239
+ """
240
+ ...
241
+ @overload
242
+ def __init__(__self__,
243
+ resource_name: str,
244
+ args: DiagnosticSettingArgs,
245
+ opts: Optional[pulumi.ResourceOptions] = None):
246
+ """
247
+ The diagnostic setting resource.
248
+
249
+ Uses Azure REST API version 2021-05-01-preview.
250
+
251
+ :param str resource_name: The name of the resource.
252
+ :param DiagnosticSettingArgs args: The arguments to use to populate this resource's properties.
253
+ :param pulumi.ResourceOptions opts: Options for the resource.
254
+ """
255
+ ...
256
+ def __init__(__self__, resource_name: str, *args, **kwargs):
257
+ resource_args, opts = _utilities.get_resource_args_opts(DiagnosticSettingArgs, pulumi.ResourceOptions, *args, **kwargs)
258
+ if resource_args is not None:
259
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
260
+ else:
261
+ __self__._internal_init(resource_name, *args, **kwargs)
262
+
263
+ def _internal_init(__self__,
264
+ resource_name: str,
265
+ opts: Optional[pulumi.ResourceOptions] = None,
266
+ event_hub_authorization_rule_id: Optional[pulumi.Input[str]] = None,
267
+ event_hub_name: Optional[pulumi.Input[str]] = None,
268
+ log_analytics_destination_type: Optional[pulumi.Input[str]] = None,
269
+ logs: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LogSettingsArgs', 'LogSettingsArgsDict']]]]] = None,
270
+ marketplace_partner_id: Optional[pulumi.Input[str]] = None,
271
+ metrics: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MetricSettingsArgs', 'MetricSettingsArgsDict']]]]] = None,
272
+ name: Optional[pulumi.Input[str]] = None,
273
+ resource_uri: Optional[pulumi.Input[str]] = None,
274
+ service_bus_rule_id: Optional[pulumi.Input[str]] = None,
275
+ storage_account_id: Optional[pulumi.Input[str]] = None,
276
+ workspace_id: Optional[pulumi.Input[str]] = None,
277
+ __props__=None):
278
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
279
+ if not isinstance(opts, pulumi.ResourceOptions):
280
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
281
+ if opts.id is None:
282
+ if __props__ is not None:
283
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
284
+ __props__ = DiagnosticSettingArgs.__new__(DiagnosticSettingArgs)
285
+
286
+ __props__.__dict__["event_hub_authorization_rule_id"] = event_hub_authorization_rule_id
287
+ __props__.__dict__["event_hub_name"] = event_hub_name
288
+ __props__.__dict__["log_analytics_destination_type"] = log_analytics_destination_type
289
+ __props__.__dict__["logs"] = logs
290
+ __props__.__dict__["marketplace_partner_id"] = marketplace_partner_id
291
+ __props__.__dict__["metrics"] = metrics
292
+ __props__.__dict__["name"] = name
293
+ if resource_uri is None and not opts.urn:
294
+ raise TypeError("Missing required property 'resource_uri'")
295
+ __props__.__dict__["resource_uri"] = resource_uri
296
+ __props__.__dict__["service_bus_rule_id"] = service_bus_rule_id
297
+ __props__.__dict__["storage_account_id"] = storage_account_id
298
+ __props__.__dict__["workspace_id"] = workspace_id
299
+ __props__.__dict__["azure_api_version"] = None
300
+ __props__.__dict__["system_data"] = None
301
+ __props__.__dict__["type"] = None
302
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:insights/v20210501preview:DiagnosticSetting"), pulumi.Alias(type_="azure-native:insights:DiagnosticSetting"), pulumi.Alias(type_="azure-native:monitor/v20170501preview:DiagnosticSetting"), pulumi.Alias(type_="azure-native:monitor/v20210501preview:DiagnosticSetting")])
303
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
304
+ super(DiagnosticSetting, __self__).__init__(
305
+ 'azure-native:monitor:DiagnosticSetting',
306
+ resource_name,
307
+ __props__,
308
+ opts)
309
+
310
+ @staticmethod
311
+ def get(resource_name: str,
312
+ id: pulumi.Input[str],
313
+ opts: Optional[pulumi.ResourceOptions] = None) -> 'DiagnosticSetting':
314
+ """
315
+ Get an existing DiagnosticSetting resource's state with the given name, id, and optional extra
316
+ properties used to qualify the lookup.
317
+
318
+ :param str resource_name: The unique name of the resulting resource.
319
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
320
+ :param pulumi.ResourceOptions opts: Options for the resource.
321
+ """
322
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
323
+
324
+ __props__ = DiagnosticSettingArgs.__new__(DiagnosticSettingArgs)
325
+
326
+ __props__.__dict__["azure_api_version"] = None
327
+ __props__.__dict__["event_hub_authorization_rule_id"] = None
328
+ __props__.__dict__["event_hub_name"] = None
329
+ __props__.__dict__["log_analytics_destination_type"] = None
330
+ __props__.__dict__["logs"] = None
331
+ __props__.__dict__["marketplace_partner_id"] = None
332
+ __props__.__dict__["metrics"] = None
333
+ __props__.__dict__["name"] = None
334
+ __props__.__dict__["service_bus_rule_id"] = None
335
+ __props__.__dict__["storage_account_id"] = None
336
+ __props__.__dict__["system_data"] = None
337
+ __props__.__dict__["type"] = None
338
+ __props__.__dict__["workspace_id"] = None
339
+ return DiagnosticSetting(resource_name, opts=opts, __props__=__props__)
340
+
341
+ @property
342
+ @pulumi.getter(name="azureApiVersion")
343
+ def azure_api_version(self) -> pulumi.Output[str]:
344
+ """
345
+ The Azure API version of the resource.
346
+ """
347
+ return pulumi.get(self, "azure_api_version")
348
+
349
+ @property
350
+ @pulumi.getter(name="eventHubAuthorizationRuleId")
351
+ def event_hub_authorization_rule_id(self) -> pulumi.Output[Optional[str]]:
352
+ """
353
+ The resource Id for the event hub authorization rule.
354
+ """
355
+ return pulumi.get(self, "event_hub_authorization_rule_id")
356
+
357
+ @property
358
+ @pulumi.getter(name="eventHubName")
359
+ def event_hub_name(self) -> pulumi.Output[Optional[str]]:
360
+ """
361
+ The name of the event hub. If none is specified, the default event hub will be selected.
362
+ """
363
+ return pulumi.get(self, "event_hub_name")
364
+
365
+ @property
366
+ @pulumi.getter(name="logAnalyticsDestinationType")
367
+ def log_analytics_destination_type(self) -> pulumi.Output[Optional[str]]:
368
+ """
369
+ A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.)
370
+ """
371
+ return pulumi.get(self, "log_analytics_destination_type")
372
+
373
+ @property
374
+ @pulumi.getter
375
+ def logs(self) -> pulumi.Output[Optional[Sequence['outputs.LogSettingsResponse']]]:
376
+ """
377
+ The list of logs settings.
378
+ """
379
+ return pulumi.get(self, "logs")
380
+
381
+ @property
382
+ @pulumi.getter(name="marketplacePartnerId")
383
+ def marketplace_partner_id(self) -> pulumi.Output[Optional[str]]:
384
+ """
385
+ The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
386
+ """
387
+ return pulumi.get(self, "marketplace_partner_id")
388
+
389
+ @property
390
+ @pulumi.getter
391
+ def metrics(self) -> pulumi.Output[Optional[Sequence['outputs.MetricSettingsResponse']]]:
392
+ """
393
+ The list of metric settings.
394
+ """
395
+ return pulumi.get(self, "metrics")
396
+
397
+ @property
398
+ @pulumi.getter
399
+ def name(self) -> pulumi.Output[str]:
400
+ """
401
+ The name of the resource
402
+ """
403
+ return pulumi.get(self, "name")
404
+
405
+ @property
406
+ @pulumi.getter(name="serviceBusRuleId")
407
+ def service_bus_rule_id(self) -> pulumi.Output[Optional[str]]:
408
+ """
409
+ The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
410
+ """
411
+ return pulumi.get(self, "service_bus_rule_id")
412
+
413
+ @property
414
+ @pulumi.getter(name="storageAccountId")
415
+ def storage_account_id(self) -> pulumi.Output[Optional[str]]:
416
+ """
417
+ The resource ID of the storage account to which you would like to send Diagnostic Logs.
418
+ """
419
+ return pulumi.get(self, "storage_account_id")
420
+
421
+ @property
422
+ @pulumi.getter(name="systemData")
423
+ def system_data(self) -> pulumi.Output['outputs.SystemDataResponse']:
424
+ """
425
+ The system metadata related to this resource.
426
+ """
427
+ return pulumi.get(self, "system_data")
428
+
429
+ @property
430
+ @pulumi.getter
431
+ def type(self) -> pulumi.Output[str]:
432
+ """
433
+ The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
434
+ """
435
+ return pulumi.get(self, "type")
436
+
437
+ @property
438
+ @pulumi.getter(name="workspaceId")
439
+ def workspace_id(self) -> pulumi.Output[Optional[str]]:
440
+ """
441
+ The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
442
+ """
443
+ return pulumi.get(self, "workspace_id")
444
+
@@ -0,0 +1,189 @@
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
+ 'GetAutoscaleSettingResult',
20
+ 'AwaitableGetAutoscaleSettingResult',
21
+ 'get_autoscale_setting',
22
+ 'get_autoscale_setting_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetAutoscaleSettingResult:
27
+ """
28
+ The autoscale setting resource.
29
+ """
30
+ def __init__(__self__, azure_api_version=None, id=None, location=None, name=None, properties=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 id and not isinstance(id, str):
35
+ raise TypeError("Expected argument 'id' to be a str")
36
+ pulumi.set(__self__, "id", id)
37
+ if location and not isinstance(location, str):
38
+ raise TypeError("Expected argument 'location' to be a str")
39
+ pulumi.set(__self__, "location", location)
40
+ if name and not isinstance(name, str):
41
+ raise TypeError("Expected argument 'name' to be a str")
42
+ pulumi.set(__self__, "name", name)
43
+ if properties and not isinstance(properties, dict):
44
+ raise TypeError("Expected argument 'properties' to be a dict")
45
+ pulumi.set(__self__, "properties", properties)
46
+ if system_data and not isinstance(system_data, dict):
47
+ raise TypeError("Expected argument 'system_data' to be a dict")
48
+ pulumi.set(__self__, "system_data", system_data)
49
+ if tags and not isinstance(tags, dict):
50
+ raise TypeError("Expected argument 'tags' to be a dict")
51
+ pulumi.set(__self__, "tags", tags)
52
+ if type and not isinstance(type, str):
53
+ raise TypeError("Expected argument 'type' to be a str")
54
+ pulumi.set(__self__, "type", type)
55
+
56
+ @property
57
+ @pulumi.getter(name="azureApiVersion")
58
+ def azure_api_version(self) -> str:
59
+ """
60
+ The Azure API version of the resource.
61
+ """
62
+ return pulumi.get(self, "azure_api_version")
63
+
64
+ @property
65
+ @pulumi.getter
66
+ def id(self) -> str:
67
+ """
68
+ Azure resource Id
69
+ """
70
+ return pulumi.get(self, "id")
71
+
72
+ @property
73
+ @pulumi.getter
74
+ def location(self) -> str:
75
+ """
76
+ Resource location
77
+ """
78
+ return pulumi.get(self, "location")
79
+
80
+ @property
81
+ @pulumi.getter
82
+ def name(self) -> str:
83
+ """
84
+ Azure resource name
85
+ """
86
+ return pulumi.get(self, "name")
87
+
88
+ @property
89
+ @pulumi.getter
90
+ def properties(self) -> 'outputs.AutoscaleSettingResponse':
91
+ """
92
+ The autoscale setting of the resource.
93
+ """
94
+ return pulumi.get(self, "properties")
95
+
96
+ @property
97
+ @pulumi.getter(name="systemData")
98
+ def system_data(self) -> 'outputs.SystemDataResponse':
99
+ """
100
+ The system metadata related to the response.
101
+ """
102
+ return pulumi.get(self, "system_data")
103
+
104
+ @property
105
+ @pulumi.getter
106
+ def tags(self) -> Optional[Mapping[str, str]]:
107
+ """
108
+ Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
109
+ """
110
+ return pulumi.get(self, "tags")
111
+
112
+ @property
113
+ @pulumi.getter
114
+ def type(self) -> str:
115
+ """
116
+ Azure resource type
117
+ """
118
+ return pulumi.get(self, "type")
119
+
120
+
121
+ class AwaitableGetAutoscaleSettingResult(GetAutoscaleSettingResult):
122
+ # pylint: disable=using-constant-test
123
+ def __await__(self):
124
+ if False:
125
+ yield self
126
+ return GetAutoscaleSettingResult(
127
+ azure_api_version=self.azure_api_version,
128
+ id=self.id,
129
+ location=self.location,
130
+ name=self.name,
131
+ properties=self.properties,
132
+ system_data=self.system_data,
133
+ tags=self.tags,
134
+ type=self.type)
135
+
136
+
137
+ def get_autoscale_setting(autoscale_setting_name: Optional[str] = None,
138
+ resource_group_name: Optional[str] = None,
139
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetAutoscaleSettingResult:
140
+ """
141
+ Gets an autoscale setting
142
+
143
+ Uses Azure REST API version 2021-05-01-preview.
144
+
145
+
146
+ :param str autoscale_setting_name: The autoscale setting name.
147
+ :param str resource_group_name: The name of the resource group. The name is case insensitive.
148
+ """
149
+ __args__ = dict()
150
+ __args__['autoscaleSettingName'] = autoscale_setting_name
151
+ __args__['resourceGroupName'] = resource_group_name
152
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
153
+ __ret__ = pulumi.runtime.invoke('azure-native:monitor:getAutoscaleSetting', __args__, opts=opts, typ=GetAutoscaleSettingResult).value
154
+
155
+ return AwaitableGetAutoscaleSettingResult(
156
+ azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
157
+ id=pulumi.get(__ret__, 'id'),
158
+ location=pulumi.get(__ret__, 'location'),
159
+ name=pulumi.get(__ret__, 'name'),
160
+ properties=pulumi.get(__ret__, 'properties'),
161
+ system_data=pulumi.get(__ret__, 'system_data'),
162
+ tags=pulumi.get(__ret__, 'tags'),
163
+ type=pulumi.get(__ret__, 'type'))
164
+ def get_autoscale_setting_output(autoscale_setting_name: Optional[pulumi.Input[str]] = None,
165
+ resource_group_name: Optional[pulumi.Input[str]] = None,
166
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAutoscaleSettingResult]:
167
+ """
168
+ Gets an autoscale setting
169
+
170
+ Uses Azure REST API version 2021-05-01-preview.
171
+
172
+
173
+ :param str autoscale_setting_name: The autoscale setting name.
174
+ :param str resource_group_name: The name of the resource group. The name is case insensitive.
175
+ """
176
+ __args__ = dict()
177
+ __args__['autoscaleSettingName'] = autoscale_setting_name
178
+ __args__['resourceGroupName'] = resource_group_name
179
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
180
+ __ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getAutoscaleSetting', __args__, opts=opts, typ=GetAutoscaleSettingResult)
181
+ return __ret__.apply(lambda __response__: GetAutoscaleSettingResult(
182
+ azure_api_version=pulumi.get(__response__, 'azure_api_version'),
183
+ id=pulumi.get(__response__, 'id'),
184
+ location=pulumi.get(__response__, 'location'),
185
+ name=pulumi.get(__response__, 'name'),
186
+ properties=pulumi.get(__response__, 'properties'),
187
+ system_data=pulumi.get(__response__, 'system_data'),
188
+ tags=pulumi.get(__response__, 'tags'),
189
+ type=pulumi.get(__response__, 'type')))