Application
This class encapsulates and extends the ROS resource type ALIYUN::EDAS::Application, which is used to create an application in an Elastic Compute Service (ECS) cluster in Enterprise Distributed Application Service (EDAS).
Initializers
import com.aliyun.ros.cdk.edas.Application;
Application.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.applicationName(java.lang.String)
.applicationName(IResolvable)
.clusterId(java.lang.String)
.clusterId(IResolvable)
// .buildPackId(java.lang.Number)
// .buildPackId(IResolvable)
// .componentIds(java.lang.String)
// .componentIds(IResolvable)
// .deployment(IResolvable)
// .deployment(DeploymentProperty)
// .description(java.lang.String)
// .description(IResolvable)
// .ecuInfo(java.lang.String)
// .ecuInfo(IResolvable)
// .healthCheckUrl(java.lang.String)
// .healthCheckUrl(IResolvable)
// .logicalRegionId(java.lang.String)
// .logicalRegionId(IResolvable)
// .packageType(java.lang.String)
// .packageType(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
.build();
| Name | Type | Description |
|---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
applicationName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property applicationName: The application name (only allow the use of numbers, letters, -, _, up to 36 characters). |
clusterId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property clusterId: Cluster ID of ECS application. |
buildPackId |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property buildPackId: EDAS-Container construct a packet number (available version list acquired through the ListBuildPack API (ConfigId of response) or "container version" table "Building packet number" column acquisition). |
componentIds |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property componentIds: Application component ID (available through the query interface to obtain a list of components to the interface ListComponents), when creating the application runtime environment using Apache Tomcat (war packet format Dubbo Application required) or standard Java application (jar package format Spring Boot \/ Spring Cloud applications require) you need to specify when the operating environment. |
deployment |
com.aliyun.ros.cdk.core.IResolvable OR DeploymentProperty |
Property deployment: Deploy application information to ECS clusters. |
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: Descriptive information. |
ecuInfo |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ecuInfo: Machine capacity is needed ecu_id (ECS Examples introducing another unique identity EDAS EDAS), the plurality of "," separated (by querying ListScaleOutEcu wherein ecu_id Interface to obtain). |
healthCheckUrl |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property healthCheckUrl: Application Health Check URL. |
logicalRegionId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property logicalRegionId: Namespace ID. |
packageType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property packageType: Application packet format, possible values: war or jar. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: Resource group id. |
scopeRequired
- Type: com.aliyun.ros.cdk.core.Construct
idRequired
- Type: java.lang.String
enableResourcePropertyConstraintOptional
- Type: java.lang.Boolean
applicationNameRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property applicationName: The application name (only allow the use of numbers, letters, -, _, up to 36 characters).
clusterIdRequired
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property clusterId: Cluster ID of ECS application.
buildPackIdOptional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property buildPackId: EDAS-Container construct a packet number (available version list acquired through the ListBuildPack API (ConfigId of response) or "container version" table "Building packet number" column acquisition).
When creating HSF application, this parameter must be specified
componentIdsOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property componentIds: Application component ID (available through the query interface to obtain a list of components to the interface ListComponents), when creating the application runtime environment using Apache Tomcat (war packet format Dubbo Application required) or standard Java application (jar package format Spring Boot \/ Spring Cloud applications require) you need to specify when the operating environment.
Commonly used application component ID and meaning: 4 represents Apache Tomcat 7.0.91,7 represented Apache Tomcat 8.5.42,5 represented OpenJDK 1.8.x, 6 represents OpenJDK 1.7.x
deploymentOptional
- Type: com.aliyun.ros.cdk.core.IResolvable OR DeploymentProperty
Property deployment: Deploy application information to ECS clusters.
descriptionOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: Descriptive information.
ecuInfoOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ecuInfo: Machine capacity is needed ecu_id (ECS Examples introducing another unique identity EDAS EDAS), the plurality of "," separated (by querying ListScaleOutEcu wherein ecu_id Interface to obtain).
healthCheckUrlOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property healthCheckUrl: Application Health Check URL.
logicalRegionIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property logicalRegionId: Namespace ID.
packageTypeOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property packageType: Application packet format, possible values: war or jar.
resourceGroupIdOptional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group id.
Methods
| Name | Description |
|---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition |
No description. |
addCount |
No description. |
addDependency |
No description. |
addResourceDesc |
No description. |
applyRemovalPolicy |
No description. |
getAtt |
No description. |
setMetadata |
No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack and Asset
as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
| Name | Description |
|---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.edas.Application;
Application.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
| Name | Type | Description |
|---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrAppId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute AppId: Application Id, a unique identifier EDAS application. |
attrPort |
com.aliyun.ros.cdk.core.IResolvable |
Attribute Port: Application port. |
nodeRequired
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
refRequired
public java.lang.String getRef();
- Type: java.lang.String
stackRequired
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resourceOptional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrAppIdRequired
public IResolvable getAttrAppId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute AppId: Application Id, a unique identifier EDAS application.
attrPortRequired
public IResolvable getAttrPort();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute Port: Application port.