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

com.pulumi.azure.maintenance.kotlin.AssignmentDynamicScopeArgs.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: 6.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.maintenance.kotlin

import com.pulumi.azure.maintenance.AssignmentDynamicScopeArgs.builder
import com.pulumi.azure.maintenance.kotlin.inputs.AssignmentDynamicScopeFilterArgs
import com.pulumi.azure.maintenance.kotlin.inputs.AssignmentDynamicScopeFilterArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Manages a Dynamic Maintenance Assignment.
 * > **Note:** Only valid for `InGuestPatch` Maintenance Configuration Scopes.
 * ## Import
 * Dynamic Maintenance Assignments can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:maintenance/assignmentDynamicScope:AssignmentDynamicScope example /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Maintenance/configurationAssignments/assignmentName
 * ```
 * @property filter A `filter` block as defined below.
 * @property maintenanceConfigurationId The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
 * @property name The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.
 * > **Note:** The `name` must be unique per subscription.
 */
public data class AssignmentDynamicScopeArgs(
    public val filter: Output? = null,
    public val maintenanceConfigurationId: Output? = null,
    public val name: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.maintenance.AssignmentDynamicScopeArgs =
        com.pulumi.azure.maintenance.AssignmentDynamicScopeArgs.builder()
            .filter(filter?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .maintenanceConfigurationId(maintenanceConfigurationId?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AssignmentDynamicScopeArgs].
 */
@PulumiTagMarker
public class AssignmentDynamicScopeArgsBuilder internal constructor() {
    private var filter: Output? = null

    private var maintenanceConfigurationId: Output? = null

    private var name: Output? = null

    /**
     * @param value A `filter` block as defined below.
     */
    @JvmName("rtrbhmyyhsecvowe")
    public suspend fun filter(`value`: Output) {
        this.filter = value
    }

    /**
     * @param value The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
     */
    @JvmName("ummdnclbyyknprke")
    public suspend fun maintenanceConfigurationId(`value`: Output) {
        this.maintenanceConfigurationId = value
    }

    /**
     * @param value The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.
     * > **Note:** The `name` must be unique per subscription.
     */
    @JvmName("nhtpdqxnafwrjehs")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A `filter` block as defined below.
     */
    @JvmName("jfxlbrcdwmmdensb")
    public suspend fun filter(`value`: AssignmentDynamicScopeFilterArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filter = mapped
    }

    /**
     * @param argument A `filter` block as defined below.
     */
    @JvmName("whqxndusbnbvqjuu")
    public suspend fun filter(argument: suspend AssignmentDynamicScopeFilterArgsBuilder.() -> Unit) {
        val toBeMapped = AssignmentDynamicScopeFilterArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.filter = mapped
    }

    /**
     * @param value The ID of the Maintenance Configuration Resource. Changing this forces a new Dynamic Maintenance Assignment to be created.
     */
    @JvmName("sitrdboayuslxmgp")
    public suspend fun maintenanceConfigurationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maintenanceConfigurationId = mapped
    }

    /**
     * @param value The name which should be used for this Dynamic Maintenance Assignment. Changing this forces a new Dynamic Maintenance Assignment to be created.
     * > **Note:** The `name` must be unique per subscription.
     */
    @JvmName("epkeivppoelykatf")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): AssignmentDynamicScopeArgs = AssignmentDynamicScopeArgs(
        filter = filter,
        maintenanceConfigurationId = maintenanceConfigurationId,
        name = name,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy