All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.securitycenter.kotlin.AutoProvisioningArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.securitycenter.kotlin

import com.pulumi.azure.securitycenter.AutoProvisioningArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Enables or disables the Security Center Auto Provisioning feature for the subscription
 * > **NOTE:** There is no resource name required, it will always be "default"
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.securitycenter.AutoProvisioning("example", {autoProvision: "On"});
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.securitycenter.AutoProvisioning("example", auto_provision="On")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.SecurityCenter.AutoProvisioning("example", new()
 *     {
 *         AutoProvision = "On",
 *     });
 * });
 * ```
 * ```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.NewAutoProvisioning(ctx, "example", &securitycenter.AutoProvisioningArgs{
 * 			AutoProvision: pulumi.String("On"),
 * 		})
 * 		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.AutoProvisioning;
 * import com.pulumi.azure.securitycenter.AutoProvisioningArgs;
 * 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 AutoProvisioning("example", AutoProvisioningArgs.builder()
 *             .autoProvision("On")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:securitycenter:AutoProvisioning
 *     properties:
 *       autoProvision: On
 * ```
 * 
 * ## Import
 * Security Center Auto Provisioning can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:securitycenter/autoProvisioning:AutoProvisioning example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/autoProvisioningSettings/default
 * ```
 * @property autoProvision Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are `On` (to install the security agent automatically, if it's missing) or `Off` (to not install the security agent automatically).
 */
public data class AutoProvisioningArgs(
    public val autoProvision: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.securitycenter.AutoProvisioningArgs =
        com.pulumi.azure.securitycenter.AutoProvisioningArgs.builder()
            .autoProvision(autoProvision?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AutoProvisioningArgs].
 */
@PulumiTagMarker
public class AutoProvisioningArgsBuilder internal constructor() {
    private var autoProvision: Output? = null

    /**
     * @param value Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are `On` (to install the security agent automatically, if it's missing) or `Off` (to not install the security agent automatically).
     */
    @JvmName("lwjmcdaahaiujcin")
    public suspend fun autoProvision(`value`: Output) {
        this.autoProvision = value
    }

    /**
     * @param value Should the security agent be automatically provisioned on Virtual Machines in this subscription? Possible values are `On` (to install the security agent automatically, if it's missing) or `Off` (to not install the security agent automatically).
     */
    @JvmName("klhqwtwumumpghka")
    public suspend fun autoProvision(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoProvision = mapped
    }

    internal fun build(): AutoProvisioningArgs = AutoProvisioningArgs(
        autoProvision = autoProvision,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy