SettingArgs

data class SettingArgs(val enabled: Output<Boolean>? = null, val settingName: Output<String>? = null) : ConvertibleToJava<SettingArgs>

Manages the Data Access Settings for Azure Security Center.

Note: This resource requires the Owner permission on the Subscription. Note: Deletion of this resource disables the setting.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.securitycenter.Setting("example", {
settingName: "MCAS",
enabled: true,
});
import pulumi
import pulumi_azure as azure
example = azure.securitycenter.Setting("example",
setting_name="MCAS",
enabled=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.SecurityCenter.Setting("example", new()
{
SettingName = "MCAS",
Enabled = true,
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/securitycenter"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := securitycenter.NewSetting(ctx, "example", &securitycenter.SettingArgs{
SettingName: pulumi.String("MCAS"),
Enabled: pulumi.Bool(true),
})
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.azure.securitycenter.Setting;
import com.pulumi.azure.securitycenter.SettingArgs;
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 Setting("example", SettingArgs.builder()
.settingName("MCAS")
.enabled(true)
.build());
}
}
resources:
example:
type: azure:securitycenter:Setting
properties:
settingName: MCAS
enabled: true

Import

The setting can be imported using the resource id, e.g.

$ pulumi import azure:securitycenter/setting:Setting example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/settings/<setting_name>

Constructors

Link copied to clipboard
constructor(enabled: Output<Boolean>? = null, settingName: Output<String>? = null)

Properties

Link copied to clipboard
val enabled: Output<Boolean>? = null

Boolean flag to enable/disable data access.

Link copied to clipboard
val settingName: Output<String>? = null

The setting to manage. Possible values are MCAS , WDATP, WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW, WDATP_UNIFIED_SOLUTION and Sentinel. Changing this forces a new resource to be created.

Functions

Link copied to clipboard
open override fun toJava(): SettingArgs