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

com.pulumi.azure.policy.kotlin.inputs.VirtualMachineConfigurationAssignmentConfigurationArgs.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.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.policy.kotlin.inputs

import com.pulumi.azure.policy.inputs.VirtualMachineConfigurationAssignmentConfigurationArgs.builder
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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property assignmentType The assignment type for the Guest Configuration Assignment. Possible values are `Audit`, `ApplyAndAutoCorrect`, `ApplyAndMonitor` and `DeployAndAutoCorrect`.
 * @property contentHash The content hash for the Guest Configuration package.
 * @property contentUri The content URI where the Guest Configuration package is stored.
 * > **NOTE:** When deploying a Custom Guest Configuration package the `content_hash` and `content_uri` fields must be defined. For Built-in Guest Configuration packages, such as the `AzureWindowsBaseline` package, the `content_hash` and `content_uri` should not be defined, rather these fields will be returned after the Built-in Guest Configuration package has been provisioned. For more information on guest configuration assignments please see the [product documentation](https://docs.microsoft.com/azure/governance/policy/concepts/guest-configuration-assignments).
 * @property parameters One or more `parameter` blocks as defined below which define what configuration parameters and values against.
 * @property version The version of the Guest Configuration that will be assigned in this Guest Configuration Assignment.
 */
public data class VirtualMachineConfigurationAssignmentConfigurationArgs(
    public val assignmentType: Output? = null,
    public val contentHash: Output? = null,
    public val contentUri: Output? = null,
    public val parameters:
    Output>? = null,
    public val version: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.policy.inputs.VirtualMachineConfigurationAssignmentConfigurationArgs =
        com.pulumi.azure.policy.inputs.VirtualMachineConfigurationAssignmentConfigurationArgs.builder()
            .assignmentType(assignmentType?.applyValue({ args0 -> args0 }))
            .contentHash(contentHash?.applyValue({ args0 -> args0 }))
            .contentUri(contentUri?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VirtualMachineConfigurationAssignmentConfigurationArgs].
 */
@PulumiTagMarker
public class VirtualMachineConfigurationAssignmentConfigurationArgsBuilder internal constructor() {
    private var assignmentType: Output? = null

    private var contentHash: Output? = null

    private var contentUri: Output? = null

    private var parameters:
        Output>? = null

    private var version: Output? = null

    /**
     * @param value The assignment type for the Guest Configuration Assignment. Possible values are `Audit`, `ApplyAndAutoCorrect`, `ApplyAndMonitor` and `DeployAndAutoCorrect`.
     */
    @JvmName("reebpnwkhlbyknxd")
    public suspend fun assignmentType(`value`: Output) {
        this.assignmentType = value
    }

    /**
     * @param value The content hash for the Guest Configuration package.
     */
    @JvmName("xqsefbuqmyfxbevs")
    public suspend fun contentHash(`value`: Output) {
        this.contentHash = value
    }

    /**
     * @param value The content URI where the Guest Configuration package is stored.
     * > **NOTE:** When deploying a Custom Guest Configuration package the `content_hash` and `content_uri` fields must be defined. For Built-in Guest Configuration packages, such as the `AzureWindowsBaseline` package, the `content_hash` and `content_uri` should not be defined, rather these fields will be returned after the Built-in Guest Configuration package has been provisioned. For more information on guest configuration assignments please see the [product documentation](https://docs.microsoft.com/azure/governance/policy/concepts/guest-configuration-assignments).
     */
    @JvmName("nttmgmqadhlkioxb")
    public suspend fun contentUri(`value`: Output) {
        this.contentUri = value
    }

    /**
     * @param value One or more `parameter` blocks as defined below which define what configuration parameters and values against.
     */
    @JvmName("kpdioowrcnnnojur")
    public suspend
    fun parameters(`value`: Output>) {
        this.parameters = value
    }

    @JvmName("osdetubrkxsvdwjc")
    public suspend fun parameters(
        vararg
        values: Output,
    ) {
        this.parameters = Output.all(values.asList())
    }

    /**
     * @param values One or more `parameter` blocks as defined below which define what configuration parameters and values against.
     */
    @JvmName("vwjovjncbgeesryy")
    public suspend
    fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value The version of the Guest Configuration that will be assigned in this Guest Configuration Assignment.
     */
    @JvmName("pundfsghsqpeqhbn")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value The assignment type for the Guest Configuration Assignment. Possible values are `Audit`, `ApplyAndAutoCorrect`, `ApplyAndMonitor` and `DeployAndAutoCorrect`.
     */
    @JvmName("nqmwuwgfhjbxahri")
    public suspend fun assignmentType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assignmentType = mapped
    }

    /**
     * @param value The content hash for the Guest Configuration package.
     */
    @JvmName("gecohojvfhuwknjc")
    public suspend fun contentHash(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentHash = mapped
    }

    /**
     * @param value The content URI where the Guest Configuration package is stored.
     * > **NOTE:** When deploying a Custom Guest Configuration package the `content_hash` and `content_uri` fields must be defined. For Built-in Guest Configuration packages, such as the `AzureWindowsBaseline` package, the `content_hash` and `content_uri` should not be defined, rather these fields will be returned after the Built-in Guest Configuration package has been provisioned. For more information on guest configuration assignments please see the [product documentation](https://docs.microsoft.com/azure/governance/policy/concepts/guest-configuration-assignments).
     */
    @JvmName("wpyfhwhochvupdwi")
    public suspend fun contentUri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.contentUri = mapped
    }

    /**
     * @param value One or more `parameter` blocks as defined below which define what configuration parameters and values against.
     */
    @JvmName("yxcwtfxyrnkixphj")
    public suspend
    fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument One or more `parameter` blocks as defined below which define what configuration parameters and values against.
     */
    @JvmName("uyrouilrosjpypmw")
    public suspend
    fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VirtualMachineConfigurationAssignmentConfigurationParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument One or more `parameter` blocks as defined below which define what configuration parameters and values against.
     */
    @JvmName("txhtpaleamhabhdo")
    public suspend fun parameters(
        vararg
        argument: suspend VirtualMachineConfigurationAssignmentConfigurationParameterArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            VirtualMachineConfigurationAssignmentConfigurationParameterArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument One or more `parameter` blocks as defined below which define what configuration parameters and values against.
     */
    @JvmName("athynledrxtvmbwe")
    public suspend
    fun parameters(argument: suspend VirtualMachineConfigurationAssignmentConfigurationParameterArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                VirtualMachineConfigurationAssignmentConfigurationParameterArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values One or more `parameter` blocks as defined below which define what configuration parameters and values against.
     */
    @JvmName("djsxwobbygctqdpb")
    public suspend fun parameters(
        vararg
        values: VirtualMachineConfigurationAssignmentConfigurationParameterArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value The version of the Guest Configuration that will be assigned in this Guest Configuration Assignment.
     */
    @JvmName("whffowqgwvdhusho")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): VirtualMachineConfigurationAssignmentConfigurationArgs =
        VirtualMachineConfigurationAssignmentConfigurationArgs(
            assignmentType = assignmentType,
            contentHash = contentHash,
            contentUri = contentUri,
            parameters = parameters,
            version = version,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy