Please wait. This can take some minutes ...
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.
com.pulumi.googlenative.compute.alpha.kotlin.GlobalNetworkEndpointGroupArgs.kt Maven / Gradle / Ivy
@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.GlobalNetworkEndpointGroupArgs.builder
import com.pulumi.googlenative.compute.alpha.kotlin.enums.GlobalNetworkEndpointGroupNetworkEndpointType
import com.pulumi.googlenative.compute.alpha.kotlin.enums.GlobalNetworkEndpointGroupType
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupAppEngineArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupAppEngineArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupCloudFunctionArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupCloudFunctionArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupCloudRunArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupCloudRunArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupLbNetworkEndpointGroupArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupLbNetworkEndpointGroupArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupPscDataArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupPscDataArgsBuilder
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupServerlessDeploymentArgs
import com.pulumi.googlenative.compute.alpha.kotlin.inputs.NetworkEndpointGroupServerlessDeploymentArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Deprecated
import kotlin.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Creates a network endpoint group in the specified project using the parameters that are included in the request.
* @property annotations Metadata defined as annotations on the network endpoint group.
* @property appEngine Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
* @property cloudFunction Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
* @property cloudRun Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
* @property defaultPort The default port used if the port number is not specified in the network endpoint.
* @property description An optional description of this resource. Provide this property when you create the resource.
* @property loadBalancer This field is only valid when the network endpoint group is used for load balancing. [Deprecated] This field is deprecated.
* @property name Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
* @property network The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.
* @property networkEndpointType Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT.
* @property project
* @property pscData
* @property pscTargetService The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: "asia-northeast3-cloudkms.googleapis.com"
* @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 serverlessDeployment Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.
* @property subnetwork Optional URL of the subnetwork to which all network endpoints in the NEG belong.
* @property type Specify the type of this network endpoint group. Only LOAD_BALANCING is valid for now.
*/
public data class GlobalNetworkEndpointGroupArgs(
public val annotations: Output>? = null,
public val appEngine: Output? = null,
public val cloudFunction: Output? = null,
public val cloudRun: Output? = null,
public val defaultPort: Output? = null,
public val description: Output? = null,
@Deprecated(
message = """
This field is only valid when the network endpoint group is used for load balancing. [Deprecated]
This field is deprecated.
""",
)
public val loadBalancer: Output? = null,
public val name: Output? = null,
public val network: Output? = null,
public val networkEndpointType: Output? = null,
public val project: Output? = null,
public val pscData: Output? = null,
public val pscTargetService: Output? = null,
public val requestId: Output? = null,
public val serverlessDeployment: Output? = null,
public val subnetwork: Output? = null,
public val type: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.compute.alpha.GlobalNetworkEndpointGroupArgs =
com.pulumi.googlenative.compute.alpha.GlobalNetworkEndpointGroupArgs.builder()
.annotations(
annotations?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.appEngine(appEngine?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.cloudFunction(cloudFunction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.cloudRun(cloudRun?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.defaultPort(defaultPort?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.loadBalancer(loadBalancer?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name?.applyValue({ args0 -> args0 }))
.network(network?.applyValue({ args0 -> args0 }))
.networkEndpointType(
networkEndpointType?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.project(project?.applyValue({ args0 -> args0 }))
.pscData(pscData?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.pscTargetService(pscTargetService?.applyValue({ args0 -> args0 }))
.requestId(requestId?.applyValue({ args0 -> args0 }))
.serverlessDeployment(
serverlessDeployment?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.subnetwork(subnetwork?.applyValue({ args0 -> args0 }))
.type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [GlobalNetworkEndpointGroupArgs].
*/
@PulumiTagMarker
public class GlobalNetworkEndpointGroupArgsBuilder internal constructor() {
private var annotations: Output>? = null
private var appEngine: Output? = null
private var cloudFunction: Output? = null
private var cloudRun: Output? = null
private var defaultPort: Output? = null
private var description: Output? = null
private var loadBalancer: Output? = null
private var name: Output? = null
private var network: Output? = null
private var networkEndpointType: Output? = null
private var project: Output? = null
private var pscData: Output? = null
private var pscTargetService: Output? = null
private var requestId: Output? = null
private var serverlessDeployment: Output? = null
private var subnetwork: Output? = null
private var type: Output? = null
/**
* @param value Metadata defined as annotations on the network endpoint group.
*/
@JvmName("uftnpehxyfnlwafq")
public suspend fun annotations(`value`: Output>) {
this.annotations = value
}
/**
* @param value Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
*/
@JvmName("eustdgulvhgxbvqa")
public suspend fun appEngine(`value`: Output) {
this.appEngine = value
}
/**
* @param value Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
*/
@JvmName("xvudurblrmyocolg")
public suspend fun cloudFunction(`value`: Output) {
this.cloudFunction = value
}
/**
* @param value Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
*/
@JvmName("kknwaunpshaanmsb")
public suspend fun cloudRun(`value`: Output) {
this.cloudRun = value
}
/**
* @param value The default port used if the port number is not specified in the network endpoint.
*/
@JvmName("rpdfehknywypfkbs")
public suspend fun defaultPort(`value`: Output) {
this.defaultPort = value
}
/**
* @param value An optional description of this resource. Provide this property when you create the resource.
*/
@JvmName("eyfsxmpdqufcqaxw")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value This field is only valid when the network endpoint group is used for load balancing. [Deprecated] This field is deprecated.
*/
@Deprecated(
message = """
This field is only valid when the network endpoint group is used for load balancing. [Deprecated]
This field is deprecated.
""",
)
@JvmName("irixxbyjccjhjogs")
public suspend fun loadBalancer(`value`: Output) {
this.loadBalancer = value
}
/**
* @param value Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*/
@JvmName("axjoqljkcfksmbbq")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.
*/
@JvmName("rspmrtjwkkdttpdx")
public suspend fun network(`value`: Output) {
this.network = value
}
/**
* @param value Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT.
*/
@JvmName("ovqrscendnijkotl")
public suspend fun networkEndpointType(`value`: Output) {
this.networkEndpointType = value
}
/**
* @param value
*/
@JvmName("xnlyjlhcdxnhyfxg")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value
*/
@JvmName("unjqaaopfsjvbcop")
public suspend fun pscData(`value`: Output) {
this.pscData = value
}
/**
* @param value The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: "asia-northeast3-cloudkms.googleapis.com"
*/
@JvmName("osckdaghcvmeovvj")
public suspend fun pscTargetService(`value`: Output) {
this.pscTargetService = value
}
/**
* @param value 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).
*/
@JvmName("ullmofvltjtnnxyg")
public suspend fun requestId(`value`: Output) {
this.requestId = value
}
/**
* @param value Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.
*/
@JvmName("yeirurrtqlkpesbm")
public suspend fun serverlessDeployment(`value`: Output) {
this.serverlessDeployment = value
}
/**
* @param value Optional URL of the subnetwork to which all network endpoints in the NEG belong.
*/
@JvmName("itcaswvhtnrikxou")
public suspend fun subnetwork(`value`: Output) {
this.subnetwork = value
}
/**
* @param value Specify the type of this network endpoint group. Only LOAD_BALANCING is valid for now.
*/
@JvmName("ainjeaoxdfnxgxvd")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Metadata defined as annotations on the network endpoint group.
*/
@JvmName("jpdsyfwesdbwqtwl")
public suspend fun annotations(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.annotations = mapped
}
/**
* @param values Metadata defined as annotations on the network endpoint group.
*/
@JvmName("lctaxfvxavdupcse")
public fun annotations(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.annotations = mapped
}
/**
* @param value Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
*/
@JvmName("srnsivjcvahqsbkk")
public suspend fun appEngine(`value`: NetworkEndpointGroupAppEngineArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.appEngine = mapped
}
/**
* @param argument Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
*/
@JvmName("fljoaawroupxojuh")
public suspend fun appEngine(argument: suspend NetworkEndpointGroupAppEngineArgsBuilder.() -> Unit) {
val toBeMapped = NetworkEndpointGroupAppEngineArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.appEngine = mapped
}
/**
* @param value Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
*/
@JvmName("faptspxxhqieifyu")
public suspend fun cloudFunction(`value`: NetworkEndpointGroupCloudFunctionArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cloudFunction = mapped
}
/**
* @param argument Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
*/
@JvmName("arwxnattsgtdfdxx")
public suspend fun cloudFunction(argument: suspend NetworkEndpointGroupCloudFunctionArgsBuilder.() -> Unit) {
val toBeMapped = NetworkEndpointGroupCloudFunctionArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.cloudFunction = mapped
}
/**
* @param value Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
*/
@JvmName("plnyemggxtpljhql")
public suspend fun cloudRun(`value`: NetworkEndpointGroupCloudRunArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cloudRun = mapped
}
/**
* @param argument Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set.
*/
@JvmName("cjyfqbptwqwiovdi")
public suspend fun cloudRun(argument: suspend NetworkEndpointGroupCloudRunArgsBuilder.() -> Unit) {
val toBeMapped = NetworkEndpointGroupCloudRunArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.cloudRun = mapped
}
/**
* @param value The default port used if the port number is not specified in the network endpoint.
*/
@JvmName("syiluxwmarkfgcgu")
public suspend fun defaultPort(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.defaultPort = mapped
}
/**
* @param value An optional description of this resource. Provide this property when you create the resource.
*/
@JvmName("mbhrcfgfrdrjjjlp")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value This field is only valid when the network endpoint group is used for load balancing. [Deprecated] This field is deprecated.
*/
@Deprecated(
message = """
This field is only valid when the network endpoint group is used for load balancing. [Deprecated]
This field is deprecated.
""",
)
@JvmName("gejqxfogqaehnxvb")
public suspend fun loadBalancer(`value`: NetworkEndpointGroupLbNetworkEndpointGroupArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.loadBalancer = mapped
}
/**
* @param argument This field is only valid when the network endpoint group is used for load balancing. [Deprecated] This field is deprecated.
*/
@Deprecated(
message = """
This field is only valid when the network endpoint group is used for load balancing. [Deprecated]
This field is deprecated.
""",
)
@JvmName("ejdlahvygujcfnqj")
public suspend fun loadBalancer(argument: suspend NetworkEndpointGroupLbNetworkEndpointGroupArgsBuilder.() -> Unit) {
val toBeMapped = NetworkEndpointGroupLbNetworkEndpointGroupArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.loadBalancer = mapped
}
/**
* @param value Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
*/
@JvmName("hwpuoohelmiggxhf")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The URL of the network to which all network endpoints in the NEG belong. Uses "default" project network if unspecified.
*/
@JvmName("gwwulcqkejauhwqu")
public suspend fun network(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.network = mapped
}
/**
* @param value Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT.
*/
@JvmName("kubhmxuqtovkcwob")
public suspend fun networkEndpointType(`value`: GlobalNetworkEndpointGroupNetworkEndpointType?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.networkEndpointType = mapped
}
/**
* @param value
*/
@JvmName("fowlshwsuffxiqxj")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value
*/
@JvmName("emxlwnadplseqjox")
public suspend fun pscData(`value`: NetworkEndpointGroupPscDataArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pscData = mapped
}
/**
* @param argument
*/
@JvmName("wvtyatqrfieahhel")
public suspend fun pscData(argument: suspend NetworkEndpointGroupPscDataArgsBuilder.() -> Unit) {
val toBeMapped = NetworkEndpointGroupPscDataArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.pscData = mapped
}
/**
* @param value The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment. An example value is: "asia-northeast3-cloudkms.googleapis.com"
*/
@JvmName("ubpslgxppdlpktbi")
public suspend fun pscTargetService(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.pscTargetService = mapped
}
/**
* @param value 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).
*/
@JvmName("vrdyllnvafvloonr")
public suspend fun requestId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.requestId = mapped
}
/**
* @param value Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.
*/
@JvmName("nwjsiwqqanqxwhdu")
public suspend fun serverlessDeployment(`value`: NetworkEndpointGroupServerlessDeploymentArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serverlessDeployment = mapped
}
/**
* @param argument Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine, cloudFunction or serverlessDeployment may be set.
*/
@JvmName("kfkssbltnkuaxiwi")
public suspend fun serverlessDeployment(argument: suspend NetworkEndpointGroupServerlessDeploymentArgsBuilder.() -> Unit) {
val toBeMapped = NetworkEndpointGroupServerlessDeploymentArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.serverlessDeployment = mapped
}
/**
* @param value Optional URL of the subnetwork to which all network endpoints in the NEG belong.
*/
@JvmName("ldiifnkfrepuqtal")
public suspend fun subnetwork(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.subnetwork = mapped
}
/**
* @param value Specify the type of this network endpoint group. Only LOAD_BALANCING is valid for now.
*/
@JvmName("cafxnqtlvjxgmryx")
public suspend fun type(`value`: GlobalNetworkEndpointGroupType?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): GlobalNetworkEndpointGroupArgs = GlobalNetworkEndpointGroupArgs(
annotations = annotations,
appEngine = appEngine,
cloudFunction = cloudFunction,
cloudRun = cloudRun,
defaultPort = defaultPort,
description = description,
loadBalancer = loadBalancer,
name = name,
network = network,
networkEndpointType = networkEndpointType,
project = project,
pscData = pscData,
pscTargetService = pscTargetService,
requestId = requestId,
serverlessDeployment = serverlessDeployment,
subnetwork = subnetwork,
type = type,
)
}