![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.securitycenter.kotlin.AdvancedThreatProtectionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.securitycenter.kotlin
import com.pulumi.azure.securitycenter.AdvancedThreatProtectionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages a resources Advanced Threat Protection setting.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "atp-example",
* location: "West Europe",
* });
* const exampleAccount = new azure.storage.Account("example", {
* name: "examplestorage",
* resourceGroupName: example.name,
* location: example.location,
* accountTier: "Standard",
* accountReplicationType: "LRS",
* tags: {
* environment: "example",
* },
* });
* const exampleAdvancedThreatProtection = new azure.securitycenter.AdvancedThreatProtection("example", {
* targetResourceId: exampleAccount.id,
* enabled: true,
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="atp-example",
* location="West Europe")
* example_account = azure.storage.Account("example",
* name="examplestorage",
* resource_group_name=example.name,
* location=example.location,
* account_tier="Standard",
* account_replication_type="LRS",
* tags={
* "environment": "example",
* })
* example_advanced_threat_protection = azure.securitycenter.AdvancedThreatProtection("example",
* target_resource_id=example_account.id,
* enabled=True)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "atp-example",
* Location = "West Europe",
* });
* var exampleAccount = new Azure.Storage.Account("example", new()
* {
* Name = "examplestorage",
* ResourceGroupName = example.Name,
* Location = example.Location,
* AccountTier = "Standard",
* AccountReplicationType = "LRS",
* Tags =
* {
* { "environment", "example" },
* },
* });
* var exampleAdvancedThreatProtection = new Azure.SecurityCenter.AdvancedThreatProtection("example", new()
* {
* TargetResourceId = exampleAccount.Id,
* Enabled = true,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/securitycenter"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("atp-example"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
* Name: pulumi.String("examplestorage"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* AccountTier: pulumi.String("Standard"),
* AccountReplicationType: pulumi.String("LRS"),
* Tags: pulumi.StringMap{
* "environment": pulumi.String("example"),
* },
* })
* if err != nil {
* return err
* }
* _, err = securitycenter.NewAdvancedThreatProtection(ctx, "example", &securitycenter.AdvancedThreatProtectionArgs{
* TargetResourceId: exampleAccount.ID(),
* Enabled: pulumi.Bool(true),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.storage.Account;
* import com.pulumi.azure.storage.AccountArgs;
* import com.pulumi.azure.securitycenter.AdvancedThreatProtection;
* import com.pulumi.azure.securitycenter.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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("atp-example")
* .location("West Europe")
* .build());
* var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
* .name("examplestorage")
* .resourceGroupName(example.name())
* .location(example.location())
* .accountTier("Standard")
* .accountReplicationType("LRS")
* .tags(Map.of("environment", "example"))
* .build());
* var exampleAdvancedThreatProtection = new AdvancedThreatProtection("exampleAdvancedThreatProtection", AdvancedThreatProtectionArgs.builder()
* .targetResourceId(exampleAccount.id())
* .enabled(true)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: atp-example
* location: West Europe
* exampleAccount:
* type: azure:storage:Account
* name: example
* properties:
* name: examplestorage
* resourceGroupName: ${example.name}
* location: ${example.location}
* accountTier: Standard
* accountReplicationType: LRS
* tags:
* environment: example
* exampleAdvancedThreatProtection:
* type: azure:securitycenter:AdvancedThreatProtection
* name: example
* properties:
* targetResourceId: ${exampleAccount.id}
* enabled: true
* ```
*
* ## Import
* Advanced Threat Protection can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:securitycenter/advancedThreatProtection:AdvancedThreatProtection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleaccount/providers/Microsoft.Security/advancedThreatProtectionSettings/default
* ```
* @property enabled Should Advanced Threat Protection be enabled on this resource?
* @property targetResourceId The ID of the Azure Resource which to enable Advanced Threat Protection on. Changing this forces a new resource to be created.
*/
public data class AdvancedThreatProtectionArgs(
public val enabled: Output? = null,
public val targetResourceId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.securitycenter.AdvancedThreatProtectionArgs =
com.pulumi.azure.securitycenter.AdvancedThreatProtectionArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.targetResourceId(targetResourceId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AdvancedThreatProtectionArgs].
*/
@PulumiTagMarker
public class AdvancedThreatProtectionArgsBuilder internal constructor() {
private var enabled: Output? = null
private var targetResourceId: Output? = null
/**
* @param value Should Advanced Threat Protection be enabled on this resource?
*/
@JvmName("crxnukknftatdlqn")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The ID of the Azure Resource which to enable Advanced Threat Protection on. Changing this forces a new resource to be created.
*/
@JvmName("krexhvrcfestbmol")
public suspend fun targetResourceId(`value`: Output) {
this.targetResourceId = value
}
/**
* @param value Should Advanced Threat Protection be enabled on this resource?
*/
@JvmName("euyecwviduxnqtcj")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The ID of the Azure Resource which to enable Advanced Threat Protection on. Changing this forces a new resource to be created.
*/
@JvmName("yfxbexiajpcywxwb")
public suspend fun targetResourceId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.targetResourceId = mapped
}
internal fun build(): AdvancedThreatProtectionArgs = AdvancedThreatProtectionArgs(
enabled = enabled,
targetResourceId = targetResourceId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy