Class AdvancedThreatProtection
Manages a resources Advanced Threat Protection setting.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var rg = new Azure.Core.ResourceGroup("rg", new Azure.Core.ResourceGroupArgs
{
Location = "northeurope",
});
var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
{
ResourceGroupName = azurerm_resource_group.Example.Name,
Location = azurerm_resource_group.Example.Location,
AccountTier = "Standard",
AccountReplicationType = "LRS",
Tags =
{
{ "environment", "example" },
},
});
var exampleAdvancedThreatProtection = new Azure.SecurityCenter.AdvancedThreatProtection("exampleAdvancedThreatProtection", new Azure.SecurityCenter.AdvancedThreatProtectionArgs
{
TargetResourceId = exampleAccount.Id,
Enabled = true,
});
}
}
Inherited Members
Namespace: Pulumi.Azure.SecurityCenter
Assembly: Pulumi.Azure.dll
Syntax
public class AdvancedThreatProtection : CustomResource
Constructors
View SourceAdvancedThreatProtection(String, AdvancedThreatProtectionArgs, CustomResourceOptions)
Create a AdvancedThreatProtection resource with the given unique name, arguments, and options.
Declaration
public AdvancedThreatProtection(string name, AdvancedThreatProtectionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AdvancedThreatProtectionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEnabled
Should Advanced Threat Protection be enabled on this resource?
Declaration
public Output<bool> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
TargetResourceId
The ID of the Azure Resource which to enable Advanced Threat Protection on. Changing this forces a new resource to be created.
Declaration
public Output<string> TargetResourceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AdvancedThreatProtectionState, CustomResourceOptions)
Get an existing AdvancedThreatProtection resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AdvancedThreatProtection Get(string name, Input<string> id, AdvancedThreatProtectionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AdvancedThreatProtectionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AdvancedThreatProtection |