ApplicationArgs

data class ApplicationArgs(val applicationName: Output<String>? = null, val buildPackId: Output<Int>? = null, val clusterId: Output<String>? = null, val descriotion: Output<String>? = null, val ecuInfos: Output<List<String>>? = null, val groupId: Output<String>? = null, val healthCheckUrl: Output<String>? = null, val logicalRegionId: Output<String>? = null, val packageType: Output<String>? = null, val packageVersion: Output<String>? = null, val warUrl: Output<String>? = null) : ConvertibleToJava<ApplicationArgs>

Creates an EDAS ecs application on EDAS, see What is EDAS Application. The application will be deployed when group_id and war_url are given.

NOTE: Available since v1.82.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.GetRegionsArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.edas.Cluster;
import com.pulumi.alicloud.edas.ClusterArgs;
import com.pulumi.alicloud.edas.Application;
import com.pulumi.alicloud.edas.ApplicationArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("tf-example");
final var defaultRegions = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
.current(true)
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.4.0.0/16")
.build());
var defaultCluster = new Cluster("defaultCluster", ClusterArgs.builder()
.clusterName(name)
.clusterType("2")
.networkMode("2")
.logicalRegionId(defaultRegions.applyValue(getRegionsResult -> getRegionsResult.regions()[0].id()))
.vpcId(defaultNetwork.id())
.build());
var defaultApplication = new Application("defaultApplication", ApplicationArgs.builder()
.applicationName(name)
.clusterId(defaultCluster.id())
.packageType("JAR")
.build());
}
}

Import

EDAS application can be imported using the id, e.g.

$ pulumi import alicloud:edas/application:Application app app_Id

Constructors

Link copied to clipboard
fun ApplicationArgs(applicationName: Output<String>? = null, buildPackId: Output<Int>? = null, clusterId: Output<String>? = null, descriotion: Output<String>? = null, ecuInfos: Output<List<String>>? = null, groupId: Output<String>? = null, healthCheckUrl: Output<String>? = null, logicalRegionId: Output<String>? = null, packageType: Output<String>? = null, packageVersion: Output<String>? = null, warUrl: Output<String>? = null)

Functions

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

Properties

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

Name of your EDAS application. Only letters '-' '_' and numbers are allowed. The length cannot exceed 36 characters.

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

The package ID of Enterprise Distributed Application Service (EDAS) Container, which can be retrieved by calling container version list interface ListBuildPack or the "Pack ID" column in container version list. When creating High-speed Service Framework (HSF) application, this parameter is required.

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

The ID of the cluster that you want to create the application. The default cluster will be used if you do not specify this parameter.

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

The description of the application that you want to create.

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

The ID of the Elastic Compute Unit (ECU) where you want to deploy the application. Type: List.

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

The ID of the instance group where the application is going to be deployed. Set this parameter to all if you want to deploy the application to all groups.

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

The URL for health checking of the application.

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

The ID of the namespace where you want to create the application. You can call the ListUserDefineRegion operation to query the namespace ID.

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

The type of the package for the deployment of the application that you want to create. The valid values are: WAR and JAR. We strongly recommend you to set this parameter when creating the application.

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

The version of the application that you want to deploy. It must be unique for every application. The length cannot exceed 64 characters. We recommended you to use a timestamp.

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

The address to store the uploaded web application (WAR) package for application deployment. This parameter is required when the deployType parameter is set as url.