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

com.pulumi.azurenative.automanage.kotlin.ConfigurationProfilePreferenceArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.automanage.kotlin

import com.pulumi.azurenative.automanage.ConfigurationProfilePreferenceArgs.builder
import com.pulumi.azurenative.automanage.kotlin.inputs.ConfigurationProfilePreferencePropertiesArgs
import com.pulumi.azurenative.automanage.kotlin.inputs.ConfigurationProfilePreferencePropertiesArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Definition of the configuration profile preference.
 * Azure REST API version: 2020-06-30-preview. Prior API version in Azure Native 1.x: 2020-06-30-preview.
 * ## Example Usage
 * ### Create or update configuration profile preference
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var configurationProfilePreference = new AzureNative.Automanage.ConfigurationProfilePreference("configurationProfilePreference", new()
 *     {
 *         ConfigurationProfilePreferenceName = "defaultProfilePreference",
 *         Location = "East US",
 *         Properties = new AzureNative.Automanage.Inputs.ConfigurationProfilePreferencePropertiesArgs
 *         {
 *             AntiMalware = new AzureNative.Automanage.Inputs.ConfigurationProfilePreferenceAntiMalwareArgs
 *             {
 *                 EnableRealTimeProtection = AzureNative.Automanage.EnableRealTimeProtection.True,
 *             },
 *             VmBackup = new AzureNative.Automanage.Inputs.ConfigurationProfilePreferenceVmBackupArgs
 *             {
 *                 TimeZone = "Pacific Standard Time",
 *             },
 *         },
 *         ResourceGroupName = "myResourceGroupName",
 *         Tags =
 *         {
 *             { "Organization", "Administration" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	automanage "github.com/pulumi/pulumi-azure-native-sdk/automanage/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := automanage.NewConfigurationProfilePreference(ctx, "configurationProfilePreference", &automanage.ConfigurationProfilePreferenceArgs{
 * 			ConfigurationProfilePreferenceName: pulumi.String("defaultProfilePreference"),
 * 			Location:                           pulumi.String("East US"),
 * 			Properties: &automanage.ConfigurationProfilePreferencePropertiesArgs{
 * 				AntiMalware: &automanage.ConfigurationProfilePreferenceAntiMalwareArgs{
 * 					EnableRealTimeProtection: pulumi.String(automanage.EnableRealTimeProtectionTrue),
 * 				},
 * 				VmBackup: &automanage.ConfigurationProfilePreferenceVmBackupArgs{
 * 					TimeZone: pulumi.String("Pacific Standard Time"),
 * 				},
 * 			},
 * 			ResourceGroupName: pulumi.String("myResourceGroupName"),
 * 			Tags: pulumi.StringMap{
 * 				"Organization": pulumi.String("Administration"),
 * 			},
 * 		})
 * 		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.azurenative.automanage.ConfigurationProfilePreference;
 * import com.pulumi.azurenative.automanage.ConfigurationProfilePreferenceArgs;
 * import com.pulumi.azurenative.automanage.inputs.ConfigurationProfilePreferencePropertiesArgs;
 * import com.pulumi.azurenative.automanage.inputs.ConfigurationProfilePreferenceAntiMalwareArgs;
 * import com.pulumi.azurenative.automanage.inputs.ConfigurationProfilePreferenceVmBackupArgs;
 * 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 configurationProfilePreference = new ConfigurationProfilePreference("configurationProfilePreference", ConfigurationProfilePreferenceArgs.builder()
 *             .configurationProfilePreferenceName("defaultProfilePreference")
 *             .location("East US")
 *             .properties(ConfigurationProfilePreferencePropertiesArgs.builder()
 *                 .antiMalware(ConfigurationProfilePreferenceAntiMalwareArgs.builder()
 *                     .enableRealTimeProtection("True")
 *                     .build())
 *                 .vmBackup(ConfigurationProfilePreferenceVmBackupArgs.builder()
 *                     .timeZone("Pacific Standard Time")
 *                     .build())
 *                 .build())
 *             .resourceGroupName("myResourceGroupName")
 *             .tags(Map.of("Organization", "Administration"))
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:automanage:ConfigurationProfilePreference defaultProfilePreference /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfilePreferences/{configurationProfilePreferenceName}
 * ```
 * @property configurationProfilePreferenceName Name of the configuration profile preference.
 * @property location The geo-location where the resource lives
 * @property properties Properties of the configuration profile preference.
 * @property resourceGroupName The name of the resource group. The name is case insensitive.
 * @property tags Resource tags.
 */
public data class ConfigurationProfilePreferenceArgs(
    public val configurationProfilePreferenceName: Output? = null,
    public val location: Output? = null,
    public val properties: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.automanage.ConfigurationProfilePreferenceArgs =
        com.pulumi.azurenative.automanage.ConfigurationProfilePreferenceArgs.builder()
            .configurationProfilePreferenceName(
                configurationProfilePreferenceName?.applyValue({ args0 ->
                    args0
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ConfigurationProfilePreferenceArgs].
 */
@PulumiTagMarker
public class ConfigurationProfilePreferenceArgsBuilder internal constructor() {
    private var configurationProfilePreferenceName: Output? = null

    private var location: Output? = null

    private var properties: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Name of the configuration profile preference.
     */
    @JvmName("tyhoaqixafxtcmkc")
    public suspend fun configurationProfilePreferenceName(`value`: Output) {
        this.configurationProfilePreferenceName = value
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("rwwqcvhcjttishtk")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Properties of the configuration profile preference.
     */
    @JvmName("icktyjdoitnwyhie")
    public suspend fun properties(`value`: Output) {
        this.properties = value
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("pxnakftmovvbnucb")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("ltnbmiiyxwdcsekd")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Name of the configuration profile preference.
     */
    @JvmName("qsvuptdfkqrqlqtq")
    public suspend fun configurationProfilePreferenceName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configurationProfilePreferenceName = mapped
    }

    /**
     * @param value The geo-location where the resource lives
     */
    @JvmName("vcaeuylbjfffdxaa")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Properties of the configuration profile preference.
     */
    @JvmName("sogjawihvrvoptac")
    public suspend fun properties(`value`: ConfigurationProfilePreferencePropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param argument Properties of the configuration profile preference.
     */
    @JvmName("dahlovswtfnkskdb")
    public suspend fun properties(argument: suspend ConfigurationProfilePreferencePropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ConfigurationProfilePreferencePropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.properties = mapped
    }

    /**
     * @param value The name of the resource group. The name is case insensitive.
     */
    @JvmName("xdlprgdwhyphyjki")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value Resource tags.
     */
    @JvmName("eghlsnmldqqoiwya")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Resource tags.
     */
    @JvmName("ngfpimduthcyofuy")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ConfigurationProfilePreferenceArgs = ConfigurationProfilePreferenceArgs(
        configurationProfilePreferenceName = configurationProfilePreferenceName,
        location = location,
        properties = properties,
        resourceGroupName = resourceGroupName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy