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

com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroup.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.osconfig.kotlin.outputs

import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 OsPolicyAssignmentOsPolicyResourceGroup(
    public val inventoryFilters: List? = null,
    public val resources: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.OsPolicyAssignmentOsPolicyResourceGroup): OsPolicyAssignmentOsPolicyResourceGroup = OsPolicyAssignmentOsPolicyResourceGroup(
            inventoryFilters = javaType.inventoryFilters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupInventoryFilter.Companion.toKotlin(args0)
                })
            }),
            resources = javaType.resources().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.osconfig.kotlin.outputs.OsPolicyAssignmentOsPolicyResourceGroupResource.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy