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

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

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property instanceTemplate The full URL to an instance template from which all new instances of this version will be created.
 * @property name Version name.
 * @property targetSize The number of instances calculated as a fixed number or a percentage depending on the settings. Structure is documented below.
 * > Exactly one `version` you specify must not have a `target_size` specified. During a rolling update, the instance group manager will fulfill the `target_size`
 * constraints of every other `version`, and any remaining instances will be provisioned with the version where `target_size` is unset.
 */
public data class RegionInstanceGroupManagerVersion(
    public val instanceTemplate: String,
    public val name: String? = null,
    public val targetSize: RegionInstanceGroupManagerVersionTargetSize? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RegionInstanceGroupManagerVersion): RegionInstanceGroupManagerVersion = RegionInstanceGroupManagerVersion(
            instanceTemplate = javaType.instanceTemplate(),
            name = javaType.name().map({ args0 -> args0 }).orElse(null),
            targetSize = javaType.targetSize().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.RegionInstanceGroupManagerVersionTargetSize.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy