EngineNamespaceArgs

data class EngineNamespaceArgs(val acceptLanguage: Output<String>? = null, val clusterId: Output<String>? = null, val namespaceId: Output<String>? = null, val namespaceShowName: Output<String>? = null) : ConvertibleToJava<EngineNamespaceArgs>

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

NOTE: Available in v1.166.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.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetNetworksArgs;
import com.pulumi.alicloud.vpc.inputs.GetSwitchesArgs;
import com.pulumi.alicloud.mse.Cluster;
import com.pulumi.alicloud.mse.ClusterArgs;
import com.pulumi.alicloud.mse.EngineNamespace;
import com.pulumi.alicloud.mse.EngineNamespaceArgs;
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 defaultNetworks = VpcFunctions.getNetworks(GetNetworksArgs.builder()
.nameRegex("default-NODELETING")
.build());
final var defaultSwitches = VpcFunctions.getSwitches(GetSwitchesArgs.builder()
.vpcId(defaultNetworks.applyValue(getNetworksResult -> getNetworksResult.ids()[0]))
.build());
var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
.clusterSpecification("MSE_SC_1_2_200_c")
.clusterType("Nacos-Ans")
.clusterVersion("NACOS_ANS_1_2_1")
.instanceCount(1)
.netType("privatenet")
.vswitchId(defaultSwitches.applyValue(getSwitchesResult -> getSwitchesResult.ids()[0]))
.pubNetworkFlow("1")
.aclEntryLists("127.0.0.1/32")
.clusterAliasName("example_value")
.build());
var example = new EngineNamespace("example", EngineNamespaceArgs.builder()
.clusterId(defaultCluster.clusterId())
.namespaceShowName("example_value")
.namespaceId("example_value")
.build());
}
}

Import

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

$ pulumi import alicloud:mse/engineNamespace:EngineNamespace example <cluster_id>:<namespace_id>

Constructors

Link copied to clipboard
fun EngineNamespaceArgs(acceptLanguage: Output<String>? = null, clusterId: Output<String>? = null, namespaceId: Output<String>? = null, namespaceShowName: Output<String>? = null)

Functions

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

Properties

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

The language type of the returned information. Valid values: zh, en.

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

The id of the cluster.

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

The id of Namespace.

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

The name of the Engine Namespace.