Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
@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.GuestPoliciesAssignmentArgs.builder
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 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 GuestPoliciesAssignmentArgs(
public val groupLabels: Output>? = null,
public val instanceNamePrefixes: Output>? = null,
public val instances: Output>? = null,
public val osTypes: Output>? = null,
public val zones: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.osconfig.inputs.GuestPoliciesAssignmentArgs =
com.pulumi.gcp.osconfig.inputs.GuestPoliciesAssignmentArgs.builder()
.groupLabels(
groupLabels?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.instanceNamePrefixes(instanceNamePrefixes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.instances(instances?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.osTypes(
osTypes?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.zones(zones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [GuestPoliciesAssignmentArgs].
*/
@PulumiTagMarker
public class GuestPoliciesAssignmentArgsBuilder internal constructor() {
private var groupLabels: Output>? = null
private var instanceNamePrefixes: Output>? = null
private var instances: Output>? = null
private var osTypes: Output>? = null
private var zones: Output>? = null
/**
* @param value 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.
*/
@JvmName("hgqjtoytdumnxukm")
public suspend fun groupLabels(`value`: Output>) {
this.groupLabels = value
}
@JvmName("hilfhhgcbjhiovkq")
public suspend fun groupLabels(vararg values: Output) {
this.groupLabels = Output.all(values.asList())
}
/**
* @param values 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.
*/
@JvmName("adcoxuifrdmlxtvw")
public suspend fun groupLabels(values: List