Skip to content

Application

This class encapsulates and extends the ROS resource type ALIYUN::SAE::Application, which is used to create an application in Serverless App Engine (SAE).

Initializers

import com.aliyun.ros.cdk.sae.Application;
Application.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .appName(java.lang.String)
    .appName(IResolvable)
    .cpu(java.lang.Number)
    .cpu(IResolvable)
    .memory(java.lang.Number)
    .memory(IResolvable)
    .namespaceId(java.lang.String)
    .namespaceId(IResolvable)
    .packageType(java.lang.String)
    .packageType(IResolvable)
    .replicas(java.lang.Number)
    .replicas(IResolvable)
//  .acrAssumeRoleArn(java.lang.String)
//  .acrAssumeRoleArn(IResolvable)
//  .acrInstanceId(java.lang.String)
//  .acrInstanceId(IResolvable)
//  .appDescription(java.lang.String)
//  .appDescription(IResolvable)
//  .appSource(java.lang.String)
//  .appSource(IResolvable)
//  .associateEip(java.lang.Boolean)
//  .associateEip(IResolvable)
//  .autoConfig(java.lang.Boolean)
//  .autoConfig(IResolvable)
//  .baseAppId(java.lang.String)
//  .baseAppId(IResolvable)
//  .command(java.lang.String)
//  .command(IResolvable)
//  .commandArgs(java.lang.String)
//  .commandArgs(IResolvable)
//  .configMapMountDesc(java.lang.String)
//  .configMapMountDesc(IResolvable)
//  .customHostAlias(java.lang.String)
//  .customHostAlias(IResolvable)
//  .deploy(java.lang.Boolean)
//  .deploy(IResolvable)
//  .edasContainerVersion(java.lang.String)
//  .edasContainerVersion(IResolvable)
//  .enableEbpf(java.lang.String)
//  .enableEbpf(IResolvable)
//  .envs(java.lang.String)
//  .envs(IResolvable)
//  .imagePullSecrets(java.lang.String)
//  .imagePullSecrets(IResolvable)
//  .imageUrl(java.lang.String)
//  .imageUrl(IResolvable)
//  .jarStartArgs(java.lang.String)
//  .jarStartArgs(IResolvable)
//  .jarStartOptions(java.lang.String)
//  .jarStartOptions(IResolvable)
//  .jdk(java.lang.String)
//  .jdk(IResolvable)
//  .kafkaConfigs(java.lang.String)
//  .kafkaConfigs(IResolvable)
//  .liveness(java.lang.String)
//  .liveness(IResolvable)
//  .microRegistration(java.lang.String)
//  .microRegistration(IResolvable)
//  .microRegistrationConfig(java.lang.String)
//  .microRegistrationConfig(IResolvable)
//  .mountDesc(java.lang.String)
//  .mountDesc(IResolvable)
//  .mountHost(java.lang.String)
//  .mountHost(IResolvable)
//  .nasConfigs(java.lang.String)
//  .nasConfigs(IResolvable)
//  .nasId(java.lang.String)
//  .nasId(IResolvable)
//  .ossAkId(java.lang.String)
//  .ossAkId(IResolvable)
//  .ossAkSecret(java.lang.String)
//  .ossAkSecret(IResolvable)
//  .ossMountDescs(java.util.List<java.lang.Object>)
//  .ossMountDescs(IResolvable)
//  .packageUrl(java.lang.String)
//  .packageUrl(IResolvable)
//  .packageVersion(java.lang.String)
//  .packageVersion(IResolvable)
//  .php(java.lang.String)
//  .php(IResolvable)
//  .phpArmsConfigLocation(java.lang.String)
//  .phpArmsConfigLocation(IResolvable)
//  .phpConfig(java.lang.String)
//  .phpConfig(IResolvable)
//  .phpConfigLocation(java.lang.String)
//  .phpConfigLocation(IResolvable)
//  .postStart(java.lang.String)
//  .postStart(IResolvable)
//  .preStop(java.lang.String)
//  .preStop(IResolvable)
//  .programmingLanguage(java.lang.String)
//  .programmingLanguage(IResolvable)
//  .pvtzDiscoverySvc(java.lang.String)
//  .pvtzDiscoverySvc(IResolvable)
//  .python(java.lang.String)
//  .python(IResolvable)
//  .pythonModules(java.lang.String)
//  .pythonModules(IResolvable)
//  .readiness(java.lang.String)
//  .readiness(IResolvable)
//  .saeVersion(java.lang.String)
//  .saeVersion(IResolvable)
//  .securityGroupId(java.lang.String)
//  .securityGroupId(IResolvable)
//  .serviceTags(java.lang.String)
//  .serviceTags(IResolvable)
//  .slsConfigs(java.lang.String)
//  .slsConfigs(IResolvable)
//  .tags(java.util.List<TagsProperty>)
//  .terminationGracePeriodSeconds(java.lang.Number)
//  .terminationGracePeriodSeconds(IResolvable)
//  .timezone(java.lang.String)
//  .timezone(IResolvable)
//  .tomcatConfig(java.lang.String)
//  .tomcatConfig(IResolvable)
//  .vpcId(java.lang.String)
//  .vpcId(IResolvable)
//  .vSwitchId(java.lang.String)
//  .vSwitchId(IResolvable)
//  .warStartOptions(java.lang.String)
//  .warStartOptions(IResolvable)
//  .webContainer(java.lang.String)
//  .webContainer(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.
appName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property appName: Application Name.
cpu java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property cpu: Each instance of the CPU required, in units of milli core, can not be zero.
memory java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property memory: Each instance of the required memory, in units of MB, can not be zero.
namespaceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property namespaceId: EDAS namespace corresponding to ID.
packageType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property packageType: Application package type.
replicas java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property replicas: The initial number of instances.
acrAssumeRoleArn java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property acrAssumeRoleArn: The ARN of the RAM role required when pulling the image across accounts.
acrInstanceId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property acrInstanceId: Container Image service ACR Enterprise Edition instance ID.
appDescription java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property appDescription: Application description.
appSource java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property appSource: Application source.
associateEip java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property associateEip: Whether to bind EIP.
autoConfig java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property autoConfig: Whether to automatically configure the network environment.
baseAppId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property baseAppId: Base application ID.
command java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property command: Mirroring the start command.
commandArgs java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property commandArgs: Mirroring the start command parameters.
configMapMountDesc java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property configMapMountDesc: ConfigMap mount description.
customHostAlias java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property customHostAlias: Custom mapping host vessel.
deploy java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property deploy: Whether deployed immediately take effect, the default is false.
edasContainerVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property edasContainerVersion: EDAS pandora runtime environment used by the application.
enableEbpf java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property enableEbpf: Whether to enable EBPF.
envs java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property envs: Container environment variable parameters.
imagePullSecrets java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property imagePullSecrets: Corresponding to the secret dictionary ID.
imageUrl java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property imageUrl: Mirroring address.
jarStartArgs java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property jarStartArgs: Jar package startup application parameters.
jarStartOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property jarStartOptions: Jar start the application package option.
jdk java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property jdk: Deployment of JDK version of the package depends on.
kafkaConfigs java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property kafkaConfigs: Logs are ingested to Kafka configuration summary information.
liveness java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property liveness: Container health check, health check fails container will be killed and recovery.
microRegistration java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property microRegistration: Select the Nacos registry with the following values: - 0: SAE built-in Nacos.
microRegistrationConfig java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property microRegistrationConfig: Registry configuration information.
mountDesc java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property mountDesc: Mount Description.
mountHost java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property mountHost: nas mount point in the application of vpc.
nasConfigs java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property nasConfigs: Configuration to mount the NAS.
nasId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property nasId: Mount the NAS ID, you must be in the same region and cluster.
ossAkId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ossAkId: AccessKey ID of the OSS.
ossAkSecret java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ossAkSecret: AccessKey Secret of the OSS.
ossMountDescs java.util.List OR com.aliyun.ros.cdk.core.IResolvable Property ossMountDescs: OSS mount description information.
packageUrl java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property packageUrl: Deployment packages address.
packageVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property packageVersion: The version number of the deployed package, War FatJar type required.
php java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property php: PHP version.
phpArmsConfigLocation java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property phpArmsConfigLocation: The PHP application monitors the mount path and requires you to ensure that the PHP server loads the configuration file for this path.
phpConfig java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property phpConfig: PHP configuration file contents.
phpConfigLocation java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property phpConfigLocation: PHP application launch configuration mount path, you need to ensure that the PHP server will be started with this configuration file.
postStart java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property postStart: Executing the script, such as after starting the format: { "exec": { "command": "cat", "\/ etc \/ group"}}.
preStop java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property preStop: Script is executed before stopping the format as: { "exec": { "command": "cat", "\/ etc \/ group"}}.
programmingLanguage java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property programmingLanguage: Create the stack language for the application.
pvtzDiscoverySvc java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property pvtzDiscoverySvc: Enable K8s Service registration discovery.
python java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property python: Python version.
pythonModules java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property pythonModules: Install custom module dependencies.
readiness java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property readiness: Application launch status check, health check fails repeatedly container will be killed and restarted.
saeVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property saeVersion: SAE version.
securityGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property securityGroupId: Security group ID.
serviceTags java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property serviceTags: Service tags.
slsConfigs java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property slsConfigs: Log collection configuration file.
tags java.util.List<TagsProperty> Property tags: Tags to attach to application.
terminationGracePeriodSeconds java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property terminationGracePeriodSeconds: Graceful offline timeout, default 30, unit of seconds.
timezone java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property timezone: Application time zone.
tomcatConfig java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property tomcatConfig: Tomcat file configuration, set to "" or "{}" to delete the configuration: - port: Ports in the range of 1024 to 65535 require Root privileges to operate on ports below 1024 Because the container is configured with Admin access, please specify a port greater than 1024.
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: EDAS namespace corresponding VPC.
vSwitchId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vSwitchId: Application examples where the elastic card virtual switch.
warStartOptions java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property warStartOptions: War Start the application package option.
webContainer java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property webContainer: Tomcat deployment of the package depends on the version.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

appNameRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property appName: Application Name.

Allowed numbers, letters and underlined combinations thereof. We must begin with the letters, the maximum length of 36 characters.


cpuRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property cpu: Each instance of the CPU required, in units of milli core, can not be zero.

Currently only supports fixed specifications instance type.


memoryRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property memory: Each instance of the required memory, in units of MB, can not be zero.

Currently only supports fixed specifications instance type.


namespaceIdRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property namespaceId: EDAS namespace corresponding to ID.

Canada supports only the name of the scribe lowercase namespace must begin with a letter. Namespace can interface to obtain from DescribeNamespaceList.


packageTypeRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property packageType: Application package type.

Support FatJar, War, Image.


replicasRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property replicas: The initial number of instances.


acrAssumeRoleArnOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property acrAssumeRoleArn: The ARN of the RAM role required when pulling the image across accounts.


acrInstanceIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property acrInstanceId: Container Image service ACR Enterprise Edition instance ID.

Required when ImageUrl serves enterprise edition for container images.


appDescriptionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property appDescription: Application description.

No more than 1024 characters.


appSourceOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property appSource: Application source.


associateEipOptional

  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property associateEip: Whether to bind EIP.

The values are explained as follows:

  • true: Binding.
  • false: No binding

autoConfigOptional

  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property autoConfig: Whether to automatically configure the network environment.

