import * as pulumi from "@pulumi/pulumi"; /** * Manages the Defender for Storage. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-rg", * location: "westus2", * }); * const exampleAccount = new azure.storage.Account("example", { * name: "exampleacc", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleStorageDefender = new azure.securitycenter.StorageDefender("example", {storageAccountId: exampleAccount.id}); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Security` - 2025-06-01 * * ## Import * * The setting can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:securitycenter/storageDefender:StorageDefender example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Storage/storageAccounts/storageacc * ``` */ export declare class StorageDefender extends pulumi.CustomResource { /** * Get an existing StorageDefender resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: StorageDefenderState, opts?: pulumi.CustomResourceOptions): StorageDefender; /** * Returns true if the given object is an instance of StorageDefender. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is StorageDefender; /** * The max GB to be scanned per Month. Must be `-1` or above `0`. Omit this property or set to `-1` if no capping is needed. Defaults to `-1`. */ readonly malwareScanningOnUploadCapGbPerMonth: pulumi.Output; /** * Whether On Upload malware scanning should be enabled. Defaults to `false`. */ readonly malwareScanningOnUploadEnabled: pulumi.Output; /** * Whether the settings defined for this storage account should override the settings defined for the subscription. Defaults to `false`. */ readonly overrideSubscriptionSettingsEnabled: pulumi.Output; /** * The Event Grid Topic where every scan result will be sent to. When you set an Event Grid custom topic, you must set `overrideSubscriptionSettingsEnabled` to `true` to override the subscription-level settings. */ readonly scanResultsEventGridTopicId: pulumi.Output; /** * Whether Sensitive Data Discovery should be enabled. Defaults to `false`. */ readonly sensitiveDataDiscoveryEnabled: pulumi.Output; /** * The ID of the storage account the defender applied to. Changing this forces a new resource to be created. */ readonly storageAccountId: pulumi.Output; /** * Create a StorageDefender resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: StorageDefenderArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StorageDefender resources. */ export interface StorageDefenderState { /** * The max GB to be scanned per Month. Must be `-1` or above `0`. Omit this property or set to `-1` if no capping is needed. Defaults to `-1`. */ malwareScanningOnUploadCapGbPerMonth?: pulumi.Input; /** * Whether On Upload malware scanning should be enabled. Defaults to `false`. */ malwareScanningOnUploadEnabled?: pulumi.Input; /** * Whether the settings defined for this storage account should override the settings defined for the subscription. Defaults to `false`. */ overrideSubscriptionSettingsEnabled?: pulumi.Input; /** * The Event Grid Topic where every scan result will be sent to. When you set an Event Grid custom topic, you must set `overrideSubscriptionSettingsEnabled` to `true` to override the subscription-level settings. */ scanResultsEventGridTopicId?: pulumi.Input; /** * Whether Sensitive Data Discovery should be enabled. Defaults to `false`. */ sensitiveDataDiscoveryEnabled?: pulumi.Input; /** * The ID of the storage account the defender applied to. Changing this forces a new resource to be created. */ storageAccountId?: pulumi.Input; } /** * The set of arguments for constructing a StorageDefender resource. */ export interface StorageDefenderArgs { /** * The max GB to be scanned per Month. Must be `-1` or above `0`. Omit this property or set to `-1` if no capping is needed. Defaults to `-1`. */ malwareScanningOnUploadCapGbPerMonth?: pulumi.Input; /** * Whether On Upload malware scanning should be enabled. Defaults to `false`. */ malwareScanningOnUploadEnabled?: pulumi.Input; /** * Whether the settings defined for this storage account should override the settings defined for the subscription. Defaults to `false`. */ overrideSubscriptionSettingsEnabled?: pulumi.Input; /** * The Event Grid Topic where every scan result will be sent to. When you set an Event Grid custom topic, you must set `overrideSubscriptionSettingsEnabled` to `true` to override the subscription-level settings. */ scanResultsEventGridTopicId?: pulumi.Input; /** * Whether Sensitive Data Discovery should be enabled. Defaults to `false`. */ sensitiveDataDiscoveryEnabled?: pulumi.Input; /** * The ID of the storage account the defender applied to. Changing this forces a new resource to be created. */ storageAccountId: pulumi.Input; }