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

com.pulumi.azure.policy.kotlin.outputs.VirtualMachineConfigurationAssignmentConfiguration.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.policy.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 VirtualMachineConfigurationAssignmentConfiguration(
    public val assignmentType: String? = null,
    public val contentHash: String? = null,
    public val contentUri: String? = null,
    public val parameters: List? = null,
    public val version: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.policy.outputs.VirtualMachineConfigurationAssignmentConfiguration): VirtualMachineConfigurationAssignmentConfiguration =
            VirtualMachineConfigurationAssignmentConfiguration(
                assignmentType = javaType.assignmentType().map({ args0 -> args0 }).orElse(null),
                contentHash = javaType.contentHash().map({ args0 -> args0 }).orElse(null),
                contentUri = javaType.contentUri().map({ args0 -> args0 }).orElse(null),
                parameters = javaType.parameters().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.policy.kotlin.outputs.VirtualMachineConfigurationAssignmentConfigurationParameter.Companion.toKotlin(args0)
                    })
                }),
                version = javaType.version().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy