ApplicationProps
Properties for defining a Application
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-sae-application
Initializer
import com.aliyun.ros.cdk.sae.ApplicationProps;
ApplicationProps.builder()
.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();
Properties
Name | Type | 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. |
appName
Required
public java.lang.Object getAppName();
- 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
public java.lang.Object getCpu();
- 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
public java.lang.Object getMemory();
- 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
public java.lang.Object getNamespaceId();
- 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
public java.lang.Object getPackageType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property packageType: Application package type.
Support FatJar, War, Image.
replicas
Required
public java.lang.Object getReplicas();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property replicas: The initial number of instances.
acrAssumeRoleArn
Optional
public java.lang.Object getAcrAssumeRoleArn();
- 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
public java.lang.Object getAcrInstanceId();
- 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
public java.lang.Object getAppDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property appDescription: Application description.
No more than 1024 characters.
appSource
Optional
public java.lang.Object getAppSource();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property appSource: Application source.
associateEip
Optional
public java.lang.Object getAssociateEip();
- 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
public java.lang.Object getAutoConfig();
- 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
public java.lang.Object getBaseAppId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property baseAppId: Base application ID.
command
Optional
public java.lang.Object getCommand();
- 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
public java.lang.Object getCommandArgs();
- 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
public java.lang.Object getConfigMapMountDesc();
- 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
public java.lang.Object getCustomHostAlias();
- 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
public java.lang.Object getDeploy();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deploy: Whether deployed immediately take effect, the default is false.
edasContainerVersion
Optional
public java.lang.Object getEdasContainerVersion();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property edasContainerVersion: EDAS pandora runtime environment used by the application.
enableEbpf
Optional
public java.lang.Object getEnableEbpf();
- 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
public java.lang.Object getEnvs();
- 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
public java.lang.Object getImagePullSecrets();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imagePullSecrets: Corresponding to the secret dictionary ID.
imageUrl
Optional
public java.lang.Object getImageUrl();
- 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
public java.lang.Object getJarStartArgs();
- 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
public java.lang.Object getJarStartOptions();
- 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
public java.lang.Object getJdk();
- 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
public java.lang.Object getKafkaConfigs();
- 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
public java.lang.Object getLiveness();
- 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
public java.lang.Object getMicroRegistration();
- 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
public java.lang.Object getMicroRegistrationConfig();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property microRegistrationConfig: Registry configuration information.
mountDesc
Optional
public java.lang.Object getMountDesc();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property mountDesc: Mount Description.
mountHost
Optional
public java.lang.Object getMountHost();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property mountHost: nas mount point in the application of vpc.
nasConfigs
Optional
public java.lang.Object getNasConfigs();
- 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
public java.lang.Object getNasId();
- 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
public java.lang.Object getOssAkId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ossAkId: AccessKey ID of the OSS.
ossAkSecret
Optional
public java.lang.Object getOssAkSecret();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ossAkSecret: AccessKey Secret of the OSS.
ossMountDescs
Optional
public java.lang.Object getOssMountDescs();
- 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
public java.lang.Object getPackageUrl();
- 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
public java.lang.Object getPackageVersion();
- 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
public java.lang.Object getPhp();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property php: PHP version.
phpArmsConfigLocation
Optional
public java.lang.Object getPhpArmsConfigLocation();
- 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
public java.lang.Object getPhpConfig();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property phpConfig: PHP configuration file contents.
phpConfigLocation
Optional
public java.lang.Object getPhpConfigLocation();
- 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
public java.lang.Object getPostStart();
- 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
public java.lang.Object getPreStop();
- 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
public java.lang.Object getProgrammingLanguage();
- 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
public java.lang.Object getPvtzDiscoverySvc();
- 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
public java.lang.Object getPython();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property python: Python version.
Supports PYTHON 3.9.15
pythonModules
Optional
public java.lang.Object getPythonModules();
- 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
public java.lang.Object getReadiness();
- 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
public java.lang.Object getSaeVersion();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property saeVersion: SAE version.
securityGroupId
Optional
public java.lang.Object getSecurityGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property securityGroupId: Security group ID.
serviceTags
Optional
public java.lang.Object getServiceTags();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceTags: Service tags.
slsConfigs
Optional
public java.lang.Object getSlsConfigs();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property slsConfigs: Log collection configuration file.
tags
Optional
public java.util.List<TagsProperty> getTags();
- 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
public java.lang.Object getTerminationGracePeriodSeconds();
- 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
public java.lang.Object getTimezone();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property timezone: Application time zone.
Default Asia/Shanghai.
tomcatConfig
Optional
public java.lang.Object getTomcatConfig();
- 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
public java.lang.Object getVpcId();
- 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
public java.lang.Object getVSwitchId();
- 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
public java.lang.Object getWarStartOptions();
- 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
public java.lang.Object getWebContainer();
- 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.