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,273 @@
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
+ 'GetDiagnosticSettingResult',
20
+ 'AwaitableGetDiagnosticSettingResult',
21
+ 'get_diagnostic_setting',
22
+ 'get_diagnostic_setting_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetDiagnosticSettingResult:
27
+ """
28
+ The diagnostic setting resource.
29
+ """
30
+ def __init__(__self__, azure_api_version=None, event_hub_authorization_rule_id=None, event_hub_name=None, id=None, log_analytics_destination_type=None, logs=None, marketplace_partner_id=None, metrics=None, name=None, service_bus_rule_id=None, storage_account_id=None, system_data=None, type=None, workspace_id=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 event_hub_authorization_rule_id and not isinstance(event_hub_authorization_rule_id, str):
35
+ raise TypeError("Expected argument 'event_hub_authorization_rule_id' to be a str")
36
+ pulumi.set(__self__, "event_hub_authorization_rule_id", event_hub_authorization_rule_id)
37
+ if event_hub_name and not isinstance(event_hub_name, str):
38
+ raise TypeError("Expected argument 'event_hub_name' to be a str")
39
+ pulumi.set(__self__, "event_hub_name", event_hub_name)
40
+ if id and not isinstance(id, str):
41
+ raise TypeError("Expected argument 'id' to be a str")
42
+ pulumi.set(__self__, "id", id)
43
+ if log_analytics_destination_type and not isinstance(log_analytics_destination_type, str):
44
+ raise TypeError("Expected argument 'log_analytics_destination_type' to be a str")
45
+ pulumi.set(__self__, "log_analytics_destination_type", log_analytics_destination_type)
46
+ if logs and not isinstance(logs, list):
47
+ raise TypeError("Expected argument 'logs' to be a list")
48
+ pulumi.set(__self__, "logs", logs)
49
+ if marketplace_partner_id and not isinstance(marketplace_partner_id, str):
50
+ raise TypeError("Expected argument 'marketplace_partner_id' to be a str")
51
+ pulumi.set(__self__, "marketplace_partner_id", marketplace_partner_id)
52
+ if metrics and not isinstance(metrics, list):
53
+ raise TypeError("Expected argument 'metrics' to be a list")
54
+ pulumi.set(__self__, "metrics", metrics)
55
+ if name and not isinstance(name, str):
56
+ raise TypeError("Expected argument 'name' to be a str")
57
+ pulumi.set(__self__, "name", name)
58
+ if service_bus_rule_id and not isinstance(service_bus_rule_id, str):
59
+ raise TypeError("Expected argument 'service_bus_rule_id' to be a str")
60
+ pulumi.set(__self__, "service_bus_rule_id", service_bus_rule_id)
61
+ if storage_account_id and not isinstance(storage_account_id, str):
62
+ raise TypeError("Expected argument 'storage_account_id' to be a str")
63
+ pulumi.set(__self__, "storage_account_id", storage_account_id)
64
+ if system_data and not isinstance(system_data, dict):
65
+ raise TypeError("Expected argument 'system_data' to be a dict")
66
+ pulumi.set(__self__, "system_data", system_data)
67
+ if type and not isinstance(type, str):
68
+ raise TypeError("Expected argument 'type' to be a str")
69
+ pulumi.set(__self__, "type", type)
70
+ if workspace_id and not isinstance(workspace_id, str):
71
+ raise TypeError("Expected argument 'workspace_id' to be a str")
72
+ pulumi.set(__self__, "workspace_id", workspace_id)
73
+
74
+ @property
75
+ @pulumi.getter(name="azureApiVersion")
76
+ def azure_api_version(self) -> str:
77
+ """
78
+ The Azure API version of the resource.
79
+ """
80
+ return pulumi.get(self, "azure_api_version")
81
+
82
+ @property
83
+ @pulumi.getter(name="eventHubAuthorizationRuleId")
84
+ def event_hub_authorization_rule_id(self) -> Optional[str]:
85
+ """
86
+ The resource Id for the event hub authorization rule.
87
+ """
88
+ return pulumi.get(self, "event_hub_authorization_rule_id")
89
+
90
+ @property
91
+ @pulumi.getter(name="eventHubName")
92
+ def event_hub_name(self) -> Optional[str]:
93
+ """
94
+ The name of the event hub. If none is specified, the default event hub will be selected.
95
+ """
96
+ return pulumi.get(self, "event_hub_name")
97
+
98
+ @property
99
+ @pulumi.getter
100
+ def id(self) -> str:
101
+ """
102
+ Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
103
+ """
104
+ return pulumi.get(self, "id")
105
+
106
+ @property
107
+ @pulumi.getter(name="logAnalyticsDestinationType")
108
+ def log_analytics_destination_type(self) -> Optional[str]:
109
+ """
110
+ 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.)
111
+ """
112
+ return pulumi.get(self, "log_analytics_destination_type")
113
+
114
+ @property
115
+ @pulumi.getter
116
+ def logs(self) -> Optional[Sequence['outputs.LogSettingsResponse']]:
117
+ """
118
+ The list of logs settings.
119
+ """
120
+ return pulumi.get(self, "logs")
121
+
122
+ @property
123
+ @pulumi.getter(name="marketplacePartnerId")
124
+ def marketplace_partner_id(self) -> Optional[str]:
125
+ """
126
+ The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
127
+ """
128
+ return pulumi.get(self, "marketplace_partner_id")
129
+
130
+ @property
131
+ @pulumi.getter
132
+ def metrics(self) -> Optional[Sequence['outputs.MetricSettingsResponse']]:
133
+ """
134
+ The list of metric settings.
135
+ """
136
+ return pulumi.get(self, "metrics")
137
+
138
+ @property
139
+ @pulumi.getter
140
+ def name(self) -> str:
141
+ """
142
+ The name of the resource
143
+ """
144
+ return pulumi.get(self, "name")
145
+
146
+ @property
147
+ @pulumi.getter(name="serviceBusRuleId")
148
+ def service_bus_rule_id(self) -> Optional[str]:
149
+ """
150
+ The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
151
+ """
152
+ return pulumi.get(self, "service_bus_rule_id")
153
+
154
+ @property
155
+ @pulumi.getter(name="storageAccountId")
156
+ def storage_account_id(self) -> Optional[str]:
157
+ """
158
+ The resource ID of the storage account to which you would like to send Diagnostic Logs.
159
+ """
160
+ return pulumi.get(self, "storage_account_id")
161
+
162
+ @property
163
+ @pulumi.getter(name="systemData")
164
+ def system_data(self) -> 'outputs.SystemDataResponse':
165
+ """
166
+ The system metadata related to this resource.
167
+ """
168
+ return pulumi.get(self, "system_data")
169
+
170
+ @property
171
+ @pulumi.getter
172
+ def type(self) -> str:
173
+ """
174
+ The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
175
+ """
176
+ return pulumi.get(self, "type")
177
+
178
+ @property
179
+ @pulumi.getter(name="workspaceId")
180
+ def workspace_id(self) -> Optional[str]:
181
+ """
182
+ 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
183
+ """
184
+ return pulumi.get(self, "workspace_id")
185
+
186
+
187
+ class AwaitableGetDiagnosticSettingResult(GetDiagnosticSettingResult):
188
+ # pylint: disable=using-constant-test
189
+ def __await__(self):
190
+ if False:
191
+ yield self
192
+ return GetDiagnosticSettingResult(
193
+ azure_api_version=self.azure_api_version,
194
+ event_hub_authorization_rule_id=self.event_hub_authorization_rule_id,
195
+ event_hub_name=self.event_hub_name,
196
+ id=self.id,
197
+ log_analytics_destination_type=self.log_analytics_destination_type,
198
+ logs=self.logs,
199
+ marketplace_partner_id=self.marketplace_partner_id,
200
+ metrics=self.metrics,
201
+ name=self.name,
202
+ service_bus_rule_id=self.service_bus_rule_id,
203
+ storage_account_id=self.storage_account_id,
204
+ system_data=self.system_data,
205
+ type=self.type,
206
+ workspace_id=self.workspace_id)
207
+
208
+
209
+ def get_diagnostic_setting(name: Optional[str] = None,
210
+ resource_uri: Optional[str] = None,
211
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetDiagnosticSettingResult:
212
+ """
213
+ Gets the active diagnostic settings for the specified resource.
214
+
215
+ Uses Azure REST API version 2021-05-01-preview.
216
+
217
+
218
+ :param str name: The name of the diagnostic setting.
219
+ :param str resource_uri: The identifier of the resource.
220
+ """
221
+ __args__ = dict()
222
+ __args__['name'] = name
223
+ __args__['resourceUri'] = resource_uri
224
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
225
+ __ret__ = pulumi.runtime.invoke('azure-native:monitor:getDiagnosticSetting', __args__, opts=opts, typ=GetDiagnosticSettingResult).value
226
+
227
+ return AwaitableGetDiagnosticSettingResult(
228
+ azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
229
+ event_hub_authorization_rule_id=pulumi.get(__ret__, 'event_hub_authorization_rule_id'),
230
+ event_hub_name=pulumi.get(__ret__, 'event_hub_name'),
231
+ id=pulumi.get(__ret__, 'id'),
232
+ log_analytics_destination_type=pulumi.get(__ret__, 'log_analytics_destination_type'),
233
+ logs=pulumi.get(__ret__, 'logs'),
234
+ marketplace_partner_id=pulumi.get(__ret__, 'marketplace_partner_id'),
235
+ metrics=pulumi.get(__ret__, 'metrics'),
236
+ name=pulumi.get(__ret__, 'name'),
237
+ service_bus_rule_id=pulumi.get(__ret__, 'service_bus_rule_id'),
238
+ storage_account_id=pulumi.get(__ret__, 'storage_account_id'),
239
+ system_data=pulumi.get(__ret__, 'system_data'),
240
+ type=pulumi.get(__ret__, 'type'),
241
+ workspace_id=pulumi.get(__ret__, 'workspace_id'))
242
+ def get_diagnostic_setting_output(name: Optional[pulumi.Input[str]] = None,
243
+ resource_uri: Optional[pulumi.Input[str]] = None,
244
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDiagnosticSettingResult]:
245
+ """
246
+ Gets the active diagnostic settings for the specified resource.
247
+
248
+ Uses Azure REST API version 2021-05-01-preview.
249
+
250
+
251
+ :param str name: The name of the diagnostic setting.
252
+ :param str resource_uri: The identifier of the resource.
253
+ """
254
+ __args__ = dict()
255
+ __args__['name'] = name
256
+ __args__['resourceUri'] = resource_uri
257
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
258
+ __ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getDiagnosticSetting', __args__, opts=opts, typ=GetDiagnosticSettingResult)
259
+ return __ret__.apply(lambda __response__: GetDiagnosticSettingResult(
260
+ azure_api_version=pulumi.get(__response__, 'azure_api_version'),
261
+ event_hub_authorization_rule_id=pulumi.get(__response__, 'event_hub_authorization_rule_id'),
262
+ event_hub_name=pulumi.get(__response__, 'event_hub_name'),
263
+ id=pulumi.get(__response__, 'id'),
264
+ log_analytics_destination_type=pulumi.get(__response__, 'log_analytics_destination_type'),
265
+ logs=pulumi.get(__response__, 'logs'),
266
+ marketplace_partner_id=pulumi.get(__response__, 'marketplace_partner_id'),
267
+ metrics=pulumi.get(__response__, 'metrics'),
268
+ name=pulumi.get(__response__, 'name'),
269
+ service_bus_rule_id=pulumi.get(__response__, 'service_bus_rule_id'),
270
+ storage_account_id=pulumi.get(__response__, 'storage_account_id'),
271
+ system_data=pulumi.get(__response__, 'system_data'),
272
+ type=pulumi.get(__response__, 'type'),
273
+ workspace_id=pulumi.get(__response__, 'workspace_id')))
@@ -0,0 +1,245 @@
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
+ 'GetManagementGroupDiagnosticSettingResult',
20
+ 'AwaitableGetManagementGroupDiagnosticSettingResult',
21
+ 'get_management_group_diagnostic_setting',
22
+ 'get_management_group_diagnostic_setting_output',
23
+ ]
24
+
25
+ @pulumi.output_type
26
+ class GetManagementGroupDiagnosticSettingResult:
27
+ """
28
+ The management group diagnostic setting resource.
29
+ """
30
+ def __init__(__self__, azure_api_version=None, event_hub_authorization_rule_id=None, event_hub_name=None, id=None, logs=None, marketplace_partner_id=None, name=None, service_bus_rule_id=None, storage_account_id=None, system_data=None, type=None, workspace_id=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 event_hub_authorization_rule_id and not isinstance(event_hub_authorization_rule_id, str):
35
+ raise TypeError("Expected argument 'event_hub_authorization_rule_id' to be a str")
36
+ pulumi.set(__self__, "event_hub_authorization_rule_id", event_hub_authorization_rule_id)
37
+ if event_hub_name and not isinstance(event_hub_name, str):
38
+ raise TypeError("Expected argument 'event_hub_name' to be a str")
39
+ pulumi.set(__self__, "event_hub_name", event_hub_name)
40
+ if id and not isinstance(id, str):
41
+ raise TypeError("Expected argument 'id' to be a str")
42
+ pulumi.set(__self__, "id", id)
43
+ if logs and not isinstance(logs, list):
44
+ raise TypeError("Expected argument 'logs' to be a list")
45
+ pulumi.set(__self__, "logs", logs)
46
+ if marketplace_partner_id and not isinstance(marketplace_partner_id, str):
47
+ raise TypeError("Expected argument 'marketplace_partner_id' to be a str")
48
+ pulumi.set(__self__, "marketplace_partner_id", marketplace_partner_id)
49
+ if name and not isinstance(name, str):
50
+ raise TypeError("Expected argument 'name' to be a str")
51
+ pulumi.set(__self__, "name", name)
52
+ if service_bus_rule_id and not isinstance(service_bus_rule_id, str):
53
+ raise TypeError("Expected argument 'service_bus_rule_id' to be a str")
54
+ pulumi.set(__self__, "service_bus_rule_id", service_bus_rule_id)
55
+ if storage_account_id and not isinstance(storage_account_id, str):
56
+ raise TypeError("Expected argument 'storage_account_id' to be a str")
57
+ pulumi.set(__self__, "storage_account_id", storage_account_id)
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
+ if workspace_id and not isinstance(workspace_id, str):
65
+ raise TypeError("Expected argument 'workspace_id' to be a str")
66
+ pulumi.set(__self__, "workspace_id", workspace_id)
67
+
68
+ @property
69
+ @pulumi.getter(name="azureApiVersion")
70
+ def azure_api_version(self) -> str:
71
+ """
72
+ The Azure API version of the resource.
73
+ """
74
+ return pulumi.get(self, "azure_api_version")
75
+
76
+ @property
77
+ @pulumi.getter(name="eventHubAuthorizationRuleId")
78
+ def event_hub_authorization_rule_id(self) -> Optional[str]:
79
+ """
80
+ The resource Id for the event hub authorization rule.
81
+ """
82
+ return pulumi.get(self, "event_hub_authorization_rule_id")
83
+
84
+ @property
85
+ @pulumi.getter(name="eventHubName")
86
+ def event_hub_name(self) -> Optional[str]:
87
+ """
88
+ The name of the event hub. If none is specified, the default event hub will be selected.
89
+ """
90
+ return pulumi.get(self, "event_hub_name")
91
+
92
+ @property
93
+ @pulumi.getter
94
+ def id(self) -> str:
95
+ """
96
+ Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
97
+ """
98
+ return pulumi.get(self, "id")
99
+
100
+ @property
101
+ @pulumi.getter
102
+ def logs(self) -> Optional[Sequence['outputs.ManagementGroupLogSettingsResponse']]:
103
+ """
104
+ The list of logs settings.
105
+ """
106
+ return pulumi.get(self, "logs")
107
+
108
+ @property
109
+ @pulumi.getter(name="marketplacePartnerId")
110
+ def marketplace_partner_id(self) -> Optional[str]:
111
+ """
112
+ The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.
113
+ """
114
+ return pulumi.get(self, "marketplace_partner_id")
115
+
116
+ @property
117
+ @pulumi.getter
118
+ def name(self) -> str:
119
+ """
120
+ The name of the resource
121
+ """
122
+ return pulumi.get(self, "name")
123
+
124
+ @property
125
+ @pulumi.getter(name="serviceBusRuleId")
126
+ def service_bus_rule_id(self) -> Optional[str]:
127
+ """
128
+ The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.
129
+ """
130
+ return pulumi.get(self, "service_bus_rule_id")
131
+
132
+ @property
133
+ @pulumi.getter(name="storageAccountId")
134
+ def storage_account_id(self) -> Optional[str]:
135
+ """
136
+ The resource ID of the storage account to which you would like to send Diagnostic Logs.
137
+ """
138
+ return pulumi.get(self, "storage_account_id")
139
+
140
+ @property
141
+ @pulumi.getter(name="systemData")
142
+ def system_data(self) -> 'outputs.SystemDataResponse':
143
+ """
144
+ The system metadata related to this resource.
145
+ """
146
+ return pulumi.get(self, "system_data")
147
+
148
+ @property
149
+ @pulumi.getter
150
+ def type(self) -> str:
151
+ """
152
+ The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
153
+ """
154
+ return pulumi.get(self, "type")
155
+
156
+ @property
157
+ @pulumi.getter(name="workspaceId")
158
+ def workspace_id(self) -> Optional[str]:
159
+ """
160
+ 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
161
+ """
162
+ return pulumi.get(self, "workspace_id")
163
+
164
+
165
+ class AwaitableGetManagementGroupDiagnosticSettingResult(GetManagementGroupDiagnosticSettingResult):
166
+ # pylint: disable=using-constant-test
167
+ def __await__(self):
168
+ if False:
169
+ yield self
170
+ return GetManagementGroupDiagnosticSettingResult(
171
+ azure_api_version=self.azure_api_version,
172
+ event_hub_authorization_rule_id=self.event_hub_authorization_rule_id,
173
+ event_hub_name=self.event_hub_name,
174
+ id=self.id,
175
+ logs=self.logs,
176
+ marketplace_partner_id=self.marketplace_partner_id,
177
+ name=self.name,
178
+ service_bus_rule_id=self.service_bus_rule_id,
179
+ storage_account_id=self.storage_account_id,
180
+ system_data=self.system_data,
181
+ type=self.type,
182
+ workspace_id=self.workspace_id)
183
+
184
+
185
+ def get_management_group_diagnostic_setting(management_group_id: Optional[str] = None,
186
+ name: Optional[str] = None,
187
+ opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetManagementGroupDiagnosticSettingResult:
188
+ """
189
+ Gets the active management group diagnostic settings for the specified resource.
190
+
191
+ Uses Azure REST API version 2021-05-01-preview.
192
+
193
+
194
+ :param str management_group_id: The management group id.
195
+ :param str name: The name of the diagnostic setting.
196
+ """
197
+ __args__ = dict()
198
+ __args__['managementGroupId'] = management_group_id
199
+ __args__['name'] = name
200
+ opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
201
+ __ret__ = pulumi.runtime.invoke('azure-native:monitor:getManagementGroupDiagnosticSetting', __args__, opts=opts, typ=GetManagementGroupDiagnosticSettingResult).value
202
+
203
+ return AwaitableGetManagementGroupDiagnosticSettingResult(
204
+ azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
205
+ event_hub_authorization_rule_id=pulumi.get(__ret__, 'event_hub_authorization_rule_id'),
206
+ event_hub_name=pulumi.get(__ret__, 'event_hub_name'),
207
+ id=pulumi.get(__ret__, 'id'),
208
+ logs=pulumi.get(__ret__, 'logs'),
209
+ marketplace_partner_id=pulumi.get(__ret__, 'marketplace_partner_id'),
210
+ name=pulumi.get(__ret__, 'name'),
211
+ service_bus_rule_id=pulumi.get(__ret__, 'service_bus_rule_id'),
212
+ storage_account_id=pulumi.get(__ret__, 'storage_account_id'),
213
+ system_data=pulumi.get(__ret__, 'system_data'),
214
+ type=pulumi.get(__ret__, 'type'),
215
+ workspace_id=pulumi.get(__ret__, 'workspace_id'))
216
+ def get_management_group_diagnostic_setting_output(management_group_id: Optional[pulumi.Input[str]] = None,
217
+ name: Optional[pulumi.Input[str]] = None,
218
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetManagementGroupDiagnosticSettingResult]:
219
+ """
220
+ Gets the active management group diagnostic settings for the specified resource.
221
+
222
+ Uses Azure REST API version 2021-05-01-preview.
223
+
224
+
225
+ :param str management_group_id: The management group id.
226
+ :param str name: The name of the diagnostic setting.
227
+ """
228
+ __args__ = dict()
229
+ __args__['managementGroupId'] = management_group_id
230
+ __args__['name'] = name
231
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
232
+ __ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getManagementGroupDiagnosticSetting', __args__, opts=opts, typ=GetManagementGroupDiagnosticSettingResult)
233
+ return __ret__.apply(lambda __response__: GetManagementGroupDiagnosticSettingResult(
234
+ azure_api_version=pulumi.get(__response__, 'azure_api_version'),
235
+ event_hub_authorization_rule_id=pulumi.get(__response__, 'event_hub_authorization_rule_id'),
236
+ event_hub_name=pulumi.get(__response__, 'event_hub_name'),
237
+ id=pulumi.get(__response__, 'id'),
238
+ logs=pulumi.get(__response__, 'logs'),
239
+ marketplace_partner_id=pulumi.get(__response__, 'marketplace_partner_id'),
240
+ name=pulumi.get(__response__, 'name'),
241
+ service_bus_rule_id=pulumi.get(__response__, 'service_bus_rule_id'),
242
+ storage_account_id=pulumi.get(__response__, 'storage_account_id'),
243
+ system_data=pulumi.get(__response__, 'system_data'),
244
+ type=pulumi.get(__response__, 'type'),
245
+ workspace_id=pulumi.get(__response__, 'workspace_id')))