
com.pulumi.azure.policy.kotlin.inputs.VirtualMachineConfigurationAssignmentConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy