GatewayArgs

data class GatewayArgs(val backupVswitchId: Output<String>? = null, val deleteSlb: Output<Boolean>? = null, val enterpriseSecurityGroup: Output<Boolean>? = null, val gatewayName: Output<String>? = null, val internetSlbSpec: Output<String>? = null, val replica: Output<Int>? = null, val slbSpec: Output<String>? = null, val spec: Output<String>? = null, val vpcId: Output<String>? = null, val vswitchId: Output<String>? = null) : ConvertibleToJava<GatewayArgs>

Provides a Microservice Engine (MSE) Gateway resource. For information about Microservice Engine (MSE) Gateway and how to use it, see What is Gateway.

NOTE: Available in v1.157.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.mse.Gateway;
import com.pulumi.alicloud.mse.GatewayArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
final var defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("default-NODELETING")
.build());
final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.build());
var example = new Gateway("example", GatewayArgs.builder()
.gatewayName("example_value")
.replica(2)
.spec("MSE_GTW_2_4_200_c")
.vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.backupVswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[1]))
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.build());
}
}

Import

Microservice Engine (MSE) Gateway can be imported using the id, e.g.

$ pulumi import alicloud:mse/gateway:Gateway example <id>

Constructors

Link copied to clipboard
fun GatewayArgs(backupVswitchId: Output<String>? = null, deleteSlb: Output<Boolean>? = null, enterpriseSecurityGroup: Output<Boolean>? = null, gatewayName: Output<String>? = null, internetSlbSpec: Output<String>? = null, replica: Output<Int>? = null, slbSpec: Output<String>? = null, spec: Output<String>? = null, vpcId: Output<String>? = null, vswitchId: Output<String>? = null)

Functions

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

Properties

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

The backup vswitch id.

Link copied to clipboard
val deleteSlb: Output<Boolean>? = null

Whether to delete the SLB purchased on behalf of the gateway at the same time.

Link copied to clipboard
val enterpriseSecurityGroup: Output<Boolean>? = null

Whether the enterprise security group type.

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

The name of the Gateway .

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

Public network SLB specifications.

Link copied to clipboard
val replica: Output<Int>? = null

Number of Gateway Nodes.

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

Private network SLB specifications.

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

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.

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

The ID of the vpc.

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

The ID of the vswitch.