com.pulumi.azure.securitycenter.kotlin.SettingArgs.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.SettingArgs.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 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
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.securitycenter.Setting("example", {
* settingName: "MCAS",
* enabled: true,
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.securitycenter.Setting("example",
* setting_name="MCAS",
* enabled=True)
* ```
* ```csharp
* 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,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/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
* })
* }
* ```
* ```java
* 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());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:securitycenter:Setting
* properties:
* settingName: MCAS
* enabled: true
* ```
*
* ## Import
* The setting can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:securitycenter/setting:Setting example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/settings/
* ```
* @property enabled Boolean flag to enable/disable data access.
* @property settingName 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.
*/
public data class SettingArgs(
public val enabled: Output? = null,
public val settingName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.securitycenter.SettingArgs =
com.pulumi.azure.securitycenter.SettingArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.settingName(settingName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SettingArgs].
*/
@PulumiTagMarker
public class SettingArgsBuilder internal constructor() {
private var enabled: Output? = null
private var settingName: Output? = null
/**
* @param value Boolean flag to enable/disable data access.
*/
@JvmName("mqixegknfqrnhgkr")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value 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.
*/
@JvmName("kulhbtlcclqklgaj")
public suspend fun settingName(`value`: Output) {
this.settingName = value
}
/**
* @param value Boolean flag to enable/disable data access.
*/
@JvmName("ysndhnxnnndhlykj")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value 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.
*/
@JvmName("husiabcbvwcnijac")
public suspend fun settingName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.settingName = mapped
}
internal fun build(): SettingArgs = SettingArgs(
enabled = enabled,
settingName = settingName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy