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 |
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. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
appName
Required
- 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.
cpu
Required
- 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.
memory
Required
- 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.
namespaceId
Required
- 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.
packageType
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property packageType: Application package type.
Support FatJar, War, Image.
replicas
Required
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property replicas: The initial number of instances.
acrAssumeRoleArn
Optional
- 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.
acrInstanceId
Optional
- 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.
appDescription
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property appDescription: Application description.
No more than 1024 characters.
appSource
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property appSource: Application source.
associateEip
Optional
- 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
autoConfig
Optional
- 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.
baseAppId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property baseAppId: Base application ID.
command
Optional
- 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.
commandArgs
Optional
- 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"]
configMapMountDesc
Optional
- 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.
customHostAlias
Optional
- 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"}]
deploy
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deploy: Whether deployed immediately take effect, the default is false.
edasContainerVersion
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property edasContainerVersion: EDAS pandora runtime environment used by the application.
enableEbpf
Optional
- 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.
envs
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property envs: Container environment variable parameters.
For example: [{ "name": "envtmp", "value": "0"}]
imagePullSecrets
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imagePullSecrets: Corresponding to the secret dictionary ID.
imageUrl
Optional
- 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.
jarStartArgs
Optional
- 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
jarStartOptions
Optional
- 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
jdk
Optional
- 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.
kafkaConfigs
Optional
- 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.
liveness
Optional
- 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}
microRegistration
Optional
- 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.
microRegistrationConfig
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property microRegistrationConfig: Registry configuration information.
mountDesc
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property mountDesc: Mount Description.
mountHost
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property mountHost: nas mount point in the application of vpc.
nasConfigs
Optional
- 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
nasId
Optional
- 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.
ossAkId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ossAkId: AccessKey ID of the OSS.
ossAkSecret
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ossAkSecret: AccessKey Secret of the OSS.
ossMountDescs
Optional
- 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
packageUrl
Optional
- 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.
packageVersion
Optional
- 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.
php
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property php: PHP version.
phpArmsConfigLocation
Optional
- 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.
phpConfig
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property phpConfig: PHP configuration file contents.
phpConfigLocation
Optional
- 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.
postStart
Optional
- 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"}}.
preStop
Optional
- 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"}}.
programmingLanguage
Optional
- 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.
pvtzDiscoverySvc
Optional
- 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.
python
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property python: Python version.
Supports PYTHON 3.9.15
pythonModules
Optional
- 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.
readiness
Optional
- 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}
saeVersion
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property saeVersion: SAE version.
securityGroupId
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property securityGroupId: Security group ID.
serviceTags
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceTags: Service tags.
slsConfigs
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property slsConfigs: Log collection configuration file.
tags
Optional
- Type: java.util.List<TagsProperty>
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.
terminationGracePeriodSeconds
Optional
- 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.
timezone
Optional
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property timezone: Application time zone.
Default Asia/Shanghai.
tomcatConfig
Optional
- 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).
vpcId
Optional
- 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.
vSwitchId
Optional
- 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.
warStartOptions
Optional
- 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
webContainer
Optional
- 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.
- 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.sae.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: 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. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrAppId
Required
public IResolvable getAttrAppId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute AppId: Creating successful application ID.
attrChangeOrderId
Required
public IResolvable getAttrChangeOrderId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute ChangeOrderId: Return to release a single ID, used to query task execution status.