1. Packages
  2. Azure Native
  3. API Docs
  4. security
  5. AdvancedThreatProtection
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.75.0 published on Saturday, Nov 30, 2024 by Pulumi

azure-native.security.AdvancedThreatProtection

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.75.0 published on Saturday, Nov 30, 2024 by Pulumi

    The Advanced Threat Protection resource. Azure REST API version: 2019-01-01. Prior API version in Azure Native 1.x: 2019-01-01.

    Example Usage

    Creates or updates the Advanced Threat Protection settings on a specified resource.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var advancedThreatProtection = new AzureNative.Security.AdvancedThreatProtection("advancedThreatProtection", new()
        {
            IsEnabled = true,
            ResourceId = "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
            SettingName = "current",
        });
    
    });
    
    package main
    
    import (
    	security "github.com/pulumi/pulumi-azure-native-sdk/security/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := security.NewAdvancedThreatProtection(ctx, "advancedThreatProtection", &security.AdvancedThreatProtectionArgs{
    			IsEnabled:   pulumi.Bool(true),
    			ResourceId:  pulumi.String("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount"),
    			SettingName: pulumi.String("current"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.security.AdvancedThreatProtection;
    import com.pulumi.azurenative.security.AdvancedThreatProtectionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var advancedThreatProtection = new AdvancedThreatProtection("advancedThreatProtection", AdvancedThreatProtectionArgs.builder()
                .isEnabled(true)
                .resourceId("subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount")
                .settingName("current")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    advanced_threat_protection = azure_native.security.AdvancedThreatProtection("advancedThreatProtection",
        is_enabled=True,
        resource_id="subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
        setting_name="current")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const advancedThreatProtection = new azure_native.security.AdvancedThreatProtection("advancedThreatProtection", {
        isEnabled: true,
        resourceId: "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount",
        settingName: "current",
    });
    
    resources:
      advancedThreatProtection:
        type: azure-native:security:AdvancedThreatProtection
        properties:
          isEnabled: true
          resourceId: subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/SampleRG/providers/Microsoft.Storage/storageAccounts/samplestorageaccount
          settingName: current
    

    Create AdvancedThreatProtection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AdvancedThreatProtection(name: string, args: AdvancedThreatProtectionArgs, opts?: CustomResourceOptions);
    @overload
    def AdvancedThreatProtection(resource_name: str,
                                 args: AdvancedThreatProtectionArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def AdvancedThreatProtection(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 resource_id: Optional[str] = None,
                                 is_enabled: Optional[bool] = None,
                                 setting_name: Optional[str] = None)
    func NewAdvancedThreatProtection(ctx *Context, name string, args AdvancedThreatProtectionArgs, opts ...ResourceOption) (*AdvancedThreatProtection, error)
    public AdvancedThreatProtection(string name, AdvancedThreatProtectionArgs args, CustomResourceOptions? opts = null)
    public AdvancedThreatProtection(String name, AdvancedThreatProtectionArgs args)
    public AdvancedThreatProtection(String name, AdvancedThreatProtectionArgs args, CustomResourceOptions options)
    
    type: azure-native:security:AdvancedThreatProtection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AdvancedThreatProtectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AdvancedThreatProtectionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AdvancedThreatProtectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AdvancedThreatProtectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AdvancedThreatProtectionArgs
    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 advancedThreatProtectionResource = new AzureNative.Security.AdvancedThreatProtection("advancedThreatProtectionResource", new()
    {
        ResourceId = "string",
        IsEnabled = false,
        SettingName = "string",
    });
    
    example, err := security.NewAdvancedThreatProtection(ctx, "advancedThreatProtectionResource", &security.AdvancedThreatProtectionArgs{
    	ResourceId:  pulumi.String("string"),
    	IsEnabled:   pulumi.Bool(false),
    	SettingName: pulumi.String("string"),
    })
    
    var advancedThreatProtectionResource = new AdvancedThreatProtection("advancedThreatProtectionResource", AdvancedThreatProtectionArgs.builder()
        .resourceId("string")
        .isEnabled(false)
        .settingName("string")
        .build());
    
    advanced_threat_protection_resource = azure_native.security.AdvancedThreatProtection("advancedThreatProtectionResource",
        resource_id="string",
        is_enabled=False,
        setting_name="string")
    
    const advancedThreatProtectionResource = new azure_native.security.AdvancedThreatProtection("advancedThreatProtectionResource", {
        resourceId: "string",
        isEnabled: false,
        settingName: "string",
    });
    
    type: azure-native:security:AdvancedThreatProtection
    properties:
        isEnabled: false
        resourceId: string
        settingName: string
    

    AdvancedThreatProtection 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 AdvancedThreatProtection resource accepts the following input properties:

    ResourceId string
    The identifier of the resource.
    IsEnabled bool
    Indicates whether Advanced Threat Protection is enabled.
    SettingName string
    Advanced Threat Protection setting name.
    ResourceId string
    The identifier of the resource.
    IsEnabled bool
    Indicates whether Advanced Threat Protection is enabled.
    SettingName string
    Advanced Threat Protection setting name.
    resourceId String
    The identifier of the resource.
    isEnabled Boolean
    Indicates whether Advanced Threat Protection is enabled.
    settingName String
    Advanced Threat Protection setting name.
    resourceId string
    The identifier of the resource.
    isEnabled boolean
    Indicates whether Advanced Threat Protection is enabled.
    settingName string
    Advanced Threat Protection setting name.
    resource_id str
    The identifier of the resource.
    is_enabled bool
    Indicates whether Advanced Threat Protection is enabled.
    setting_name str
    Advanced Threat Protection setting name.
    resourceId String
    The identifier of the resource.
    isEnabled Boolean
    Indicates whether Advanced Threat Protection is enabled.
    settingName String
    Advanced Threat Protection setting name.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AdvancedThreatProtection resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    Type string
    Resource type
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource name
    Type string
    Resource type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    type String
    Resource type
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource name
    type string
    Resource type
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource name
    type str
    Resource type
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource name
    type String
    Resource type

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:security:AdvancedThreatProtection current /{resourceId}/providers/Microsoft.Security/advancedThreatProtectionSettings/{settingName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.75.0 published on Saturday, Nov 30, 2024 by Pulumi