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.googlenative.compute.alpha.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.alpha.InstanceGroupArgs.builder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NamedPortArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NamedPortArgsBuilder
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
/**
* Creates an instance group in the specified project using the parameters that are included in the request.
* @property description An optional description of this resource. Provide this property when you create the resource.
* @property name The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
* @property namedPorts Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
* @property project
* @property requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
* @property zone
*/
public data class InstanceGroupArgs(
public val description: Output? = null,
public val name: Output? = null,
public val namedPorts: Output>? = null,
public val project: Output? = null,
public val requestId: Output? = null,
public val zone: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.alpha.InstanceGroupArgs =
com.pulumi.googlenative.compute.alpha.InstanceGroupArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.namedPorts(
namedPorts?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.project(project?.applyValue({ args0 -> args0 }))
.requestId(requestId?.applyValue({ args0 -> args0 }))
.zone(zone?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceGroupArgs].
*/
@PulumiTagMarker
public class InstanceGroupArgsBuilder internal constructor() {
private var description: Output? = null
private var name: Output? = null
private var namedPorts: Output>? = null
private var project: Output? = null
private var requestId: Output? = null
private var zone: Output? = null
/**
* @param value An optional description of this resource. Provide this property when you create the resource.
*/
@JvmName("fgdlnwtryymaxtgn")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035.
*/
@JvmName("ypgsqdwjjcpyoskt")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
*/
@JvmName("rorohojcbrboptij")
public suspend fun namedPorts(`value`: Output>) {
this.namedPorts = value
}
@JvmName("itbrievutilystfb")
public suspend fun namedPorts(vararg values: Output) {
this.namedPorts = Output.all(values.asList())
}
/**
* @param values Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group.
*/
@JvmName("ildnskmojnjchull")
public suspend fun namedPorts(values: List