azure-native-v2.security.DefenderForStorage
Explore with Pulumi AI
The Defender for Storage resource. Azure REST API version: 2022-12-01-preview.
Other available API versions: 2024-10-01-preview.
Create DefenderForStorage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DefenderForStorage(name: string, args: DefenderForStorageArgs, opts?: CustomResourceOptions);
@overload
def DefenderForStorage(resource_name: str,
args: DefenderForStorageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DefenderForStorage(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_id: Optional[str] = None,
properties: Optional[DefenderForStorageSettingPropertiesArgs] = None,
setting_name: Optional[str] = None)
func NewDefenderForStorage(ctx *Context, name string, args DefenderForStorageArgs, opts ...ResourceOption) (*DefenderForStorage, error)
public DefenderForStorage(string name, DefenderForStorageArgs args, CustomResourceOptions? opts = null)
public DefenderForStorage(String name, DefenderForStorageArgs args)
public DefenderForStorage(String name, DefenderForStorageArgs args, CustomResourceOptions options)
type: azure-native:security:DefenderForStorage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. DefenderForStorageArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. DefenderForStorageArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. DefenderForStorageArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. DefenderForStorageArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. DefenderForStorageArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var defenderForStorageResource = new AzureNative.Security.DefenderForStorage("defenderForStorageResource", new()
{
ResourceId = "string",
Properties =
{
{ "isEnabled", false },
{ "malwareScanning",
{
{ "onUpload",
{
{ "capGBPerMonth", 0 },
{ "isEnabled", false },
} },
{ "scanResultsEventGridTopicResourceId", "string" },
} },
{ "overrideSubscriptionLevelSettings", false },
{ "sensitiveDataDiscovery",
{
{ "isEnabled", false },
} },
},
SettingName = "string",
});
example, err := security.NewDefenderForStorage(ctx, "defenderForStorageResource", &security.DefenderForStorageArgs{
ResourceId: "string",
Properties: map[string]interface{}{
"isEnabled": false,
"malwareScanning": map[string]interface{}{
"onUpload": map[string]interface{}{
"capGBPerMonth": 0,
"isEnabled": false,
},
"scanResultsEventGridTopicResourceId": "string",
},
"overrideSubscriptionLevelSettings": false,
"sensitiveDataDiscovery": map[string]interface{}{
"isEnabled": false,
},
},
SettingName: "string",
})
var defenderForStorageResource = new DefenderForStorage("defenderForStorageResource", DefenderForStorageArgs.builder()
.resourceId("string")
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.settingName("string")
.build());
defender_for_storage_resource = azure_native.security.DefenderForStorage("defenderForStorageResource",
resource_id=string,
properties={
isEnabled: False,
malwareScanning: {
onUpload: {
capGBPerMonth: 0,
isEnabled: False,
},
scanResultsEventGridTopicResourceId: string,
},
overrideSubscriptionLevelSettings: False,
sensitiveDataDiscovery: {
isEnabled: False,
},
},
setting_name=string)
const defenderForStorageResource = new azure_native.security.DefenderForStorage("defenderForStorageResource", {
resourceId: "string",
properties: {
isEnabled: false,
malwareScanning: {
onUpload: {
capGBPerMonth: 0,
isEnabled: false,
},
scanResultsEventGridTopicResourceId: "string",
},
overrideSubscriptionLevelSettings: false,
sensitiveDataDiscovery: {
isEnabled: false,
},
},
settingName: "string",
});
type: azure-native:security:DefenderForStorage
properties:
properties:
isEnabled: false
malwareScanning:
onUpload:
capGBPerMonth: 0
isEnabled: false
scanResultsEventGridTopicResourceId: string
overrideSubscriptionLevelSettings: false
sensitiveDataDiscovery:
isEnabled: false
resourceId: string
settingName: string
DefenderForStorage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DefenderForStorage resource accepts the following input properties:
- Resource
Id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- Properties
Pulumi.
Azure Native. Security. Inputs. Defender For Storage Setting Properties - Defender for Storage resource properties.
- Setting
Name Changes to this property will trigger replacement.
- Defender for Storage setting name.
- Resource
Id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- Properties
Defender
For Storage Setting Properties Args - Defender for Storage resource properties.
- Setting
Name Changes to this property will trigger replacement.
- Defender for Storage setting name.
- resource
Id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- properties
Defender
For Storage Setting Properties - Defender for Storage resource properties.
- setting
Name Changes to this property will trigger replacement.
- Defender for Storage setting name.
- resource
Id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- properties
Defender
For Storage Setting Properties - Defender for Storage resource properties.
- setting
Name Changes to this property will trigger replacement.
- Defender for Storage setting name.
- resource_
id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- properties
Defender
For Storage Setting Properties Args - Defender for Storage resource properties.
- setting_
name Changes to this property will trigger replacement.
- Defender for Storage setting name.
- resource
Id This property is required. Changes to this property will trigger replacement.
- The identifier of the resource.
- properties Property Map
- Defender for Storage resource properties.
- setting
Name Changes to this property will trigger replacement.
- Defender for Storage setting name.
Outputs
All input properties are implicitly available as output properties. Additionally, the DefenderForStorage resource produces the following output properties:
Supporting Types
DefenderForStorageSettingProperties, DefenderForStorageSettingPropertiesArgs
- Is
Enabled bool - Indicates whether Defender for Storage is enabled on this storage account.
- Malware
Scanning Pulumi.Azure Native. Security. Inputs. Malware Scanning Properties - Properties of Malware Scanning.
- Override
Subscription boolLevel Settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- Sensitive
Data Pulumi.Discovery Azure Native. Security. Inputs. Sensitive Data Discovery Properties - Properties of Sensitive Data Discovery.
- Is
Enabled bool - Indicates whether Defender for Storage is enabled on this storage account.
- Malware
Scanning MalwareScanning Properties - Properties of Malware Scanning.
- Override
Subscription boolLevel Settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- Sensitive
Data SensitiveDiscovery Data Discovery Properties - Properties of Sensitive Data Discovery.
- is
Enabled Boolean - Indicates whether Defender for Storage is enabled on this storage account.
- malware
Scanning MalwareScanning Properties - Properties of Malware Scanning.
- override
Subscription BooleanLevel Settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- sensitive
Data SensitiveDiscovery Data Discovery Properties - Properties of Sensitive Data Discovery.
- is
Enabled boolean - Indicates whether Defender for Storage is enabled on this storage account.
- malware
Scanning MalwareScanning Properties - Properties of Malware Scanning.
- override
Subscription booleanLevel Settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- sensitive
Data SensitiveDiscovery Data Discovery Properties - Properties of Sensitive Data Discovery.
- is_
enabled bool - Indicates whether Defender for Storage is enabled on this storage account.
- malware_
scanning MalwareScanning Properties - Properties of Malware Scanning.
- override_
subscription_ boollevel_ settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- sensitive_
data_ Sensitivediscovery Data Discovery Properties - Properties of Sensitive Data Discovery.
- is
Enabled Boolean - Indicates whether Defender for Storage is enabled on this storage account.
- malware
Scanning Property Map - Properties of Malware Scanning.
- override
Subscription BooleanLevel Settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- sensitive
Data Property MapDiscovery - Properties of Sensitive Data Discovery.
DefenderForStorageSettingPropertiesResponse, DefenderForStorageSettingPropertiesResponseArgs
- Is
Enabled bool - Indicates whether Defender for Storage is enabled on this storage account.
- Malware
Scanning Pulumi.Azure Native. Security. Inputs. Malware Scanning Properties Response - Properties of Malware Scanning.
- Override
Subscription boolLevel Settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- Sensitive
Data Pulumi.Discovery Azure Native. Security. Inputs. Sensitive Data Discovery Properties Response - Properties of Sensitive Data Discovery.
- Is
Enabled bool - Indicates whether Defender for Storage is enabled on this storage account.
- Malware
Scanning MalwareScanning Properties Response - Properties of Malware Scanning.
- Override
Subscription boolLevel Settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- Sensitive
Data SensitiveDiscovery Data Discovery Properties Response - Properties of Sensitive Data Discovery.
- is
Enabled Boolean - Indicates whether Defender for Storage is enabled on this storage account.
- malware
Scanning MalwareScanning Properties Response - Properties of Malware Scanning.
- override
Subscription BooleanLevel Settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- sensitive
Data SensitiveDiscovery Data Discovery Properties Response - Properties of Sensitive Data Discovery.
- is
Enabled boolean - Indicates whether Defender for Storage is enabled on this storage account.
- malware
Scanning MalwareScanning Properties Response - Properties of Malware Scanning.
- override
Subscription booleanLevel Settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- sensitive
Data SensitiveDiscovery Data Discovery Properties Response - Properties of Sensitive Data Discovery.
- is_
enabled bool - Indicates whether Defender for Storage is enabled on this storage account.
- malware_
scanning MalwareScanning Properties Response - Properties of Malware Scanning.
- override_
subscription_ boollevel_ settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- sensitive_
data_ Sensitivediscovery Data Discovery Properties Response - Properties of Sensitive Data Discovery.
- is
Enabled Boolean - Indicates whether Defender for Storage is enabled on this storage account.
- malware
Scanning Property Map - Properties of Malware Scanning.
- override
Subscription BooleanLevel Settings - Indicates whether the settings defined for this storage account should override the settings defined for the subscription.
- sensitive
Data Property MapDiscovery - Properties of Sensitive Data Discovery.
MalwareScanningProperties, MalwareScanningPropertiesArgs
- On
Upload Pulumi.Azure Native. Security. Inputs. On Upload Properties - Properties of On Upload malware scanning.
- Scan
Results stringEvent Grid Topic Resource Id - Optional. Resource id of an Event Grid Topic to send scan results to.
- On
Upload OnUpload Properties - Properties of On Upload malware scanning.
- Scan
Results stringEvent Grid Topic Resource Id - Optional. Resource id of an Event Grid Topic to send scan results to.
- on
Upload OnUpload Properties - Properties of On Upload malware scanning.
- scan
Results StringEvent Grid Topic Resource Id - Optional. Resource id of an Event Grid Topic to send scan results to.
- on
Upload OnUpload Properties - Properties of On Upload malware scanning.
- scan
Results stringEvent Grid Topic Resource Id - Optional. Resource id of an Event Grid Topic to send scan results to.
- on_
upload OnUpload Properties - Properties of On Upload malware scanning.
- scan_
results_ strevent_ grid_ topic_ resource_ id - Optional. Resource id of an Event Grid Topic to send scan results to.
- on
Upload Property Map - Properties of On Upload malware scanning.
- scan
Results StringEvent Grid Topic Resource Id - Optional. Resource id of an Event Grid Topic to send scan results to.
MalwareScanningPropertiesResponse, MalwareScanningPropertiesResponseArgs
- Operation
Status This property is required. Pulumi.Azure Native. Security. Inputs. Operation Status Response - Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
- On
Upload Pulumi.Azure Native. Security. Inputs. On Upload Properties Response - Properties of On Upload malware scanning.
- Scan
Results stringEvent Grid Topic Resource Id - Optional. Resource id of an Event Grid Topic to send scan results to.
- Operation
Status This property is required. OperationStatus Response - Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
- On
Upload OnUpload Properties Response - Properties of On Upload malware scanning.
- Scan
Results stringEvent Grid Topic Resource Id - Optional. Resource id of an Event Grid Topic to send scan results to.
- operation
Status This property is required. OperationStatus Response - Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
- on
Upload OnUpload Properties Response - Properties of On Upload malware scanning.
- scan
Results StringEvent Grid Topic Resource Id - Optional. Resource id of an Event Grid Topic to send scan results to.
- operation
Status This property is required. OperationStatus Response - Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
- on
Upload OnUpload Properties Response - Properties of On Upload malware scanning.
- scan
Results stringEvent Grid Topic Resource Id - Optional. Resource id of an Event Grid Topic to send scan results to.
- operation_
status This property is required. OperationStatus Response - Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
- on_
upload OnUpload Properties Response - Properties of On Upload malware scanning.
- scan_
results_ strevent_ grid_ topic_ resource_ id - Optional. Resource id of an Event Grid Topic to send scan results to.
- operation
Status This property is required. Property Map - Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation.
- on
Upload Property Map - Properties of On Upload malware scanning.
- scan
Results StringEvent Grid Topic Resource Id - Optional. Resource id of an Event Grid Topic to send scan results to.
OnUploadProperties, OnUploadPropertiesArgs
- Cap
GBPer intMonth - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- Is
Enabled bool - Indicates whether On Upload malware scanning should be enabled.
- Cap
GBPer intMonth - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- Is
Enabled bool - Indicates whether On Upload malware scanning should be enabled.
- cap
GBPer IntegerMonth - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- is
Enabled Boolean - Indicates whether On Upload malware scanning should be enabled.
- cap
GBPer numberMonth - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- is
Enabled boolean - Indicates whether On Upload malware scanning should be enabled.
- cap_
gb_ intper_ month - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- is_
enabled bool - Indicates whether On Upload malware scanning should be enabled.
- cap
GBPer NumberMonth - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- is
Enabled Boolean - Indicates whether On Upload malware scanning should be enabled.
OnUploadPropertiesResponse, OnUploadPropertiesResponseArgs
- Cap
GBPer intMonth - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- Is
Enabled bool - Indicates whether On Upload malware scanning should be enabled.
- Cap
GBPer intMonth - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- Is
Enabled bool - Indicates whether On Upload malware scanning should be enabled.
- cap
GBPer IntegerMonth - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- is
Enabled Boolean - Indicates whether On Upload malware scanning should be enabled.
- cap
GBPer numberMonth - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- is
Enabled boolean - Indicates whether On Upload malware scanning should be enabled.
- cap_
gb_ intper_ month - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- is_
enabled bool - Indicates whether On Upload malware scanning should be enabled.
- cap
GBPer NumberMonth - Defines the max GB to be scanned per Month. Set to -1 if no capping is needed.
- is
Enabled Boolean - Indicates whether On Upload malware scanning should be enabled.
OperationStatusResponse, OperationStatusResponseArgs
SensitiveDataDiscoveryProperties, SensitiveDataDiscoveryPropertiesArgs
- Is
Enabled bool - Indicates whether Sensitive Data Discovery should be enabled.
- Is
Enabled bool - Indicates whether Sensitive Data Discovery should be enabled.
- is
Enabled Boolean - Indicates whether Sensitive Data Discovery should be enabled.
- is
Enabled boolean - Indicates whether Sensitive Data Discovery should be enabled.
- is_
enabled bool - Indicates whether Sensitive Data Discovery should be enabled.
- is
Enabled Boolean - Indicates whether Sensitive Data Discovery should be enabled.
SensitiveDataDiscoveryPropertiesResponse, SensitiveDataDiscoveryPropertiesResponseArgs
- Operation
Status This property is required. Pulumi.Azure Native. Security. Inputs. Operation Status Response - Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
- Is
Enabled bool - Indicates whether Sensitive Data Discovery should be enabled.
- Operation
Status This property is required. OperationStatus Response - Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
- Is
Enabled bool - Indicates whether Sensitive Data Discovery should be enabled.
- operation
Status This property is required. OperationStatus Response - Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
- is
Enabled Boolean - Indicates whether Sensitive Data Discovery should be enabled.
- operation
Status This property is required. OperationStatus Response - Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
- is
Enabled boolean - Indicates whether Sensitive Data Discovery should be enabled.
- operation_
status This property is required. OperationStatus Response - Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
- is_
enabled bool - Indicates whether Sensitive Data Discovery should be enabled.
- operation
Status This property is required. Property Map - Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation.
- is
Enabled Boolean - Indicates whether Sensitive Data Discovery should be enabled.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:security:DefenderForStorage current /{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v2 pulumi/pulumi-azure-native
- License
- Apache-2.0