com.pulumi.gcp.osconfig.kotlin.inputs.OsPolicyAssignmentOsPolicyResourceGroupArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.osconfig.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property inventoryFilters List of inventory filters for the resource
* group. The resources in this resource group are applied to the target VM if
* it satisfies at least one of the following inventory filters. For example,
* to apply this resource group to VMs running either `RHEL` or `CentOS`
* operating systems, specify 2 items for the list with following values:
* inventory_filters[0].os_short_name='rhel' and
* inventory_filters[1].os_short_name='centos' If the list is empty, this
* resource group will be applied to the target VM unconditionally. Structure
* is documented below.
* @property resources List of resources configured for this resource
* group. The resources are executed in the exact order specified here.
* Structure is documented below.
*/
public data class OsPolicyAssignmentOsPolicyResourceGroupArgs(
public val inventoryFilters: Output>? = null,
public val resources: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupArgs = com.pulumi.gcp.osconfig.inputs.OsPolicyAssignmentOsPolicyResourceGroupArgs.builder()
.inventoryFilters(
inventoryFilters?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.resources(
resources.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [OsPolicyAssignmentOsPolicyResourceGroupArgs].
*/
@PulumiTagMarker
public class OsPolicyAssignmentOsPolicyResourceGroupArgsBuilder internal constructor() {
private var inventoryFilters:
Output>? = null
private var resources: Output>? = null
/**
* @param value List of inventory filters for the resource
* group. The resources in this resource group are applied to the target VM if
* it satisfies at least one of the following inventory filters. For example,
* to apply this resource group to VMs running either `RHEL` or `CentOS`
* operating systems, specify 2 items for the list with following values:
* inventory_filters[0].os_short_name='rhel' and
* inventory_filters[1].os_short_name='centos' If the list is empty, this
* resource group will be applied to the target VM unconditionally. Structure
* is documented below.
*/
@JvmName("nihgstaslcwsxgga")
public suspend fun inventoryFilters(`value`: Output>) {
this.inventoryFilters = value
}
@JvmName("wugluhivkndyxqse")
public suspend fun inventoryFilters(vararg values: Output) {
this.inventoryFilters = Output.all(values.asList())
}
/**
* @param values List of inventory filters for the resource
* group. The resources in this resource group are applied to the target VM if
* it satisfies at least one of the following inventory filters. For example,
* to apply this resource group to VMs running either `RHEL` or `CentOS`
* operating systems, specify 2 items for the list with following values:
* inventory_filters[0].os_short_name='rhel' and
* inventory_filters[1].os_short_name='centos' If the list is empty, this
* resource group will be applied to the target VM unconditionally. Structure
* is documented below.
*/
@JvmName("xxalacblalsfnycx")
public suspend fun inventoryFilters(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy