com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesAssignment.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.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property groupLabels Targets instances matching at least one of these label sets. This allows an assignment to target disparate groups,
* for example "env=prod or env=staging".
* Structure is documented below.
* @property instanceNamePrefixes Targets VM instances whose name starts with one of these prefixes.
* Like labels, this is another way to group VM instances when targeting configs,
* for example prefix="prod-".
* Only supported for project-level policies.
* @property instances Targets any of the instances specified. Instances are specified by their URI in the form
* zones/[ZONE]/instances/[INSTANCE_NAME].
* Instance targeting is uncommon and is supported to facilitate the management of changes
* by the instance or to target specific VM instances for development and testing.
* Only supported for project-level policies and must reference instances within this project.
* @property osTypes Targets VM instances matching at least one of the following OS types.
* VM instances must match all supplied criteria for a given OsType to be included.
* Structure is documented below.
* @property zones Targets instances in any of these zones. Leave empty to target instances in any zone.
* Zonal targeting is uncommon and is supported to facilitate the management of changes by zone.
*/
public data class GuestPoliciesAssignment(
public val groupLabels: List? = null,
public val instanceNamePrefixes: List? = null,
public val instances: List? = null,
public val osTypes: List? = null,
public val zones: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.osconfig.outputs.GuestPoliciesAssignment): GuestPoliciesAssignment = GuestPoliciesAssignment(
groupLabels = javaType.groupLabels().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesAssignmentGroupLabel.Companion.toKotlin(args0)
})
}),
instanceNamePrefixes = javaType.instanceNamePrefixes().map({ args0 -> args0 }),
instances = javaType.instances().map({ args0 -> args0 }),
osTypes = javaType.osTypes().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.osconfig.kotlin.outputs.GuestPoliciesAssignmentOsType.Companion.toKotlin(args0)
})
}),
zones = javaType.zones().map({ args0 -> args0 }),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy