Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.automanage.kotlin.ConfigurationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.automanage.kotlin
import com.pulumi.azure.automanage.ConfigurationArgs.builder
import com.pulumi.azure.automanage.kotlin.inputs.ConfigurationAntimalwareArgs
import com.pulumi.azure.automanage.kotlin.inputs.ConfigurationAntimalwareArgsBuilder
import com.pulumi.azure.automanage.kotlin.inputs.ConfigurationAzureSecurityBaselineArgs
import com.pulumi.azure.automanage.kotlin.inputs.ConfigurationAzureSecurityBaselineArgsBuilder
import com.pulumi.azure.automanage.kotlin.inputs.ConfigurationBackupArgs
import com.pulumi.azure.automanage.kotlin.inputs.ConfigurationBackupArgsBuilder
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.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Manages an Automanage Configuration.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-automanage",
* location: "West Europe",
* });
* const exampleConfiguration = new azure.automanage.Configuration("example", {
* name: "example-acmp",
* resourceGroupName: example.name,
* location: example.location,
* antimalware: {
* exclusions: {
* extensions: "exe;dll",
* paths: "C:\\Windows\\Temp;D:\\Temp",
* processes: "svchost.exe;notepad.exe",
* },
* realTimeProtectionEnabled: true,
* scheduledScanEnabled: true,
* scheduledScanType: "Quick",
* scheduledScanDay: 1,
* scheduledScanTimeInMinutes: 1339,
* },
* azureSecurityBaseline: {
* assignmentType: "ApplyAndAutoCorrect",
* },
* automationAccountEnabled: true,
* backup: {
* policyName: "acctest-backup-policy-%d",
* timeZone: "UTC",
* instantRpRetentionRangeInDays: 2,
* schedulePolicy: {
* scheduleRunFrequency: "Daily",
* scheduleRunDays: [
* "Monday",
* "Tuesday",
* ],
* scheduleRunTimes: ["12:00"],
* schedulePolicyType: "SimpleSchedulePolicy",
* },
* retentionPolicy: {
* retentionPolicyType: "LongTermRetentionPolicy",
* dailySchedule: {
* retentionTimes: ["12:00"],
* retentionDuration: {
* count: 7,
* durationType: "Days",
* },
* },
* weeklySchedule: {
* retentionTimes: ["14:00"],
* retentionDuration: {
* count: 4,
* durationType: "Weeks",
* },
* },
* },
* },
* bootDiagnosticsEnabled: true,
* defenderForCloudEnabled: true,
* guestConfigurationEnabled: true,
* logAnalyticsEnabled: true,
* statusChangeAlertEnabled: true,
* tags: {
* env: "test",
* },
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-automanage",
* location="West Europe")
* example_configuration = azure.automanage.Configuration("example",
* name="example-acmp",
* resource_group_name=example.name,
* location=example.location,
* antimalware={
* "exclusions": {
* "extensions": "exe;dll",
* "paths": "C:\\Windows\\Temp;D:\\Temp",
* "processes": "svchost.exe;notepad.exe",
* },
* "real_time_protection_enabled": True,
* "scheduled_scan_enabled": True,
* "scheduled_scan_type": "Quick",
* "scheduled_scan_day": 1,
* "scheduled_scan_time_in_minutes": 1339,
* },
* azure_security_baseline={
* "assignment_type": "ApplyAndAutoCorrect",
* },
* automation_account_enabled=True,
* backup={
* "policy_name": "acctest-backup-policy-%d",
* "time_zone": "UTC",
* "instant_rp_retention_range_in_days": 2,
* "schedule_policy": {
* "schedule_run_frequency": "Daily",
* "schedule_run_days": [
* "Monday",
* "Tuesday",
* ],
* "schedule_run_times": ["12:00"],
* "schedule_policy_type": "SimpleSchedulePolicy",
* },
* "retention_policy": {
* "retention_policy_type": "LongTermRetentionPolicy",
* "daily_schedule": {
* "retention_times": ["12:00"],
* "retention_duration": {
* "count": 7,
* "duration_type": "Days",
* },
* },
* "weekly_schedule": {
* "retention_times": ["14:00"],
* "retention_duration": {
* "count": 4,
* "duration_type": "Weeks",
* },
* },
* },
* },
* boot_diagnostics_enabled=True,
* defender_for_cloud_enabled=True,
* guest_configuration_enabled=True,
* log_analytics_enabled=True,
* status_change_alert_enabled=True,
* tags={
* "env": "test",
* })
* ```
* ```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 = "example-automanage",
* Location = "West Europe",
* });
* var exampleConfiguration = new Azure.Automanage.Configuration("example", new()
* {
* Name = "example-acmp",
* ResourceGroupName = example.Name,
* Location = example.Location,
* Antimalware = new Azure.Automanage.Inputs.ConfigurationAntimalwareArgs
* {
* Exclusions = new Azure.Automanage.Inputs.ConfigurationAntimalwareExclusionsArgs
* {
* Extensions = "exe;dll",
* Paths = "C:\\Windows\\Temp;D:\\Temp",
* Processes = "svchost.exe;notepad.exe",
* },
* RealTimeProtectionEnabled = true,
* ScheduledScanEnabled = true,
* ScheduledScanType = "Quick",
* ScheduledScanDay = 1,
* ScheduledScanTimeInMinutes = 1339,
* },
* AzureSecurityBaseline = new Azure.Automanage.Inputs.ConfigurationAzureSecurityBaselineArgs
* {
* AssignmentType = "ApplyAndAutoCorrect",
* },
* AutomationAccountEnabled = true,
* Backup = new Azure.Automanage.Inputs.ConfigurationBackupArgs
* {
* PolicyName = "acctest-backup-policy-%d",
* TimeZone = "UTC",
* InstantRpRetentionRangeInDays = 2,
* SchedulePolicy = new Azure.Automanage.Inputs.ConfigurationBackupSchedulePolicyArgs
* {
* ScheduleRunFrequency = "Daily",
* ScheduleRunDays = new[]
* {
* "Monday",
* "Tuesday",
* },
* ScheduleRunTimes = new[]
* {
* "12:00",
* },
* SchedulePolicyType = "SimpleSchedulePolicy",
* },
* RetentionPolicy = new Azure.Automanage.Inputs.ConfigurationBackupRetentionPolicyArgs
* {
* RetentionPolicyType = "LongTermRetentionPolicy",
* DailySchedule = new Azure.Automanage.Inputs.ConfigurationBackupRetentionPolicyDailyScheduleArgs
* {
* RetentionTimes = new[]
* {
* "12:00",
* },
* RetentionDuration = new Azure.Automanage.Inputs.ConfigurationBackupRetentionPolicyDailyScheduleRetentionDurationArgs
* {
* Count = 7,
* DurationType = "Days",
* },
* },
* WeeklySchedule = new Azure.Automanage.Inputs.ConfigurationBackupRetentionPolicyWeeklyScheduleArgs
* {
* RetentionTimes = new[]
* {
* "14:00",
* },
* RetentionDuration = new Azure.Automanage.Inputs.ConfigurationBackupRetentionPolicyWeeklyScheduleRetentionDurationArgs
* {
* Count = 4,
* DurationType = "Weeks",
* },
* },
* },
* },
* BootDiagnosticsEnabled = true,
* DefenderForCloudEnabled = true,
* GuestConfigurationEnabled = true,
* LogAnalyticsEnabled = true,
* StatusChangeAlertEnabled = true,
* Tags =
* {
* { "env", "test" },
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/automanage"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "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("example-automanage"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* _, err = automanage.NewConfiguration(ctx, "example", &automanage.ConfigurationArgs{
* Name: pulumi.String("example-acmp"),
* ResourceGroupName: example.Name,
* Location: example.Location,
* Antimalware: &automanage.ConfigurationAntimalwareArgs{
* Exclusions: &automanage.ConfigurationAntimalwareExclusionsArgs{
* Extensions: pulumi.String("exe;dll"),
* Paths: pulumi.String("C:\\Windows\\Temp;D:\\Temp"),
* Processes: pulumi.String("svchost.exe;notepad.exe"),
* },
* RealTimeProtectionEnabled: pulumi.Bool(true),
* ScheduledScanEnabled: pulumi.Bool(true),
* ScheduledScanType: pulumi.String("Quick"),
* ScheduledScanDay: pulumi.Int(1),
* ScheduledScanTimeInMinutes: pulumi.Int(1339),
* },
* AzureSecurityBaseline: &automanage.ConfigurationAzureSecurityBaselineArgs{
* AssignmentType: pulumi.String("ApplyAndAutoCorrect"),
* },
* AutomationAccountEnabled: pulumi.Bool(true),
* Backup: &automanage.ConfigurationBackupArgs{
* PolicyName: pulumi.String("acctest-backup-policy-%d"),
* TimeZone: pulumi.String("UTC"),
* InstantRpRetentionRangeInDays: pulumi.Int(2),
* SchedulePolicy: &automanage.ConfigurationBackupSchedulePolicyArgs{
* ScheduleRunFrequency: pulumi.String("Daily"),
* ScheduleRunDays: pulumi.StringArray{
* pulumi.String("Monday"),
* pulumi.String("Tuesday"),
* },
* ScheduleRunTimes: pulumi.StringArray{
* pulumi.String("12:00"),
* },
* SchedulePolicyType: pulumi.String("SimpleSchedulePolicy"),
* },
* RetentionPolicy: &automanage.ConfigurationBackupRetentionPolicyArgs{
* RetentionPolicyType: pulumi.String("LongTermRetentionPolicy"),
* DailySchedule: &automanage.ConfigurationBackupRetentionPolicyDailyScheduleArgs{
* RetentionTimes: pulumi.StringArray{
* pulumi.String("12:00"),
* },
* RetentionDuration: &automanage.ConfigurationBackupRetentionPolicyDailyScheduleRetentionDurationArgs{
* Count: pulumi.Int(7),
* DurationType: pulumi.String("Days"),
* },
* },
* WeeklySchedule: &automanage.ConfigurationBackupRetentionPolicyWeeklyScheduleArgs{
* RetentionTimes: pulumi.StringArray{
* pulumi.String("14:00"),
* },
* RetentionDuration: &automanage.ConfigurationBackupRetentionPolicyWeeklyScheduleRetentionDurationArgs{
* Count: pulumi.Int(4),
* DurationType: pulumi.String("Weeks"),
* },
* },
* },
* },
* BootDiagnosticsEnabled: pulumi.Bool(true),
* DefenderForCloudEnabled: pulumi.Bool(true),
* GuestConfigurationEnabled: pulumi.Bool(true),
* LogAnalyticsEnabled: pulumi.Bool(true),
* StatusChangeAlertEnabled: pulumi.Bool(true),
* Tags: pulumi.StringMap{
* "env": pulumi.String("test"),
* },
* })
* 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.automanage.Configuration;
* import com.pulumi.azure.automanage.ConfigurationArgs;
* import com.pulumi.azure.automanage.inputs.ConfigurationAntimalwareArgs;
* import com.pulumi.azure.automanage.inputs.ConfigurationAntimalwareExclusionsArgs;
* import com.pulumi.azure.automanage.inputs.ConfigurationAzureSecurityBaselineArgs;
* import com.pulumi.azure.automanage.inputs.ConfigurationBackupArgs;
* import com.pulumi.azure.automanage.inputs.ConfigurationBackupSchedulePolicyArgs;
* import com.pulumi.azure.automanage.inputs.ConfigurationBackupRetentionPolicyArgs;
* import com.pulumi.azure.automanage.inputs.ConfigurationBackupRetentionPolicyDailyScheduleArgs;
* import com.pulumi.azure.automanage.inputs.ConfigurationBackupRetentionPolicyDailyScheduleRetentionDurationArgs;
* import com.pulumi.azure.automanage.inputs.ConfigurationBackupRetentionPolicyWeeklyScheduleArgs;
* import com.pulumi.azure.automanage.inputs.ConfigurationBackupRetentionPolicyWeeklyScheduleRetentionDurationArgs;
* 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("example-automanage")
* .location("West Europe")
* .build());
* var exampleConfiguration = new Configuration("exampleConfiguration", ConfigurationArgs.builder()
* .name("example-acmp")
* .resourceGroupName(example.name())
* .location(example.location())
* .antimalware(ConfigurationAntimalwareArgs.builder()
* .exclusions(ConfigurationAntimalwareExclusionsArgs.builder()
* .extensions("exe;dll")
* .paths("C:\\Windows\\Temp;D:\\Temp")
* .processes("svchost.exe;notepad.exe")
* .build())
* .realTimeProtectionEnabled(true)
* .scheduledScanEnabled(true)
* .scheduledScanType("Quick")
* .scheduledScanDay(1)
* .scheduledScanTimeInMinutes(1339)
* .build())
* .azureSecurityBaseline(ConfigurationAzureSecurityBaselineArgs.builder()
* .assignmentType("ApplyAndAutoCorrect")
* .build())
* .automationAccountEnabled(true)
* .backup(ConfigurationBackupArgs.builder()
* .policyName("acctest-backup-policy-%d")
* .timeZone("UTC")
* .instantRpRetentionRangeInDays(2)
* .schedulePolicy(ConfigurationBackupSchedulePolicyArgs.builder()
* .scheduleRunFrequency("Daily")
* .scheduleRunDays(
* "Monday",
* "Tuesday")
* .scheduleRunTimes("12:00")
* .schedulePolicyType("SimpleSchedulePolicy")
* .build())
* .retentionPolicy(ConfigurationBackupRetentionPolicyArgs.builder()
* .retentionPolicyType("LongTermRetentionPolicy")
* .dailySchedule(ConfigurationBackupRetentionPolicyDailyScheduleArgs.builder()
* .retentionTimes("12:00")
* .retentionDuration(ConfigurationBackupRetentionPolicyDailyScheduleRetentionDurationArgs.builder()
* .count(7)
* .durationType("Days")
* .build())
* .build())
* .weeklySchedule(ConfigurationBackupRetentionPolicyWeeklyScheduleArgs.builder()
* .retentionTimes("14:00")
* .retentionDuration(ConfigurationBackupRetentionPolicyWeeklyScheduleRetentionDurationArgs.builder()
* .count(4)
* .durationType("Weeks")
* .build())
* .build())
* .build())
* .build())
* .bootDiagnosticsEnabled(true)
* .defenderForCloudEnabled(true)
* .guestConfigurationEnabled(true)
* .logAnalyticsEnabled(true)
* .statusChangeAlertEnabled(true)
* .tags(Map.of("env", "test"))
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-automanage
* location: West Europe
* exampleConfiguration:
* type: azure:automanage:Configuration
* name: example
* properties:
* name: example-acmp
* resourceGroupName: ${example.name}
* location: ${example.location}
* antimalware:
* exclusions:
* extensions: exe;dll
* paths: C:\Windows\Temp;D:\Temp
* processes: svchost.exe;notepad.exe
* realTimeProtectionEnabled: true
* scheduledScanEnabled: true
* scheduledScanType: Quick
* scheduledScanDay: 1
* scheduledScanTimeInMinutes: 1339
* azureSecurityBaseline:
* assignmentType: ApplyAndAutoCorrect
* automationAccountEnabled: true
* backup:
* policyName: acctest-backup-policy-%d
* timeZone: UTC
* instantRpRetentionRangeInDays: 2
* schedulePolicy:
* scheduleRunFrequency: Daily
* scheduleRunDays:
* - Monday
* - Tuesday
* scheduleRunTimes:
* - 12:00
* schedulePolicyType: SimpleSchedulePolicy
* retentionPolicy:
* retentionPolicyType: LongTermRetentionPolicy
* dailySchedule:
* retentionTimes:
* - 12:00
* retentionDuration:
* count: 7
* durationType: Days
* weeklySchedule:
* retentionTimes:
* - 14:00
* retentionDuration:
* count: 4
* durationType: Weeks
* bootDiagnosticsEnabled: true
* defenderForCloudEnabled: true
* guestConfigurationEnabled: true
* logAnalyticsEnabled: true
* statusChangeAlertEnabled: true
* tags:
* env: test
* ```
*
* ## Import
* Automanage Configuration can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:automanage/configuration:Configuration example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AutoManage/configurationProfiles/configurationProfile1
* ```
* @property antimalware A `antimalware` block as defined below.
* @property automationAccountEnabled Whether the automation account is enabled. Defaults to `false`.
* @property azureSecurityBaseline A `azure_security_baseline` block as defined below.
* @property backup A `backup` block as defined below.
* @property bootDiagnosticsEnabled Whether the boot diagnostics are enabled. Defaults to `false`.
* @property defenderForCloudEnabled Whether the defender for cloud is enabled. Defaults to `false`.
* @property guestConfigurationEnabled Whether the guest configuration is enabled. Defaults to `false`.
* @property location The Azure Region where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created.
* @property logAnalyticsEnabled Whether log analytics are enabled. Defaults to `false`.
* @property name The name which should be used for this Automanage Configuration. Changing this forces a new Automanage Configuration to be created.
* @property resourceGroupName The name of the Resource Group where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created.
* @property statusChangeAlertEnabled Whether the status change alert is enabled. Defaults to `false`.
* @property tags
*/
public data class ConfigurationArgs(
public val antimalware: Output? = null,
public val automationAccountEnabled: Output? = null,
public val azureSecurityBaseline: Output? = null,
public val backup: Output? = null,
public val bootDiagnosticsEnabled: Output? = null,
public val defenderForCloudEnabled: Output? = null,
public val guestConfigurationEnabled: Output? = null,
public val location: Output? = null,
public val logAnalyticsEnabled: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
public val statusChangeAlertEnabled: Output? = null,
public val tags: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.automanage.ConfigurationArgs =
com.pulumi.azure.automanage.ConfigurationArgs.builder()
.antimalware(antimalware?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.automationAccountEnabled(automationAccountEnabled?.applyValue({ args0 -> args0 }))
.azureSecurityBaseline(
azureSecurityBaseline?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.backup(backup?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.bootDiagnosticsEnabled(bootDiagnosticsEnabled?.applyValue({ args0 -> args0 }))
.defenderForCloudEnabled(defenderForCloudEnabled?.applyValue({ args0 -> args0 }))
.guestConfigurationEnabled(guestConfigurationEnabled?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.logAnalyticsEnabled(logAnalyticsEnabled?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.statusChangeAlertEnabled(statusChangeAlertEnabled?.applyValue({ args0 -> args0 }))
.tags(
tags?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
).build()
}
/**
* Builder for [ConfigurationArgs].
*/
@PulumiTagMarker
public class ConfigurationArgsBuilder internal constructor() {
private var antimalware: Output? = null
private var automationAccountEnabled: Output? = null
private var azureSecurityBaseline: Output? = null
private var backup: Output? = null
private var bootDiagnosticsEnabled: Output? = null
private var defenderForCloudEnabled: Output? = null
private var guestConfigurationEnabled: Output? = null
private var location: Output? = null
private var logAnalyticsEnabled: Output? = null
private var name: Output? = null
private var resourceGroupName: Output? = null
private var statusChangeAlertEnabled: Output? = null
private var tags: Output>? = null
/**
* @param value A `antimalware` block as defined below.
*/
@JvmName("ymicefkfgexexhpo")
public suspend fun antimalware(`value`: Output) {
this.antimalware = value
}
/**
* @param value Whether the automation account is enabled. Defaults to `false`.
*/
@JvmName("cdlcybmueknfssnv")
public suspend fun automationAccountEnabled(`value`: Output) {
this.automationAccountEnabled = value
}
/**
* @param value A `azure_security_baseline` block as defined below.
*/
@JvmName("jnsahnicplcnkjtt")
public suspend fun azureSecurityBaseline(`value`: Output) {
this.azureSecurityBaseline = value
}
/**
* @param value A `backup` block as defined below.
*/
@JvmName("lvarlqgplwsdcvlb")
public suspend fun backup(`value`: Output) {
this.backup = value
}
/**
* @param value Whether the boot diagnostics are enabled. Defaults to `false`.
*/
@JvmName("fmniephaeotcfxhf")
public suspend fun bootDiagnosticsEnabled(`value`: Output) {
this.bootDiagnosticsEnabled = value
}
/**
* @param value Whether the defender for cloud is enabled. Defaults to `false`.
*/
@JvmName("jrwwbtxavusawncv")
public suspend fun defenderForCloudEnabled(`value`: Output) {
this.defenderForCloudEnabled = value
}
/**
* @param value Whether the guest configuration is enabled. Defaults to `false`.
*/
@JvmName("jqyvhkebmcwbqivn")
public suspend fun guestConfigurationEnabled(`value`: Output) {
this.guestConfigurationEnabled = value
}
/**
* @param value The Azure Region where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created.
*/
@JvmName("qqtaouqgddfyyqtl")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Whether log analytics are enabled. Defaults to `false`.
*/
@JvmName("ipxhpdsubmtnibnw")
public suspend fun logAnalyticsEnabled(`value`: Output) {
this.logAnalyticsEnabled = value
}
/**
* @param value The name which should be used for this Automanage Configuration. Changing this forces a new Automanage Configuration to be created.
*/
@JvmName("mtlnxinhjwaukxio")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the Resource Group where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created.
*/
@JvmName("dgtwbymciujotpvw")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value Whether the status change alert is enabled. Defaults to `false`.
*/
@JvmName("cslarfhvsweouapg")
public suspend fun statusChangeAlertEnabled(`value`: Output) {
this.statusChangeAlertEnabled = value
}
/**
* @param value
*/
@JvmName("tlfovcmvdbsdgwwg")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value A `antimalware` block as defined below.
*/
@JvmName("ugmtlpgtlawtpkfo")
public suspend fun antimalware(`value`: ConfigurationAntimalwareArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.antimalware = mapped
}
/**
* @param argument A `antimalware` block as defined below.
*/
@JvmName("njuspsaxdhkiviab")
public suspend fun antimalware(argument: suspend ConfigurationAntimalwareArgsBuilder.() -> Unit) {
val toBeMapped = ConfigurationAntimalwareArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.antimalware = mapped
}
/**
* @param value Whether the automation account is enabled. Defaults to `false`.
*/
@JvmName("slsxethgqyyfysna")
public suspend fun automationAccountEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.automationAccountEnabled = mapped
}
/**
* @param value A `azure_security_baseline` block as defined below.
*/
@JvmName("jobokworwhauscoa")
public suspend fun azureSecurityBaseline(`value`: ConfigurationAzureSecurityBaselineArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.azureSecurityBaseline = mapped
}
/**
* @param argument A `azure_security_baseline` block as defined below.
*/
@JvmName("unmgfdnnmgspuuxv")
public suspend fun azureSecurityBaseline(argument: suspend ConfigurationAzureSecurityBaselineArgsBuilder.() -> Unit) {
val toBeMapped = ConfigurationAzureSecurityBaselineArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.azureSecurityBaseline = mapped
}
/**
* @param value A `backup` block as defined below.
*/
@JvmName("djhslsuqahvcvkss")
public suspend fun backup(`value`: ConfigurationBackupArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backup = mapped
}
/**
* @param argument A `backup` block as defined below.
*/
@JvmName("elfpsoxbnohjbdcx")
public suspend fun backup(argument: suspend ConfigurationBackupArgsBuilder.() -> Unit) {
val toBeMapped = ConfigurationBackupArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.backup = mapped
}
/**
* @param value Whether the boot diagnostics are enabled. Defaults to `false`.
*/
@JvmName("cuuencrulquvbqid")
public suspend fun bootDiagnosticsEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bootDiagnosticsEnabled = mapped
}
/**
* @param value Whether the defender for cloud is enabled. Defaults to `false`.
*/
@JvmName("dkyvxkvendsyjyko")
public suspend fun defenderForCloudEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.defenderForCloudEnabled = mapped
}
/**
* @param value Whether the guest configuration is enabled. Defaults to `false`.
*/
@JvmName("wiasehxdyydgpoxf")
public suspend fun guestConfigurationEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.guestConfigurationEnabled = mapped
}
/**
* @param value The Azure Region where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created.
*/
@JvmName("tisxpkwfpesqxqwg")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Whether log analytics are enabled. Defaults to `false`.
*/
@JvmName("agkbjfsxtdrscpum")
public suspend fun logAnalyticsEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logAnalyticsEnabled = mapped
}
/**
* @param value The name which should be used for this Automanage Configuration. Changing this forces a new Automanage Configuration to be created.
*/
@JvmName("qrkphklsxggyivrw")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The name of the Resource Group where the Automanage Configuration should exist. Changing this forces a new Automanage Configuration to be created.
*/
@JvmName("yxmivakppxnptwre")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value Whether the status change alert is enabled. Defaults to `false`.
*/
@JvmName("uapxgrhtvkyogawt")
public suspend fun statusChangeAlertEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.statusChangeAlertEnabled = mapped
}
/**
* @param value
*/
@JvmName("oxulgupidsbxgqhe")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param values
*/
@JvmName("nmgrosoawwbmkuoo")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
internal fun build(): ConfigurationArgs = ConfigurationArgs(
antimalware = antimalware,
automationAccountEnabled = automationAccountEnabled,
azureSecurityBaseline = azureSecurityBaseline,
backup = backup,
bootDiagnosticsEnabled = bootDiagnosticsEnabled,
defenderForCloudEnabled = defenderForCloudEnabled,
guestConfigurationEnabled = guestConfigurationEnabled,
location = location,
logAnalyticsEnabled = logAnalyticsEnabled,
name = name,
resourceGroupName = resourceGroupName,
statusChangeAlertEnabled = statusChangeAlertEnabled,
tags = tags,
)
}