ReservationAffinityArgs

data class ReservationAffinityArgs(val consumeReservationType: Output<ReservationAffinityConsumeReservationType>? = null, val key: Output<String>? = null, val values: Output<List<String>>? = null) : ConvertibleToJava<ReservationAffinityArgs>

ReservationAffinity is the configuration of desired reservation which instances could take capacity from.

Constructors

Link copied to clipboard
fun ReservationAffinityArgs(consumeReservationType: Output<ReservationAffinityConsumeReservationType>? = null, key: Output<String>? = null, values: Output<List<String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ReservationAffinityArgs

Properties

Link copied to clipboard

Corresponds to the type of reservation consumption.

Link copied to clipboard
val key: Output<String>? = null

Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify "compute.googleapis.com/reservation-name" as the key and specify the name of your reservation as its value.

Link copied to clipboard
val values: Output<List<String>>? = null

Corresponds to the label value(s) of reservation resource(s).