pulumi-azure-native 3.0.0a1743504154__py3-none-any.whl → 3.1.0a1744013012__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 +4 -0
- pulumi_azure_native/monitor/__init__.py +9 -0
- pulumi_azure_native/monitor/_enums.py +101 -0
- pulumi_azure_native/monitor/_inputs.py +2120 -548
- pulumi_azure_native/monitor/autoscale_setting.py +397 -0
- pulumi_azure_native/monitor/diagnostic_setting.py +444 -0
- pulumi_azure_native/monitor/get_autoscale_setting.py +189 -0
- pulumi_azure_native/monitor/get_diagnostic_setting.py +273 -0
- pulumi_azure_native/monitor/get_management_group_diagnostic_setting.py +245 -0
- pulumi_azure_native/monitor/get_subscription_diagnostic_setting.py +239 -0
- pulumi_azure_native/monitor/list_diagnostic_settings_category.py +85 -0
- pulumi_azure_native/monitor/management_group_diagnostic_setting.py +386 -0
- pulumi_azure_native/monitor/outputs.py +1406 -9
- pulumi_azure_native/monitor/subscription_diagnostic_setting.py +365 -0
- pulumi_azure_native/pulumi-plugin.json +1 -1
- {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0a1744013012.dist-info}/METADATA +1 -1
- {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0a1744013012.dist-info}/RECORD +19 -10
- {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0a1744013012.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-3.0.0a1743504154.dist-info → pulumi_azure_native-3.1.0a1744013012.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,239 @@
|
|
|
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
|
+
'GetSubscriptionDiagnosticSettingResult',
|
|
20
|
+
'AwaitableGetSubscriptionDiagnosticSettingResult',
|
|
21
|
+
'get_subscription_diagnostic_setting',
|
|
22
|
+
'get_subscription_diagnostic_setting_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class GetSubscriptionDiagnosticSettingResult:
|
|
27
|
+
"""
|
|
28
|
+
The subscription 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.SubscriptionLogSettingsResponse']]:
|
|
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 AwaitableGetSubscriptionDiagnosticSettingResult(GetSubscriptionDiagnosticSettingResult):
|
|
166
|
+
# pylint: disable=using-constant-test
|
|
167
|
+
def __await__(self):
|
|
168
|
+
if False:
|
|
169
|
+
yield self
|
|
170
|
+
return GetSubscriptionDiagnosticSettingResult(
|
|
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_subscription_diagnostic_setting(name: Optional[str] = None,
|
|
186
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSubscriptionDiagnosticSettingResult:
|
|
187
|
+
"""
|
|
188
|
+
Gets the active subscription diagnostic settings for the specified resource.
|
|
189
|
+
|
|
190
|
+
Uses Azure REST API version 2021-05-01-preview.
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
:param str name: The name of the diagnostic setting.
|
|
194
|
+
"""
|
|
195
|
+
__args__ = dict()
|
|
196
|
+
__args__['name'] = name
|
|
197
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
198
|
+
__ret__ = pulumi.runtime.invoke('azure-native:monitor:getSubscriptionDiagnosticSetting', __args__, opts=opts, typ=GetSubscriptionDiagnosticSettingResult).value
|
|
199
|
+
|
|
200
|
+
return AwaitableGetSubscriptionDiagnosticSettingResult(
|
|
201
|
+
azure_api_version=pulumi.get(__ret__, 'azure_api_version'),
|
|
202
|
+
event_hub_authorization_rule_id=pulumi.get(__ret__, 'event_hub_authorization_rule_id'),
|
|
203
|
+
event_hub_name=pulumi.get(__ret__, 'event_hub_name'),
|
|
204
|
+
id=pulumi.get(__ret__, 'id'),
|
|
205
|
+
logs=pulumi.get(__ret__, 'logs'),
|
|
206
|
+
marketplace_partner_id=pulumi.get(__ret__, 'marketplace_partner_id'),
|
|
207
|
+
name=pulumi.get(__ret__, 'name'),
|
|
208
|
+
service_bus_rule_id=pulumi.get(__ret__, 'service_bus_rule_id'),
|
|
209
|
+
storage_account_id=pulumi.get(__ret__, 'storage_account_id'),
|
|
210
|
+
system_data=pulumi.get(__ret__, 'system_data'),
|
|
211
|
+
type=pulumi.get(__ret__, 'type'),
|
|
212
|
+
workspace_id=pulumi.get(__ret__, 'workspace_id'))
|
|
213
|
+
def get_subscription_diagnostic_setting_output(name: Optional[pulumi.Input[str]] = None,
|
|
214
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSubscriptionDiagnosticSettingResult]:
|
|
215
|
+
"""
|
|
216
|
+
Gets the active subscription diagnostic settings for the specified resource.
|
|
217
|
+
|
|
218
|
+
Uses Azure REST API version 2021-05-01-preview.
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
:param str name: The name of the diagnostic setting.
|
|
222
|
+
"""
|
|
223
|
+
__args__ = dict()
|
|
224
|
+
__args__['name'] = name
|
|
225
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
226
|
+
__ret__ = pulumi.runtime.invoke_output('azure-native:monitor:getSubscriptionDiagnosticSetting', __args__, opts=opts, typ=GetSubscriptionDiagnosticSettingResult)
|
|
227
|
+
return __ret__.apply(lambda __response__: GetSubscriptionDiagnosticSettingResult(
|
|
228
|
+
azure_api_version=pulumi.get(__response__, 'azure_api_version'),
|
|
229
|
+
event_hub_authorization_rule_id=pulumi.get(__response__, 'event_hub_authorization_rule_id'),
|
|
230
|
+
event_hub_name=pulumi.get(__response__, 'event_hub_name'),
|
|
231
|
+
id=pulumi.get(__response__, 'id'),
|
|
232
|
+
logs=pulumi.get(__response__, 'logs'),
|
|
233
|
+
marketplace_partner_id=pulumi.get(__response__, 'marketplace_partner_id'),
|
|
234
|
+
name=pulumi.get(__response__, 'name'),
|
|
235
|
+
service_bus_rule_id=pulumi.get(__response__, 'service_bus_rule_id'),
|
|
236
|
+
storage_account_id=pulumi.get(__response__, 'storage_account_id'),
|
|
237
|
+
system_data=pulumi.get(__response__, 'system_data'),
|
|
238
|
+
type=pulumi.get(__response__, 'type'),
|
|
239
|
+
workspace_id=pulumi.get(__response__, 'workspace_id')))
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
'ListDiagnosticSettingsCategoryResult',
|
|
20
|
+
'AwaitableListDiagnosticSettingsCategoryResult',
|
|
21
|
+
'list_diagnostic_settings_category',
|
|
22
|
+
'list_diagnostic_settings_category_output',
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
@pulumi.output_type
|
|
26
|
+
class ListDiagnosticSettingsCategoryResult:
|
|
27
|
+
"""
|
|
28
|
+
Represents a collection of diagnostic setting category resources.
|
|
29
|
+
"""
|
|
30
|
+
def __init__(__self__, value=None):
|
|
31
|
+
if value and not isinstance(value, list):
|
|
32
|
+
raise TypeError("Expected argument 'value' to be a list")
|
|
33
|
+
pulumi.set(__self__, "value", value)
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
@pulumi.getter
|
|
37
|
+
def value(self) -> Optional[Sequence['outputs.DiagnosticSettingsCategoryResourceResponse']]:
|
|
38
|
+
"""
|
|
39
|
+
The collection of diagnostic settings category resources.
|
|
40
|
+
"""
|
|
41
|
+
return pulumi.get(self, "value")
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class AwaitableListDiagnosticSettingsCategoryResult(ListDiagnosticSettingsCategoryResult):
|
|
45
|
+
# pylint: disable=using-constant-test
|
|
46
|
+
def __await__(self):
|
|
47
|
+
if False:
|
|
48
|
+
yield self
|
|
49
|
+
return ListDiagnosticSettingsCategoryResult(
|
|
50
|
+
value=self.value)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def list_diagnostic_settings_category(resource_uri: Optional[str] = None,
|
|
54
|
+
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListDiagnosticSettingsCategoryResult:
|
|
55
|
+
"""
|
|
56
|
+
Lists the diagnostic settings categories for the specified resource.
|
|
57
|
+
|
|
58
|
+
Uses Azure REST API version 2021-05-01-preview.
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
:param str resource_uri: The identifier of the resource.
|
|
62
|
+
"""
|
|
63
|
+
__args__ = dict()
|
|
64
|
+
__args__['resourceUri'] = resource_uri
|
|
65
|
+
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
66
|
+
__ret__ = pulumi.runtime.invoke('azure-native:monitor:listDiagnosticSettingsCategory', __args__, opts=opts, typ=ListDiagnosticSettingsCategoryResult).value
|
|
67
|
+
|
|
68
|
+
return AwaitableListDiagnosticSettingsCategoryResult(
|
|
69
|
+
value=pulumi.get(__ret__, 'value'))
|
|
70
|
+
def list_diagnostic_settings_category_output(resource_uri: Optional[pulumi.Input[str]] = None,
|
|
71
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[ListDiagnosticSettingsCategoryResult]:
|
|
72
|
+
"""
|
|
73
|
+
Lists the diagnostic settings categories for the specified resource.
|
|
74
|
+
|
|
75
|
+
Uses Azure REST API version 2021-05-01-preview.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param str resource_uri: The identifier of the resource.
|
|
79
|
+
"""
|
|
80
|
+
__args__ = dict()
|
|
81
|
+
__args__['resourceUri'] = resource_uri
|
|
82
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
|
83
|
+
__ret__ = pulumi.runtime.invoke_output('azure-native:monitor:listDiagnosticSettingsCategory', __args__, opts=opts, typ=ListDiagnosticSettingsCategoryResult)
|
|
84
|
+
return __ret__.apply(lambda __response__: ListDiagnosticSettingsCategoryResult(
|
|
85
|
+
value=pulumi.get(__response__, 'value')))
|