Skip to content

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 ros_cdk_edas
ros_cdk_edas.Application(
  scope: Construct,
  id: str,
  application_name: typing.Union[str, IResolvable],
  cluster_id: typing.Union[str, IResolvable],
  build_pack_id: typing.Union[typing.Union[int, float], IResolvable] = None,
  component_ids: typing.Union[str, IResolvable] = None,
  deployment: typing.Union[IResolvable, DeploymentProperty] = None,
  description: typing.Union[str, IResolvable] = None,
  ecu_info: typing.Union[str, IResolvable] = None,
  health_check_url: typing.Union[str, IResolvable] = None,
  logical_region_id: typing.Union[str, IResolvable] = None,
  package_type: typing.Union[str, IResolvable] = None,
  resource_group_id: typing.Union[str, IResolvable] = None,
  enable_resource_property_constraint: bool = None
)
Name Type Description
scope ros_cdk_core.Construct No description.
id str No description.
application_name typing.Union[str, ros_cdk_core.IResolvable] Property applicationName: The application name (only allow the use of numbers, letters, -, _, up to 36 characters).
cluster_id typing.Union[str, ros_cdk_core.IResolvable] Property clusterId: Cluster ID of ECS application.
build_pack_id typing.Union[typing.Union[int, float], 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).
component_ids typing.Union[str, 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 typing.Union[ros_cdk_core.IResolvable, DeploymentProperty] Property deployment: Deploy application information to ECS clusters.
description typing.Union[str, ros_cdk_core.IResolvable] Property description: Descriptive information.
ecu_info typing.Union[str, 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).
health_check_url typing.Union[str, ros_cdk_core.IResolvable] Property healthCheckUrl: Application Health Check URL.
logical_region_id typing.Union[str, ros_cdk_core.IResolvable] Property logicalRegionId: Namespace ID.
package_type typing.Union[str, ros_cdk_core.IResolvable] Property packageType: Application packet format, possible values: war or jar.
resource_group_id typing.Union[str, ros_cdk_core.IResolvable] Property resourceGroupId: Resource group id.
enable_resource_property_constraint bool No description.

scopeRequired

  • Type: ros_cdk_core.Construct

idRequired

  • Type: str

application_nameRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property applicationName: The application name (only allow the use of numbers, letters, -, _, up to 36 characters).


cluster_idRequired

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property clusterId: Cluster ID of ECS application.


build_pack_idOptional

  • Type: typing.Union[typing.Union[int, float], 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


component_idsOptional

  • Type: typing.Union[str, 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

Property deployment: Deploy application information to ECS clusters.


descriptionOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property description: Descriptive information.


ecu_infoOptional

  • Type: typing.Union[str, 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).


health_check_urlOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property healthCheckUrl: Application Health Check URL.


logical_region_idOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property logicalRegionId: Namespace ID.


package_typeOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property packageType: Application packet format, possible values: war or jar.


resource_group_idOptional

  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property resourceGroupId: Resource group id.


enable_resource_property_constraintOptional

  • Type: bool

Methods

Name Description
to_string Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
add_condition No description.
add_count No description.
add_dependency No description.
add_resource_desc No description.
apply_removal_policy No description.
get_att No description.
set_metadata No description.

to_string

def to_string() -> str

Returns a string representation of this construct.

synthesize

def synthesize(
  session: ISynthesisSession
) -> None

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.

sessionRequired

  • Type: ros_cdk_core.ISynthesisSession

The synthesis session.


add_condition

def add_condition(
  condition: RosCondition
) -> None

conditionRequired

  • Type: ros_cdk_core.RosCondition

add_count

def add_count(
  count: typing.Union[typing.Union[int, float], IResolvable]
) -> None

countRequired

  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

add_dependency

def add_dependency(
  resource: Resource
) -> None

resourceRequired

  • Type: ros_cdk_core.Resource

add_resource_desc

def add_resource_desc(
  desc: str
) -> None

descRequired

  • Type: str

apply_removal_policy

def apply_removal_policy(
  policy: RemovalPolicy
) -> None

policyRequired

  • Type: ros_cdk_core.RemovalPolicy

get_att

def get_att(
  name: str
) -> IResolvable

nameRequired

  • Type: str

set_metadata

def set_metadata(
  key: str,
  value: typing.Any
) -> None

keyRequired

  • Type: str

valueRequired

  • Type: typing.Any

Static Functions

Name Description
is_construct Return whether the given object is a Construct.

is_construct

import ros_cdk_edas
ros_cdk_edas.Application.is_construct(
  x: typing.Any
)

Return whether the given object is a Construct.

xRequired

  • Type: typing.Any

Properties

Name Type Description
node ros_cdk_core.ConstructNode The construct tree node associated with this construct.
ref str No description.
stack ros_cdk_core.Stack The stack in which this resource is defined.
resource ros_cdk_core.RosResource No description.
attr_app_id ros_cdk_core.IResolvable Attribute AppId: Application Id, a unique identifier EDAS application.
attr_port ros_cdk_core.IResolvable Attribute Port: Application port.

nodeRequired

node: ConstructNode
  • Type: ros_cdk_core.ConstructNode

The construct tree node associated with this construct.


refRequired

ref: str
  • Type: str

stackRequired

stack: Stack
  • Type: ros_cdk_core.Stack

The stack in which this resource is defined.


resourceOptional

resource: RosResource
  • Type: ros_cdk_core.RosResource

attr_app_idRequired

attr_app_id: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute AppId: Application Id, a unique identifier EDAS application.


attr_portRequired

attr_port: IResolvable
  • Type: ros_cdk_core.IResolvable

Attribute Port: Application port.