com.pulumi.alicloud.mse.kotlin.GatewayArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.alicloud.mse.kotlin
import com.pulumi.alicloud.mse.GatewayArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Provides a Microservice Engine (MSE) Gateway resource.
* For information about Microservice Engine (MSE) Gateway and how to use it, see [What is Gateway](https://help.aliyun.com/document_detail/347638.html).
* > **NOTE:** Available in v1.157.0+.
* ## Import
* Microservice Engine (MSE) Gateway can be imported using the id, e.g.
* ```sh
* $ pulumi import alicloud:mse/gateway:Gateway example
* ```
* @property backupVswitchId The backup vswitch id.
* @property deleteSlb Whether to delete the SLB purchased on behalf of the gateway at the same time.
* @property enterpriseSecurityGroup Whether the enterprise security group type.
* @property gatewayName The name of the Gateway .
* @property internetSlbSpec Public network SLB specifications.
* @property replica Number of Gateway Nodes.
* @property slbSpec Private network SLB specifications.
* @property spec Gateway Node Specifications. Valid values: `MSE_GTW_2_4_200_c`, `MSE_GTW_4_8_200_c`, `MSE_GTW_8_16_200_c`, `MSE_GTW_16_32_200_c`.
* @property vpcId The ID of the vpc.
* @property vswitchId The ID of the vswitch.
*/
public data class GatewayArgs(
public val backupVswitchId: Output? = null,
public val deleteSlb: Output? = null,
public val enterpriseSecurityGroup: Output? = null,
public val gatewayName: Output? = null,
public val internetSlbSpec: Output? = null,
public val replica: Output? = null,
public val slbSpec: Output? = null,
public val spec: Output? = null,
public val vpcId: Output? = null,
public val vswitchId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.mse.GatewayArgs =
com.pulumi.alicloud.mse.GatewayArgs.builder()
.backupVswitchId(backupVswitchId?.applyValue({ args0 -> args0 }))
.deleteSlb(deleteSlb?.applyValue({ args0 -> args0 }))
.enterpriseSecurityGroup(enterpriseSecurityGroup?.applyValue({ args0 -> args0 }))
.gatewayName(gatewayName?.applyValue({ args0 -> args0 }))
.internetSlbSpec(internetSlbSpec?.applyValue({ args0 -> args0 }))
.replica(replica?.applyValue({ args0 -> args0 }))
.slbSpec(slbSpec?.applyValue({ args0 -> args0 }))
.spec(spec?.applyValue({ args0 -> args0 }))
.vpcId(vpcId?.applyValue({ args0 -> args0 }))
.vswitchId(vswitchId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GatewayArgs].
*/
@PulumiTagMarker
public class GatewayArgsBuilder internal constructor() {
private var backupVswitchId: Output? = null
private var deleteSlb: Output? = null
private var enterpriseSecurityGroup: Output? = null
private var gatewayName: Output? = null
private var internetSlbSpec: Output? = null
private var replica: Output? = null
private var slbSpec: Output? = null
private var spec: Output? = null
private var vpcId: Output? = null
private var vswitchId: Output? = null
/**
* @param value The backup vswitch id.
*/
@JvmName("wgtcxvhghngwqtvb")
public suspend fun backupVswitchId(`value`: Output) {
this.backupVswitchId = value
}
/**
* @param value Whether to delete the SLB purchased on behalf of the gateway at the same time.
*/
@JvmName("flunattgjqxtinsq")
public suspend fun deleteSlb(`value`: Output) {
this.deleteSlb = value
}
/**
* @param value Whether the enterprise security group type.
*/
@JvmName("ttxlnamqrmnodvvv")
public suspend fun enterpriseSecurityGroup(`value`: Output) {
this.enterpriseSecurityGroup = value
}
/**
* @param value The name of the Gateway .
*/
@JvmName("adgaecswhuxamdxc")
public suspend fun gatewayName(`value`: Output) {
this.gatewayName = value
}
/**
* @param value Public network SLB specifications.
*/
@JvmName("ofkekdpjjaathidf")
public suspend fun internetSlbSpec(`value`: Output) {
this.internetSlbSpec = value
}
/**
* @param value Number of Gateway Nodes.
*/
@JvmName("ivyuujlimakqqrwm")
public suspend fun replica(`value`: Output) {
this.replica = value
}
/**
* @param value Private network SLB specifications.
*/
@JvmName("pfgvvifjqndlghrh")
public suspend fun slbSpec(`value`: Output) {
this.slbSpec = value
}
/**
* @param value Gateway Node Specifications. Valid values: `MSE_GTW_2_4_200_c`, `MSE_GTW_4_8_200_c`, `MSE_GTW_8_16_200_c`, `MSE_GTW_16_32_200_c`.
*/
@JvmName("acnsyygfmifwgukc")
public suspend fun spec(`value`: Output) {
this.spec = value
}
/**
* @param value The ID of the vpc.
*/
@JvmName("etqracbbodyimsip")
public suspend fun vpcId(`value`: Output) {
this.vpcId = value
}
/**
* @param value The ID of the vswitch.
*/
@JvmName("sfhklbxbirpboanm")
public suspend fun vswitchId(`value`: Output) {
this.vswitchId = value
}
/**
* @param value The backup vswitch id.
*/
@JvmName("gelfffouwbjmijan")
public suspend fun backupVswitchId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backupVswitchId = mapped
}
/**
* @param value Whether to delete the SLB purchased on behalf of the gateway at the same time.
*/
@JvmName("rqdvbbtnttiueqxg")
public suspend fun deleteSlb(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deleteSlb = mapped
}
/**
* @param value Whether the enterprise security group type.
*/
@JvmName("nxqattadfrysedie")
public suspend fun enterpriseSecurityGroup(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enterpriseSecurityGroup = mapped
}
/**
* @param value The name of the Gateway .
*/
@JvmName("wfstrasotonrgxrc")
public suspend fun gatewayName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gatewayName = mapped
}
/**
* @param value Public network SLB specifications.
*/
@JvmName("ymsodkklllhsfcto")
public suspend fun internetSlbSpec(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.internetSlbSpec = mapped
}
/**
* @param value Number of Gateway Nodes.
*/
@JvmName("qqwopkfvupqiqcjq")
public suspend fun replica(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.replica = mapped
}
/**
* @param value Private network SLB specifications.
*/
@JvmName("trygmqqcqsqtvmpk")
public suspend fun slbSpec(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.slbSpec = mapped
}
/**
* @param value Gateway Node Specifications. Valid values: `MSE_GTW_2_4_200_c`, `MSE_GTW_4_8_200_c`, `MSE_GTW_8_16_200_c`, `MSE_GTW_16_32_200_c`.
*/
@JvmName("rgostimmmsibflfv")
public suspend fun spec(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.spec = mapped
}
/**
* @param value The ID of the vpc.
*/
@JvmName("pwcnwyjkywwynjqh")
public suspend fun vpcId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.vpcId = mapped
}
/**
* @param value The ID of the vswitch.
*/
@JvmName("jqmqfyusrwtejikw")
public suspend fun vswitchId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.vswitchId = mapped
}
internal fun build(): GatewayArgs = GatewayArgs(
backupVswitchId = backupVswitchId,
deleteSlb = deleteSlb,
enterpriseSecurityGroup = enterpriseSecurityGroup,
gatewayName = gatewayName,
internetSlbSpec = internetSlbSpec,
replica = replica,
slbSpec = slbSpec,
spec = spec,
vpcId = vpcId,
vswitchId = vswitchId,
)
}