pulumi-azure-native 2.25.1a1705492661__py3-none-any.whl → 2.26.1__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 +9 -0
- pulumi_azure_native/security/__init__.py +5 -0
- pulumi_azure_native/security/_inputs.py +82 -0
- pulumi_azure_native/security/defender_for_storage.py +273 -0
- pulumi_azure_native/security/get_defender_for_storage.py +159 -0
- pulumi_azure_native/security/outputs.py +136 -0
- pulumi_azure_native/security/v20221201preview/__init__.py +11 -0
- pulumi_azure_native/security/v20221201preview/_inputs.py +96 -0
- pulumi_azure_native/security/v20221201preview/defender_for_storage.py +271 -0
- pulumi_azure_native/security/v20221201preview/get_defender_for_storage.py +157 -0
- pulumi_azure_native/security/v20221201preview/outputs.py +187 -0
- {pulumi_azure_native-2.25.1a1705492661.dist-info → pulumi_azure_native-2.26.1.dist-info}/METADATA +1 -1
- {pulumi_azure_native-2.25.1a1705492661.dist-info → pulumi_azure_native-2.26.1.dist-info}/RECORD +15 -8
- {pulumi_azure_native-2.25.1a1705492661.dist-info → pulumi_azure_native-2.26.1.dist-info}/WHEEL +0 -0
- {pulumi_azure_native-2.25.1a1705492661.dist-info → pulumi_azure_native-2.26.1.dist-info}/top_level.txt +0 -0
|
@@ -122,6 +122,7 @@ __all__ = [
|
|
|
122
122
|
'JitNetworkAccessRequestPortResponse',
|
|
123
123
|
'JitNetworkAccessRequestResponse',
|
|
124
124
|
'JitNetworkAccessRequestVirtualMachineResponse',
|
|
125
|
+
'MalwareScanningPropertiesResponse',
|
|
125
126
|
'OnPremiseResourceDetailsResponse',
|
|
126
127
|
'OnPremiseSqlResourceDetailsResponse',
|
|
127
128
|
'OperationStatusResponse',
|
|
@@ -139,6 +140,7 @@ __all__ = [
|
|
|
139
140
|
'SecurityAssessmentPartnerDataResponse',
|
|
140
141
|
'SecurityContactPropertiesResponseAlertNotifications',
|
|
141
142
|
'SecurityContactPropertiesResponseNotificationsByRole',
|
|
143
|
+
'SensitiveDataDiscoveryPropertiesResponse',
|
|
142
144
|
'ServicePrincipalPropertiesResponse',
|
|
143
145
|
'StandardComponentPropertiesResponse',
|
|
144
146
|
'SuppressionAlertsScopeResponse',
|
|
@@ -7056,6 +7058,87 @@ class JitNetworkAccessRequestVirtualMachineResponse(dict):
|
|
|
7056
7058
|
return pulumi.get(self, "ports")
|
|
7057
7059
|
|
|
7058
7060
|
|
|
7061
|
+
@pulumi.output_type
|
|
7062
|
+
class MalwareScanningPropertiesResponse(dict):
|
|
7063
|
+
"""
|
|
7064
|
+
Properties of Malware Scanning.
|
|
7065
|
+
"""
|
|
7066
|
+
@staticmethod
|
|
7067
|
+
def __key_warning(key: str):
|
|
7068
|
+
suggest = None
|
|
7069
|
+
if key == "operationStatus":
|
|
7070
|
+
suggest = "operation_status"
|
|
7071
|
+
elif key == "capGBPerMonth":
|
|
7072
|
+
suggest = "cap_gb_per_month"
|
|
7073
|
+
elif key == "isEnabled":
|
|
7074
|
+
suggest = "is_enabled"
|
|
7075
|
+
elif key == "scanResultsEventGridTopicResourceId":
|
|
7076
|
+
suggest = "scan_results_event_grid_topic_resource_id"
|
|
7077
|
+
|
|
7078
|
+
if suggest:
|
|
7079
|
+
pulumi.log.warn(f"Key '{key}' not found in MalwareScanningPropertiesResponse. Access the value via the '{suggest}' property getter instead.")
|
|
7080
|
+
|
|
7081
|
+
def __getitem__(self, key: str) -> Any:
|
|
7082
|
+
MalwareScanningPropertiesResponse.__key_warning(key)
|
|
7083
|
+
return super().__getitem__(key)
|
|
7084
|
+
|
|
7085
|
+
def get(self, key: str, default = None) -> Any:
|
|
7086
|
+
MalwareScanningPropertiesResponse.__key_warning(key)
|
|
7087
|
+
return super().get(key, default)
|
|
7088
|
+
|
|
7089
|
+
def __init__(__self__, *,
|
|
7090
|
+
operation_status: 'outputs.OperationStatusResponse',
|
|
7091
|
+
cap_gb_per_month: Optional[int] = None,
|
|
7092
|
+
is_enabled: Optional[bool] = None,
|
|
7093
|
+
scan_results_event_grid_topic_resource_id: Optional[str] = None):
|
|
7094
|
+
"""
|
|
7095
|
+
Properties of Malware Scanning.
|
|
7096
|
+
:param 'OperationStatusResponse' operation_status: Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
|
|
7097
|
+
:param int cap_gb_per_month: Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
|
|
7098
|
+
:param bool is_enabled: Indicates whether On Upload malware scanning should be enabled.
|
|
7099
|
+
:param str scan_results_event_grid_topic_resource_id: Optional. Resource id of an Event Grid Topic to send scan results to.
|
|
7100
|
+
"""
|
|
7101
|
+
pulumi.set(__self__, "operation_status", operation_status)
|
|
7102
|
+
if cap_gb_per_month is not None:
|
|
7103
|
+
pulumi.set(__self__, "cap_gb_per_month", cap_gb_per_month)
|
|
7104
|
+
if is_enabled is not None:
|
|
7105
|
+
pulumi.set(__self__, "is_enabled", is_enabled)
|
|
7106
|
+
if scan_results_event_grid_topic_resource_id is not None:
|
|
7107
|
+
pulumi.set(__self__, "scan_results_event_grid_topic_resource_id", scan_results_event_grid_topic_resource_id)
|
|
7108
|
+
|
|
7109
|
+
@property
|
|
7110
|
+
@pulumi.getter(name="operationStatus")
|
|
7111
|
+
def operation_status(self) -> 'outputs.OperationStatusResponse':
|
|
7112
|
+
"""
|
|
7113
|
+
Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
|
|
7114
|
+
"""
|
|
7115
|
+
return pulumi.get(self, "operation_status")
|
|
7116
|
+
|
|
7117
|
+
@property
|
|
7118
|
+
@pulumi.getter(name="capGBPerMonth")
|
|
7119
|
+
def cap_gb_per_month(self) -> Optional[int]:
|
|
7120
|
+
"""
|
|
7121
|
+
Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
|
|
7122
|
+
"""
|
|
7123
|
+
return pulumi.get(self, "cap_gb_per_month")
|
|
7124
|
+
|
|
7125
|
+
@property
|
|
7126
|
+
@pulumi.getter(name="isEnabled")
|
|
7127
|
+
def is_enabled(self) -> Optional[bool]:
|
|
7128
|
+
"""
|
|
7129
|
+
Indicates whether On Upload malware scanning should be enabled.
|
|
7130
|
+
"""
|
|
7131
|
+
return pulumi.get(self, "is_enabled")
|
|
7132
|
+
|
|
7133
|
+
@property
|
|
7134
|
+
@pulumi.getter(name="scanResultsEventGridTopicResourceId")
|
|
7135
|
+
def scan_results_event_grid_topic_resource_id(self) -> Optional[str]:
|
|
7136
|
+
"""
|
|
7137
|
+
Optional. Resource id of an Event Grid Topic to send scan results to.
|
|
7138
|
+
"""
|
|
7139
|
+
return pulumi.get(self, "scan_results_event_grid_topic_resource_id")
|
|
7140
|
+
|
|
7141
|
+
|
|
7059
7142
|
@pulumi.output_type
|
|
7060
7143
|
class OnPremiseResourceDetailsResponse(dict):
|
|
7061
7144
|
"""
|
|
@@ -8151,6 +8234,59 @@ class SecurityContactPropertiesResponseNotificationsByRole(dict):
|
|
|
8151
8234
|
return pulumi.get(self, "state")
|
|
8152
8235
|
|
|
8153
8236
|
|
|
8237
|
+
@pulumi.output_type
|
|
8238
|
+
class SensitiveDataDiscoveryPropertiesResponse(dict):
|
|
8239
|
+
"""
|
|
8240
|
+
Properties of Sensitive Data Discovery.
|
|
8241
|
+
"""
|
|
8242
|
+
@staticmethod
|
|
8243
|
+
def __key_warning(key: str):
|
|
8244
|
+
suggest = None
|
|
8245
|
+
if key == "operationStatus":
|
|
8246
|
+
suggest = "operation_status"
|
|
8247
|
+
elif key == "isEnabled":
|
|
8248
|
+
suggest = "is_enabled"
|
|
8249
|
+
|
|
8250
|
+
if suggest:
|
|
8251
|
+
pulumi.log.warn(f"Key '{key}' not found in SensitiveDataDiscoveryPropertiesResponse. Access the value via the '{suggest}' property getter instead.")
|
|
8252
|
+
|
|
8253
|
+
def __getitem__(self, key: str) -> Any:
|
|
8254
|
+
SensitiveDataDiscoveryPropertiesResponse.__key_warning(key)
|
|
8255
|
+
return super().__getitem__(key)
|
|
8256
|
+
|
|
8257
|
+
def get(self, key: str, default = None) -> Any:
|
|
8258
|
+
SensitiveDataDiscoveryPropertiesResponse.__key_warning(key)
|
|
8259
|
+
return super().get(key, default)
|
|
8260
|
+
|
|
8261
|
+
def __init__(__self__, *,
|
|
8262
|
+
operation_status: 'outputs.OperationStatusResponse',
|
|
8263
|
+
is_enabled: Optional[bool] = None):
|
|
8264
|
+
"""
|
|
8265
|
+
Properties of Sensitive Data Discovery.
|
|
8266
|
+
:param 'OperationStatusResponse' operation_status: Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
|
|
8267
|
+
:param bool is_enabled: Indicates whether Sensitive Data Discovery should be enabled.
|
|
8268
|
+
"""
|
|
8269
|
+
pulumi.set(__self__, "operation_status", operation_status)
|
|
8270
|
+
if is_enabled is not None:
|
|
8271
|
+
pulumi.set(__self__, "is_enabled", is_enabled)
|
|
8272
|
+
|
|
8273
|
+
@property
|
|
8274
|
+
@pulumi.getter(name="operationStatus")
|
|
8275
|
+
def operation_status(self) -> 'outputs.OperationStatusResponse':
|
|
8276
|
+
"""
|
|
8277
|
+
Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
|
|
8278
|
+
"""
|
|
8279
|
+
return pulumi.get(self, "operation_status")
|
|
8280
|
+
|
|
8281
|
+
@property
|
|
8282
|
+
@pulumi.getter(name="isEnabled")
|
|
8283
|
+
def is_enabled(self) -> Optional[bool]:
|
|
8284
|
+
"""
|
|
8285
|
+
Indicates whether Sensitive Data Discovery should be enabled.
|
|
8286
|
+
"""
|
|
8287
|
+
return pulumi.get(self, "is_enabled")
|
|
8288
|
+
|
|
8289
|
+
|
|
8154
8290
|
@pulumi.output_type
|
|
8155
8291
|
class ServicePrincipalPropertiesResponse(dict):
|
|
8156
8292
|
"""
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
from ... import _utilities
|
|
6
|
+
import typing
|
|
7
|
+
# Export this package's modules as members:
|
|
8
|
+
from .defender_for_storage import *
|
|
9
|
+
from .get_defender_for_storage import *
|
|
10
|
+
from ._inputs import *
|
|
11
|
+
from . import outputs
|
|
@@ -0,0 +1,96 @@
|
|
|
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 pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from ... import _utilities
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
'MalwareScanningPropertiesArgs',
|
|
14
|
+
'SensitiveDataDiscoveryPropertiesArgs',
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
@pulumi.input_type
|
|
18
|
+
class MalwareScanningPropertiesArgs:
|
|
19
|
+
def __init__(__self__, *,
|
|
20
|
+
cap_gb_per_month: Optional[pulumi.Input[int]] = None,
|
|
21
|
+
is_enabled: Optional[pulumi.Input[bool]] = None,
|
|
22
|
+
scan_results_event_grid_topic_resource_id: Optional[pulumi.Input[str]] = None):
|
|
23
|
+
"""
|
|
24
|
+
Properties of Malware Scanning.
|
|
25
|
+
:param pulumi.Input[int] cap_gb_per_month: Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
|
|
26
|
+
:param pulumi.Input[bool] is_enabled: Indicates whether On Upload malware scanning should be enabled.
|
|
27
|
+
:param pulumi.Input[str] scan_results_event_grid_topic_resource_id: Optional. Resource id of an Event Grid Topic to send scan results to.
|
|
28
|
+
"""
|
|
29
|
+
if cap_gb_per_month is not None:
|
|
30
|
+
pulumi.set(__self__, "cap_gb_per_month", cap_gb_per_month)
|
|
31
|
+
if is_enabled is not None:
|
|
32
|
+
pulumi.set(__self__, "is_enabled", is_enabled)
|
|
33
|
+
if scan_results_event_grid_topic_resource_id is not None:
|
|
34
|
+
pulumi.set(__self__, "scan_results_event_grid_topic_resource_id", scan_results_event_grid_topic_resource_id)
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
@pulumi.getter(name="capGBPerMonth")
|
|
38
|
+
def cap_gb_per_month(self) -> Optional[pulumi.Input[int]]:
|
|
39
|
+
"""
|
|
40
|
+
Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
|
|
41
|
+
"""
|
|
42
|
+
return pulumi.get(self, "cap_gb_per_month")
|
|
43
|
+
|
|
44
|
+
@cap_gb_per_month.setter
|
|
45
|
+
def cap_gb_per_month(self, value: Optional[pulumi.Input[int]]):
|
|
46
|
+
pulumi.set(self, "cap_gb_per_month", value)
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
@pulumi.getter(name="isEnabled")
|
|
50
|
+
def is_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
51
|
+
"""
|
|
52
|
+
Indicates whether On Upload malware scanning should be enabled.
|
|
53
|
+
"""
|
|
54
|
+
return pulumi.get(self, "is_enabled")
|
|
55
|
+
|
|
56
|
+
@is_enabled.setter
|
|
57
|
+
def is_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
58
|
+
pulumi.set(self, "is_enabled", value)
|
|
59
|
+
|
|
60
|
+
@property
|
|
61
|
+
@pulumi.getter(name="scanResultsEventGridTopicResourceId")
|
|
62
|
+
def scan_results_event_grid_topic_resource_id(self) -> Optional[pulumi.Input[str]]:
|
|
63
|
+
"""
|
|
64
|
+
Optional. Resource id of an Event Grid Topic to send scan results to.
|
|
65
|
+
"""
|
|
66
|
+
return pulumi.get(self, "scan_results_event_grid_topic_resource_id")
|
|
67
|
+
|
|
68
|
+
@scan_results_event_grid_topic_resource_id.setter
|
|
69
|
+
def scan_results_event_grid_topic_resource_id(self, value: Optional[pulumi.Input[str]]):
|
|
70
|
+
pulumi.set(self, "scan_results_event_grid_topic_resource_id", value)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@pulumi.input_type
|
|
74
|
+
class SensitiveDataDiscoveryPropertiesArgs:
|
|
75
|
+
def __init__(__self__, *,
|
|
76
|
+
is_enabled: Optional[pulumi.Input[bool]] = None):
|
|
77
|
+
"""
|
|
78
|
+
Properties of Sensitive Data Discovery.
|
|
79
|
+
:param pulumi.Input[bool] is_enabled: Indicates whether Sensitive Data Discovery should be enabled.
|
|
80
|
+
"""
|
|
81
|
+
if is_enabled is not None:
|
|
82
|
+
pulumi.set(__self__, "is_enabled", is_enabled)
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
@pulumi.getter(name="isEnabled")
|
|
86
|
+
def is_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
87
|
+
"""
|
|
88
|
+
Indicates whether Sensitive Data Discovery should be enabled.
|
|
89
|
+
"""
|
|
90
|
+
return pulumi.get(self, "is_enabled")
|
|
91
|
+
|
|
92
|
+
@is_enabled.setter
|
|
93
|
+
def is_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
94
|
+
pulumi.set(self, "is_enabled", value)
|
|
95
|
+
|
|
96
|
+
|
|
@@ -0,0 +1,271 @@
|
|
|
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 pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from ... import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
from ._inputs import *
|
|
13
|
+
|
|
14
|
+
__all__ = ['DefenderForStorageArgs', 'DefenderForStorage']
|
|
15
|
+
|
|
16
|
+
@pulumi.input_type
|
|
17
|
+
class DefenderForStorageArgs:
|
|
18
|
+
def __init__(__self__, *,
|
|
19
|
+
resource_id: pulumi.Input[str],
|
|
20
|
+
is_enabled: Optional[pulumi.Input[bool]] = None,
|
|
21
|
+
malware_scanning: Optional[pulumi.Input['MalwareScanningPropertiesArgs']] = None,
|
|
22
|
+
override_subscription_level_settings: Optional[pulumi.Input[bool]] = None,
|
|
23
|
+
sensitive_data_discovery: Optional[pulumi.Input['SensitiveDataDiscoveryPropertiesArgs']] = None,
|
|
24
|
+
setting_name: Optional[pulumi.Input[str]] = None):
|
|
25
|
+
"""
|
|
26
|
+
The set of arguments for constructing a DefenderForStorage resource.
|
|
27
|
+
:param pulumi.Input[str] resource_id: The identifier of the resource.
|
|
28
|
+
:param pulumi.Input[bool] is_enabled: Indicates whether Defender for Storage is enabled on this storage account.
|
|
29
|
+
:param pulumi.Input['MalwareScanningPropertiesArgs'] malware_scanning: Properties of Malware Scanning.
|
|
30
|
+
:param pulumi.Input[bool] override_subscription_level_settings: Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
|
|
31
|
+
:param pulumi.Input['SensitiveDataDiscoveryPropertiesArgs'] sensitive_data_discovery: Properties of Sensitive Data Discovery.
|
|
32
|
+
:param pulumi.Input[str] setting_name: Defender for Storage setting name.
|
|
33
|
+
"""
|
|
34
|
+
pulumi.set(__self__, "resource_id", resource_id)
|
|
35
|
+
if is_enabled is not None:
|
|
36
|
+
pulumi.set(__self__, "is_enabled", is_enabled)
|
|
37
|
+
if malware_scanning is not None:
|
|
38
|
+
pulumi.set(__self__, "malware_scanning", malware_scanning)
|
|
39
|
+
if override_subscription_level_settings is not None:
|
|
40
|
+
pulumi.set(__self__, "override_subscription_level_settings", override_subscription_level_settings)
|
|
41
|
+
if sensitive_data_discovery is not None:
|
|
42
|
+
pulumi.set(__self__, "sensitive_data_discovery", sensitive_data_discovery)
|
|
43
|
+
if setting_name is not None:
|
|
44
|
+
pulumi.set(__self__, "setting_name", setting_name)
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
@pulumi.getter(name="resourceId")
|
|
48
|
+
def resource_id(self) -> pulumi.Input[str]:
|
|
49
|
+
"""
|
|
50
|
+
The identifier of the resource.
|
|
51
|
+
"""
|
|
52
|
+
return pulumi.get(self, "resource_id")
|
|
53
|
+
|
|
54
|
+
@resource_id.setter
|
|
55
|
+
def resource_id(self, value: pulumi.Input[str]):
|
|
56
|
+
pulumi.set(self, "resource_id", value)
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
@pulumi.getter(name="isEnabled")
|
|
60
|
+
def is_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
61
|
+
"""
|
|
62
|
+
Indicates whether Defender for Storage is enabled on this storage account.
|
|
63
|
+
"""
|
|
64
|
+
return pulumi.get(self, "is_enabled")
|
|
65
|
+
|
|
66
|
+
@is_enabled.setter
|
|
67
|
+
def is_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
68
|
+
pulumi.set(self, "is_enabled", value)
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
@pulumi.getter(name="malwareScanning")
|
|
72
|
+
def malware_scanning(self) -> Optional[pulumi.Input['MalwareScanningPropertiesArgs']]:
|
|
73
|
+
"""
|
|
74
|
+
Properties of Malware Scanning.
|
|
75
|
+
"""
|
|
76
|
+
return pulumi.get(self, "malware_scanning")
|
|
77
|
+
|
|
78
|
+
@malware_scanning.setter
|
|
79
|
+
def malware_scanning(self, value: Optional[pulumi.Input['MalwareScanningPropertiesArgs']]):
|
|
80
|
+
pulumi.set(self, "malware_scanning", value)
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
@pulumi.getter(name="overrideSubscriptionLevelSettings")
|
|
84
|
+
def override_subscription_level_settings(self) -> Optional[pulumi.Input[bool]]:
|
|
85
|
+
"""
|
|
86
|
+
Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
|
|
87
|
+
"""
|
|
88
|
+
return pulumi.get(self, "override_subscription_level_settings")
|
|
89
|
+
|
|
90
|
+
@override_subscription_level_settings.setter
|
|
91
|
+
def override_subscription_level_settings(self, value: Optional[pulumi.Input[bool]]):
|
|
92
|
+
pulumi.set(self, "override_subscription_level_settings", value)
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
@pulumi.getter(name="sensitiveDataDiscovery")
|
|
96
|
+
def sensitive_data_discovery(self) -> Optional[pulumi.Input['SensitiveDataDiscoveryPropertiesArgs']]:
|
|
97
|
+
"""
|
|
98
|
+
Properties of Sensitive Data Discovery.
|
|
99
|
+
"""
|
|
100
|
+
return pulumi.get(self, "sensitive_data_discovery")
|
|
101
|
+
|
|
102
|
+
@sensitive_data_discovery.setter
|
|
103
|
+
def sensitive_data_discovery(self, value: Optional[pulumi.Input['SensitiveDataDiscoveryPropertiesArgs']]):
|
|
104
|
+
pulumi.set(self, "sensitive_data_discovery", value)
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
@pulumi.getter(name="settingName")
|
|
108
|
+
def setting_name(self) -> Optional[pulumi.Input[str]]:
|
|
109
|
+
"""
|
|
110
|
+
Defender for Storage setting name.
|
|
111
|
+
"""
|
|
112
|
+
return pulumi.get(self, "setting_name")
|
|
113
|
+
|
|
114
|
+
@setting_name.setter
|
|
115
|
+
def setting_name(self, value: Optional[pulumi.Input[str]]):
|
|
116
|
+
pulumi.set(self, "setting_name", value)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class DefenderForStorage(pulumi.CustomResource):
|
|
120
|
+
@overload
|
|
121
|
+
def __init__(__self__,
|
|
122
|
+
resource_name: str,
|
|
123
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
124
|
+
is_enabled: Optional[pulumi.Input[bool]] = None,
|
|
125
|
+
malware_scanning: Optional[pulumi.Input[pulumi.InputType['MalwareScanningPropertiesArgs']]] = None,
|
|
126
|
+
override_subscription_level_settings: Optional[pulumi.Input[bool]] = None,
|
|
127
|
+
resource_id: Optional[pulumi.Input[str]] = None,
|
|
128
|
+
sensitive_data_discovery: Optional[pulumi.Input[pulumi.InputType['SensitiveDataDiscoveryPropertiesArgs']]] = None,
|
|
129
|
+
setting_name: Optional[pulumi.Input[str]] = None,
|
|
130
|
+
__props__=None):
|
|
131
|
+
"""
|
|
132
|
+
The Defender for Storage resource.
|
|
133
|
+
|
|
134
|
+
:param str resource_name: The name of the resource.
|
|
135
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
136
|
+
:param pulumi.Input[bool] is_enabled: Indicates whether Defender for Storage is enabled on this storage account.
|
|
137
|
+
:param pulumi.Input[pulumi.InputType['MalwareScanningPropertiesArgs']] malware_scanning: Properties of Malware Scanning.
|
|
138
|
+
:param pulumi.Input[bool] override_subscription_level_settings: Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
|
|
139
|
+
:param pulumi.Input[str] resource_id: The identifier of the resource.
|
|
140
|
+
:param pulumi.Input[pulumi.InputType['SensitiveDataDiscoveryPropertiesArgs']] sensitive_data_discovery: Properties of Sensitive Data Discovery.
|
|
141
|
+
:param pulumi.Input[str] setting_name: Defender for Storage setting name.
|
|
142
|
+
"""
|
|
143
|
+
...
|
|
144
|
+
@overload
|
|
145
|
+
def __init__(__self__,
|
|
146
|
+
resource_name: str,
|
|
147
|
+
args: DefenderForStorageArgs,
|
|
148
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
149
|
+
"""
|
|
150
|
+
The Defender for Storage resource.
|
|
151
|
+
|
|
152
|
+
:param str resource_name: The name of the resource.
|
|
153
|
+
:param DefenderForStorageArgs args: The arguments to use to populate this resource's properties.
|
|
154
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
155
|
+
"""
|
|
156
|
+
...
|
|
157
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
158
|
+
resource_args, opts = _utilities.get_resource_args_opts(DefenderForStorageArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
159
|
+
if resource_args is not None:
|
|
160
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
161
|
+
else:
|
|
162
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
163
|
+
|
|
164
|
+
def _internal_init(__self__,
|
|
165
|
+
resource_name: str,
|
|
166
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
167
|
+
is_enabled: Optional[pulumi.Input[bool]] = None,
|
|
168
|
+
malware_scanning: Optional[pulumi.Input[pulumi.InputType['MalwareScanningPropertiesArgs']]] = None,
|
|
169
|
+
override_subscription_level_settings: Optional[pulumi.Input[bool]] = None,
|
|
170
|
+
resource_id: Optional[pulumi.Input[str]] = None,
|
|
171
|
+
sensitive_data_discovery: Optional[pulumi.Input[pulumi.InputType['SensitiveDataDiscoveryPropertiesArgs']]] = None,
|
|
172
|
+
setting_name: Optional[pulumi.Input[str]] = None,
|
|
173
|
+
__props__=None):
|
|
174
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
175
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
176
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
177
|
+
if opts.id is None:
|
|
178
|
+
if __props__ is not None:
|
|
179
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
180
|
+
__props__ = DefenderForStorageArgs.__new__(DefenderForStorageArgs)
|
|
181
|
+
|
|
182
|
+
__props__.__dict__["is_enabled"] = is_enabled
|
|
183
|
+
__props__.__dict__["malware_scanning"] = malware_scanning
|
|
184
|
+
__props__.__dict__["override_subscription_level_settings"] = override_subscription_level_settings
|
|
185
|
+
if resource_id is None and not opts.urn:
|
|
186
|
+
raise TypeError("Missing required property 'resource_id'")
|
|
187
|
+
__props__.__dict__["resource_id"] = resource_id
|
|
188
|
+
__props__.__dict__["sensitive_data_discovery"] = sensitive_data_discovery
|
|
189
|
+
__props__.__dict__["setting_name"] = setting_name
|
|
190
|
+
__props__.__dict__["name"] = None
|
|
191
|
+
__props__.__dict__["type"] = None
|
|
192
|
+
alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="azure-native:security:DefenderForStorage")])
|
|
193
|
+
opts = pulumi.ResourceOptions.merge(opts, alias_opts)
|
|
194
|
+
super(DefenderForStorage, __self__).__init__(
|
|
195
|
+
'azure-native:security/v20221201preview:DefenderForStorage',
|
|
196
|
+
resource_name,
|
|
197
|
+
__props__,
|
|
198
|
+
opts)
|
|
199
|
+
|
|
200
|
+
@staticmethod
|
|
201
|
+
def get(resource_name: str,
|
|
202
|
+
id: pulumi.Input[str],
|
|
203
|
+
opts: Optional[pulumi.ResourceOptions] = None) -> 'DefenderForStorage':
|
|
204
|
+
"""
|
|
205
|
+
Get an existing DefenderForStorage resource's state with the given name, id, and optional extra
|
|
206
|
+
properties used to qualify the lookup.
|
|
207
|
+
|
|
208
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
209
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
210
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
211
|
+
"""
|
|
212
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
213
|
+
|
|
214
|
+
__props__ = DefenderForStorageArgs.__new__(DefenderForStorageArgs)
|
|
215
|
+
|
|
216
|
+
__props__.__dict__["is_enabled"] = None
|
|
217
|
+
__props__.__dict__["malware_scanning"] = None
|
|
218
|
+
__props__.__dict__["name"] = None
|
|
219
|
+
__props__.__dict__["override_subscription_level_settings"] = None
|
|
220
|
+
__props__.__dict__["sensitive_data_discovery"] = None
|
|
221
|
+
__props__.__dict__["type"] = None
|
|
222
|
+
return DefenderForStorage(resource_name, opts=opts, __props__=__props__)
|
|
223
|
+
|
|
224
|
+
@property
|
|
225
|
+
@pulumi.getter(name="isEnabled")
|
|
226
|
+
def is_enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
227
|
+
"""
|
|
228
|
+
Indicates whether Defender for Storage is enabled on this storage account.
|
|
229
|
+
"""
|
|
230
|
+
return pulumi.get(self, "is_enabled")
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
@pulumi.getter(name="malwareScanning")
|
|
234
|
+
def malware_scanning(self) -> pulumi.Output[Optional['outputs.MalwareScanningPropertiesResponse']]:
|
|
235
|
+
"""
|
|
236
|
+
Properties of Malware Scanning.
|
|
237
|
+
"""
|
|
238
|
+
return pulumi.get(self, "malware_scanning")
|
|
239
|
+
|
|
240
|
+
@property
|
|
241
|
+
@pulumi.getter
|
|
242
|
+
def name(self) -> pulumi.Output[str]:
|
|
243
|
+
"""
|
|
244
|
+
Resource name
|
|
245
|
+
"""
|
|
246
|
+
return pulumi.get(self, "name")
|
|
247
|
+
|
|
248
|
+
@property
|
|
249
|
+
@pulumi.getter(name="overrideSubscriptionLevelSettings")
|
|
250
|
+
def override_subscription_level_settings(self) -> pulumi.Output[Optional[bool]]:
|
|
251
|
+
"""
|
|
252
|
+
Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
|
|
253
|
+
"""
|
|
254
|
+
return pulumi.get(self, "override_subscription_level_settings")
|
|
255
|
+
|
|
256
|
+
@property
|
|
257
|
+
@pulumi.getter(name="sensitiveDataDiscovery")
|
|
258
|
+
def sensitive_data_discovery(self) -> pulumi.Output[Optional['outputs.SensitiveDataDiscoveryPropertiesResponse']]:
|
|
259
|
+
"""
|
|
260
|
+
Properties of Sensitive Data Discovery.
|
|
261
|
+
"""
|
|
262
|
+
return pulumi.get(self, "sensitive_data_discovery")
|
|
263
|
+
|
|
264
|
+
@property
|
|
265
|
+
@pulumi.getter
|
|
266
|
+
def type(self) -> pulumi.Output[str]:
|
|
267
|
+
"""
|
|
268
|
+
Resource type
|
|
269
|
+
"""
|
|
270
|
+
return pulumi.get(self, "type")
|
|
271
|
+
|