The values are explained as follows:

  • true: SAE automatically config the network environment when creating the application. The values for NamespaceId, VpcId, vSwitchId, and SecurityGroupId are ignored.
  • false: SAE manually config the network environment when creating the application.

baseAppIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property baseAppId: Base application ID.


commandOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property command: Mirroring the start command.

The command object in memory executable container must be. For example: sleep. This command will cause the image to set the original startup command failure.


commandArgsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property commandArgs: Mirroring the start command parameters.

Parameters required for the start-command. For example: [ "1d"]


configMapMountDescOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property configMapMountDesc: ConfigMap mount description.

Use the configuration items created on the namespace configuration items page to inject configuration information into the container.


customHostAliasOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property customHostAlias: Custom mapping host vessel.

For example: [{ "hostName": "samplehost", "ip": "127.0.0.1"}]


deployOptional

  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property deploy: Whether deployed immediately take effect, the default is false.


edasContainerVersionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property edasContainerVersion: EDAS pandora runtime environment used by the application.


enableEbpfOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property enableEbpf: Whether to enable EBPF.

Enable application monitoring for non-Java applications. The values are explained as follows:

  • true: Enable.
  • false: Disable.

envsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property envs: Container environment variable parameters.

For example: [{ "name": "envtmp", "value": "0"}]


imagePullSecretsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property imagePullSecrets: Corresponding to the secret dictionary ID.


imageUrlOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property imageUrl: Mirroring address.

Image only type of application can be configured to mirror address.


jarStartArgsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property jarStartArgs: Jar package startup application parameters.

Apply the default startup command: $ JAVA_HOME / bin / java $ JarStartOptions -jar $ CATALINA_OPTS "$ package_path" $ JarStartArgs


jarStartOptionsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property jarStartOptions: Jar start the application package option.

Apply the default startup command: $ JAVA_HOME / bin / java $ JarStartOptions -jar $ CATALINA_OPTS "$ package_path" $ JarStartArgs


jdkOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property jdk: Deployment of JDK version of the package depends on.

Mirroring not supported.


kafkaConfigsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property kafkaConfigs: Logs are ingested to Kafka configuration summary information.

The values are explained as follows:

  • kafkaEndpoint: The service access address for the Kafka API
  • kafkaInstanceId: Kafka instance ID
  • kafkaConfigs: Configuration summary information for one or more logs See Request parameters kafkaConfigs for a description of these values.

livenessOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property liveness: Container health check, health check fails container will be killed and recovery.

Currently only supports mode command issued in the container. The columns: { "exec": { "command": [ "sleep", "5s"]}, "initialDelaySeconds": 10, "timeoutSeconds": 11}


microRegistrationOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property microRegistration: Select the Nacos registry with the following values: - 0: SAE built-in Nacos.

  • 1: User-built Nacos.
  • 2: MSE commercial version of Nacos.

microRegistrationConfigOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property microRegistrationConfig: Registry configuration information.


mountDescOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property mountDesc: Mount Description.


mountHostOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property mountHost: nas mount point in the application of vpc.


nasConfigsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property nasConfigs: Configuration to mount the NAS.

The values are explained as follows:

  • mountPath: The container mount path
  • readOnly: A value of false indicates read and write permission.
  • nasId: NAS ID
  • mountDomain: The container mount point address For more information, see DescribeMountTargets.
  • nasPath: NAS relative file directory

nasIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property nasId: Mount the NAS ID, you must be in the same region and cluster.

It must be available to create a mount point limit, or switch on its mount point already in the VPC. If you do not fill, and there mountDescs field, the default will automatically purchase a NAS and mount it onto the switch within the VPC.


ossAkIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property ossAkId: AccessKey ID of the OSS.


ossAkSecretOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property ossAkSecret: AccessKey Secret of the OSS.


ossMountDescsOptional

  • Type: java.util.List OR com.aliyun.ros.cdk.core.IResolvable

Property ossMountDescs: OSS mount description information.

The parameters are described as follows:

  • bucketName: The name of the Bucket
  • bucketPath: The directory or OSS object you created in OSS that will raise an exception if the OSS mount directory does not exist.
  • mountPath: Your container path in SAE. If the path already exists, it is a covering relationship. If the path doesn't exist, it will be created.
  • readOnly: This specifies whether the container path has read-only permissions for mount directory resources:

  • true: Read-only permission

  • false: Read and write permissions

packageUrlOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property packageUrl: Deployment packages address.

Only FatJar War or the type of application can be configured to deploy packet address.


packageVersionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property packageVersion: The version number of the deployed package, War FatJar type required.

Please customize it meaning.


phpOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property php: PHP version.


phpArmsConfigLocationOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property phpArmsConfigLocation: The PHP application monitors the mount path and requires you to ensure that the PHP server loads the configuration file for this path.

You don't need to worry about the configuration content; SAE will automatically render the correct configuration file.


phpConfigOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property phpConfig: PHP configuration file contents.


phpConfigLocationOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property phpConfigLocation: PHP application launch configuration mount path, you need to ensure that the PHP server will be started with this configuration file.


postStartOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property postStart: Executing the script, such as after starting the format: { "exec": { "command": "cat", "\/ etc \/ group"}}.


preStopOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property preStop: Script is executed before stopping the format as: { "exec": { "command": "cat", "\/ etc \/ group"}}.


programmingLanguageOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property programmingLanguage: Create the stack language for the application.

The values are explained as follows:

  • java: The Java language
  • php: PHP language.
  • other: Multiple languages such as Python, C++, Go,.NET, Node.js, etc.

pvtzDiscoverySvcOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property pvtzDiscoverySvc: Enable K8s Service registration discovery.

The values are explained as follows:

  • serviceName: The name of the service The format is custom-namespace ID, in which the postfix-namespace ID does not support customization and needs to be filled in according to the namespace of the application. For example, choosing the default namespace for the North China 2 (Beijing) region would be -cn-beijing-default.
  • namespaceId: The namespace ID
  • portProtocols: Ports and protocols The port is in the range [1,65535] and supports both TCP and UDP protocols.
  • portAndProtocol: Ports and protocols The port is in the range [1,65535] and supports both TCP and UDP protocols. portProtocols is preferred. If portProtocols is set, only portProtocols will take effect.
  • enable: Enable K8s Service registration discovery.

pythonOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property python: Python version.

Supports PYTHON 3.9.15


pythonModulesOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property pythonModules: Install custom module dependencies.

The dependencies defined in requirements.txt in the root directory are installed by default. If the package is not configured or customized, you can specify the dependencies to install.


readinessOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property readiness: Application launch status check, health check fails repeatedly container will be killed and restarted.

Do not pass health check of the vessel will not have to enter SLB traffic. For example: { "exec": { "command": [ "sleep", "6s"]}, "initialDelaySeconds": 15, "timeoutSeconds": 12}


saeVersionOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property saeVersion: SAE version.


securityGroupIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property securityGroupId: Security group ID.


serviceTagsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property serviceTags: Service tags.


slsConfigsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property slsConfigs: Log collection configuration file.


tagsOptional

Property tags: Tags to attach to application.

Max support 20 tags to add during create application. Each tag with two properties Key and Value, and Key is required.


terminationGracePeriodSecondsOptional

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property terminationGracePeriodSeconds: Graceful offline timeout, default 30, unit of seconds.

The value ranges from 1 to 300.


timezoneOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property timezone: Application time zone.

Default Asia/Shanghai.


tomcatConfigOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property tomcatConfig: Tomcat file configuration, set to "" or "{}" to delete the configuration: - port: Ports in the range of 1024 to 65535 require Root privileges to operate on ports below 1024 Because the container is configured with Admin access, please specify a port greater than 1024.

If not configured, it defaults to 8080.

  • contextPath: The access path, defaults to the root directory "/"
  • maxThreads: This config the number of connections in the pool; the default is 400.
  • uriEncoding: Tomcat's encoding formats, including UTF-8, ISO-8859-1, GBK, and GB2312 If not set, it defaults to ISO-8859-1.
  • useBodyEncodingForUri: Whether to useBodyEncoding for URL (defaults to true).

vpcIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vpcId: EDAS namespace corresponding VPC.

In Serverless in a corresponding one of the VPC namespace only, and can not be modified. Serverless first created in the application name space will form a binding relationship. You may correspond to a plurality of namespaces VPC. Do not fill was VpcId namespace binding.


vSwitchIdOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vSwitchId: Application examples where the elastic card virtual switch.

The switch must be located above the VPC. The same switch with EDAS namespace binding relationship. Do not fill was VSwitchId namespace binding.


warStartOptionsOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property warStartOptions: War Start the application package option.

Apply the default startup command: java $ JAVA_OPTS $ CATALINA_OPTS -Options org.apache.catalina.startup.Bootstrap "$ @" start


webContainerOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property webContainer: Tomcat deployment of the package depends on the version.

Mirroring not supported.


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.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

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

isConstruct

import com.aliyun.ros.cdk.sae.Application;
Application.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • 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: Creating successful application ID.
attrChangeOrderId com.aliyun.ros.cdk.core.IResolvable Attribute ChangeOrderId: Return to release a single ID, used to query task execution status.

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: Creating successful application ID.


attrChangeOrderIdRequired

public IResolvable getAttrChangeOrderId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ChangeOrderId: Return to release a single ID, used to query task execution status.