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 ros_cdk_sae
ros_cdk_sae.Application(
scope: Construct,
id: str,
app_name: typing.Union[str, IResolvable],
cpu: typing.Union[typing.Union[int, float], IResolvable],
memory: typing.Union[typing.Union[int, float], IResolvable],
namespace_id: typing.Union[str, IResolvable],
package_type: typing.Union[str, IResolvable],
replicas: typing.Union[typing.Union[int, float], IResolvable],
acr_assume_role_arn: typing.Union[str, IResolvable] = None,
acr_instance_id: typing.Union[str, IResolvable] = None,
app_description: typing.Union[str, IResolvable] = None,
app_source: typing.Union[str, IResolvable] = None,
associate_eip: typing.Union[bool, IResolvable] = None,
auto_config: typing.Union[bool, IResolvable] = None,
base_app_id: typing.Union[str, IResolvable] = None,
command: typing.Union[str, IResolvable] = None,
command_args: typing.Union[str, IResolvable] = None,
config_map_mount_desc: typing.Union[str, IResolvable] = None,
custom_host_alias: typing.Union[str, IResolvable] = None,
deploy: typing.Union[bool, IResolvable] = None,
edas_container_version: typing.Union[str, IResolvable] = None,
enable_ebpf: typing.Union[str, IResolvable] = None,
envs: typing.Union[str, IResolvable] = None,
image_pull_secrets: typing.Union[str, IResolvable] = None,
image_url: typing.Union[str, IResolvable] = None,
jar_start_args: typing.Union[str, IResolvable] = None,
jar_start_options: typing.Union[str, IResolvable] = None,
jdk: typing.Union[str, IResolvable] = None,
kafka_configs: typing.Union[str, IResolvable] = None,
liveness: typing.Union[str, IResolvable] = None,
micro_registration: typing.Union[str, IResolvable] = None,
micro_registration_config: typing.Union[str, IResolvable] = None,
mount_desc: typing.Union[str, IResolvable] = None,
mount_host: typing.Union[str, IResolvable] = None,
nas_configs: typing.Union[str, IResolvable] = None,
nas_id: typing.Union[str, IResolvable] = None,
oss_ak_id: typing.Union[str, IResolvable] = None,
oss_ak_secret: typing.Union[str, IResolvable] = None,
oss_mount_descs: typing.Union[typing.List[typing.Any], IResolvable] = None,
package_url: typing.Union[str, IResolvable] = None,
package_version: typing.Union[str, IResolvable] = None,
php: typing.Union[str, IResolvable] = None,
php_arms_config_location: typing.Union[str, IResolvable] = None,
php_config: typing.Union[str, IResolvable] = None,
php_config_location: typing.Union[str, IResolvable] = None,
post_start: typing.Union[str, IResolvable] = None,
pre_stop: typing.Union[str, IResolvable] = None,
programming_language: typing.Union[str, IResolvable] = None,
pvtz_discovery_svc: typing.Union[str, IResolvable] = None,
python: typing.Union[str, IResolvable] = None,
python_modules: typing.Union[str, IResolvable] = None,
readiness: typing.Union[str, IResolvable] = None,
sae_version: typing.Union[str, IResolvable] = None,
security_group_id: typing.Union[str, IResolvable] = None,
service_tags: typing.Union[str, IResolvable] = None,
sls_configs: typing.Union[str, IResolvable] = None,
tags: typing.List[TagsProperty] = None,
termination_grace_period_seconds: typing.Union[typing.Union[int, float], IResolvable] = None,
timezone: typing.Union[str, IResolvable] = None,
tomcat_config: typing.Union[str, IResolvable] = None,
vpc_id: typing.Union[str, IResolvable] = None,
v_switch_id: typing.Union[str, IResolvable] = None,
war_start_options: typing.Union[str, IResolvable] = None,
web_container: typing.Union[str, IResolvable] = None,
enable_resource_property_constraint: bool = None
)
Name | Type | Description |
---|---|---|
scope |
ros_cdk_core.Construct |
No description. |
id |
str |
No description. |
app_name |
typing.Union[str, ros_cdk_core.IResolvable] |
Property appName: Application Name. |
cpu |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property cpu: Each instance of the CPU required, in units of milli core, can not be zero. |
memory |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property memory: Each instance of the required memory, in units of MB, can not be zero. |
namespace_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property namespaceId: EDAS namespace corresponding to ID. |
package_type |
typing.Union[str, ros_cdk_core.IResolvable] |
Property packageType: Application package type. |
replicas |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property replicas: The initial number of instances. |
acr_assume_role_arn |
typing.Union[str, ros_cdk_core.IResolvable] |
Property acrAssumeRoleArn: The ARN of the RAM role required when pulling the image across accounts. |
acr_instance_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property acrInstanceId: Container Image service ACR Enterprise Edition instance ID. |
app_description |
typing.Union[str, ros_cdk_core.IResolvable] |
Property appDescription: Application description. |
app_source |
typing.Union[str, ros_cdk_core.IResolvable] |
Property appSource: Application source. |
associate_eip |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property associateEip: Whether to bind EIP. |
auto_config |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property autoConfig: Whether to automatically configure the network environment. |
base_app_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property baseAppId: Base application ID. |
command |
typing.Union[str, ros_cdk_core.IResolvable] |
Property command: Mirroring the start command. |
command_args |
typing.Union[str, ros_cdk_core.IResolvable] |
Property commandArgs: Mirroring the start command parameters. |
config_map_mount_desc |
typing.Union[str, ros_cdk_core.IResolvable] |
Property configMapMountDesc: ConfigMap mount description. |
custom_host_alias |
typing.Union[str, ros_cdk_core.IResolvable] |
Property customHostAlias: Custom mapping host vessel. |
deploy |
typing.Union[bool, ros_cdk_core.IResolvable] |
Property deploy: Whether deployed immediately take effect, the default is false. |
edas_container_version |
typing.Union[str, ros_cdk_core.IResolvable] |
Property edasContainerVersion: EDAS pandora runtime environment used by the application. |
enable_ebpf |
typing.Union[str, ros_cdk_core.IResolvable] |
Property enableEbpf: Whether to enable EBPF. |
envs |
typing.Union[str, ros_cdk_core.IResolvable] |
Property envs: Container environment variable parameters. |
image_pull_secrets |
typing.Union[str, ros_cdk_core.IResolvable] |
Property imagePullSecrets: Corresponding to the secret dictionary ID. |
image_url |
typing.Union[str, ros_cdk_core.IResolvable] |
Property imageUrl: Mirroring address. |
jar_start_args |
typing.Union[str, ros_cdk_core.IResolvable] |
Property jarStartArgs: Jar package startup application parameters. |
jar_start_options |
typing.Union[str, ros_cdk_core.IResolvable] |
Property jarStartOptions: Jar start the application package option. |
jdk |
typing.Union[str, ros_cdk_core.IResolvable] |
Property jdk: Deployment of JDK version of the package depends on. |
kafka_configs |
typing.Union[str, ros_cdk_core.IResolvable] |
Property kafkaConfigs: Logs are ingested to Kafka configuration summary information. |
liveness |
typing.Union[str, ros_cdk_core.IResolvable] |
Property liveness: Container health check, health check fails container will be killed and recovery. |
micro_registration |
typing.Union[str, ros_cdk_core.IResolvable] |
Property microRegistration: Select the Nacos registry with the following values: - 0: SAE built-in Nacos. |
micro_registration_config |
typing.Union[str, ros_cdk_core.IResolvable] |
Property microRegistrationConfig: Registry configuration information. |
mount_desc |
typing.Union[str, ros_cdk_core.IResolvable] |
Property mountDesc: Mount Description. |
mount_host |
typing.Union[str, ros_cdk_core.IResolvable] |
Property mountHost: nas mount point in the application of vpc. |
nas_configs |
typing.Union[str, ros_cdk_core.IResolvable] |
Property nasConfigs: Configuration to mount the NAS. |
nas_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property nasId: Mount the NAS ID, you must be in the same region and cluster. |
oss_ak_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property ossAkId: AccessKey ID of the OSS. |
oss_ak_secret |
typing.Union[str, ros_cdk_core.IResolvable] |
Property ossAkSecret: AccessKey Secret of the OSS. |
oss_mount_descs |
typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable] |
Property ossMountDescs: OSS mount description information. |
package_url |
typing.Union[str, ros_cdk_core.IResolvable] |
Property packageUrl: Deployment packages address. |
package_version |
typing.Union[str, ros_cdk_core.IResolvable] |
Property packageVersion: The version number of the deployed package, War FatJar type required. |
php |
typing.Union[str, ros_cdk_core.IResolvable] |
Property php: PHP version. |
php_arms_config_location |
typing.Union[str, 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. |
php_config |
typing.Union[str, ros_cdk_core.IResolvable] |
Property phpConfig: PHP configuration file contents. |
php_config_location |
typing.Union[str, 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. |
post_start |
typing.Union[str, ros_cdk_core.IResolvable] |
Property postStart: Executing the script, such as after starting the format: { "exec": { "command": "cat", "\/ etc \/ group"}}. |
pre_stop |
typing.Union[str, ros_cdk_core.IResolvable] |
Property preStop: Script is executed before stopping the format as: { "exec": { "command": "cat", "\/ etc \/ group"}}. |
programming_language |
typing.Union[str, ros_cdk_core.IResolvable] |
Property programmingLanguage: Create the stack language for the application. |
pvtz_discovery_svc |
typing.Union[str, ros_cdk_core.IResolvable] |
Property pvtzDiscoverySvc: Enable K8s Service registration discovery. |
python |
typing.Union[str, ros_cdk_core.IResolvable] |
Property python: Python version. |
python_modules |
typing.Union[str, ros_cdk_core.IResolvable] |
Property pythonModules: Install custom module dependencies. |
readiness |
typing.Union[str, ros_cdk_core.IResolvable] |
Property readiness: Application launch status check, health check fails repeatedly container will be killed and restarted. |
sae_version |
typing.Union[str, ros_cdk_core.IResolvable] |
Property saeVersion: SAE version. |
security_group_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property securityGroupId: Security group ID. |
service_tags |
typing.Union[str, ros_cdk_core.IResolvable] |
Property serviceTags: Service tags. |
sls_configs |
typing.Union[str, ros_cdk_core.IResolvable] |
Property slsConfigs: Log collection configuration file. |
tags |
typing.List[TagsProperty] |
Property tags: Tags to attach to application. |
termination_grace_period_seconds |
typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] |
Property terminationGracePeriodSeconds: Graceful offline timeout, default 30, unit of seconds. |
timezone |
typing.Union[str, ros_cdk_core.IResolvable] |
Property timezone: Application time zone. |
tomcat_config |
typing.Union[str, 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. |
vpc_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property vpcId: EDAS namespace corresponding VPC. |
v_switch_id |
typing.Union[str, ros_cdk_core.IResolvable] |
Property vSwitchId: Application examples where the elastic card virtual switch. |
war_start_options |
typing.Union[str, ros_cdk_core.IResolvable] |
Property warStartOptions: War Start the application package option. |
web_container |
typing.Union[str, ros_cdk_core.IResolvable] |
Property webContainer: Tomcat deployment of the package depends on the version. |
enable_resource_property_constraint |
bool |
No description. |
scope
Required
- Type: ros_cdk_core.Construct
id
Required
- Type: str
app_name
Required
- Type: typing.Union[str, 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: typing.Union[typing.Union[int, float], 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: typing.Union[typing.Union[int, float], 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.
namespace_id
Required
- Type: typing.Union[str, 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.
package_type
Required
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property packageType: Application package type.
Support FatJar, War, Image.
replicas
Required
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property replicas: The initial number of instances.
acr_assume_role_arn
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property acrAssumeRoleArn: The ARN of the RAM role required when pulling the image across accounts.
acr_instance_id
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property acrInstanceId: Container Image service ACR Enterprise Edition instance ID.
Required when ImageUrl serves enterprise edition for container images.
app_description
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property appDescription: Application description.
No more than 1024 characters.
app_source
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property appSource: Application source.
associate_eip
Optional
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property associateEip: Whether to bind EIP.
The values are explained as follows:
- true: Binding.
- false: No binding
auto_config
Optional
- Type: typing.Union[bool, 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.
base_app_id
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property baseAppId: Base application ID.
command
Optional
- Type: typing.Union[str, 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.
command_args
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property commandArgs: Mirroring the start command parameters.
Parameters required for the start-command. For example: [ "1d"]
config_map_mount_desc
Optional
- Type: typing.Union[str, 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.
custom_host_alias
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property customHostAlias: Custom mapping host vessel.
For example: [{ "hostName": "samplehost", "ip": "127.0.0.1"}]
deploy
Optional
- Type: typing.Union[bool, ros_cdk_core.IResolvable]
Property deploy: Whether deployed immediately take effect, the default is false.
edas_container_version
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property edasContainerVersion: EDAS pandora runtime environment used by the application.
enable_ebpf
Optional
- Type: typing.Union[str, 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: typing.Union[str, ros_cdk_core.IResolvable]
Property envs: Container environment variable parameters.
For example: [{ "name": "envtmp", "value": "0"}]
image_pull_secrets
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property imagePullSecrets: Corresponding to the secret dictionary ID.
image_url
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property imageUrl: Mirroring address.
Image only type of application can be configured to mirror address.
jar_start_args
Optional
- Type: typing.Union[str, 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
jar_start_options
Optional
- Type: typing.Union[str, 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: typing.Union[str, ros_cdk_core.IResolvable]
Property jdk: Deployment of JDK version of the package depends on.
Mirroring not supported.
kafka_configs
Optional
- Type: typing.Union[str, 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: typing.Union[str, 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}
micro_registration
Optional
- Type: typing.Union[str, 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.
micro_registration_config
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property microRegistrationConfig: Registry configuration information.
mount_desc
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property mountDesc: Mount Description.
mount_host
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property mountHost: nas mount point in the application of vpc.
nas_configs
Optional
- Type: typing.Union[str, 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
nas_id
Optional
- Type: typing.Union[str, 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.
oss_ak_id
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ossAkId: AccessKey ID of the OSS.
oss_ak_secret
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property ossAkSecret: AccessKey Secret of the OSS.
oss_mount_descs
Optional
- Type: typing.Union[typing.List[typing.Any], 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
package_url
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property packageUrl: Deployment packages address.
Only FatJar War or the type of application can be configured to deploy packet address.
package_version
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property packageVersion: The version number of the deployed package, War FatJar type required.
Please customize it meaning.
php
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property php: PHP version.
php_arms_config_location
Optional
- Type: typing.Union[str, 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.
php_config
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property phpConfig: PHP configuration file contents.
php_config_location
Optional
- Type: typing.Union[str, 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.
post_start
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property postStart: Executing the script, such as after starting the format: { "exec": { "command": "cat", "\/ etc \/ group"}}.
pre_stop
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property preStop: Script is executed before stopping the format as: { "exec": { "command": "cat", "\/ etc \/ group"}}.
programming_language
Optional
- Type: typing.Union[str, 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.
pvtz_discovery_svc
Optional
- Type: typing.Union[str, 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: typing.Union[str, ros_cdk_core.IResolvable]
Property python: Python version.
Supports PYTHON 3.9.15
python_modules
Optional
- Type: typing.Union[str, 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: typing.Union[str, 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}
sae_version
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property saeVersion: SAE version.
security_group_id
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property securityGroupId: Security group ID.
service_tags
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property serviceTags: Service tags.
sls_configs
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property slsConfigs: Log collection configuration file.
tags
Optional
- Type: typing.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.
termination_grace_period_seconds
Optional
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
Property terminationGracePeriodSeconds: Graceful offline timeout, default 30, unit of seconds.
The value ranges from 1 to 300.
timezone
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property timezone: Application time zone.
Default Asia/Shanghai.
tomcat_config
Optional
- Type: typing.Union[str, 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).
vpc_id
Optional
- Type: typing.Union[str, 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.
v_switch_id
Optional
- Type: typing.Union[str, 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.
war_start_options
Optional
- Type: typing.Union[str, 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
web_container
Optional
- Type: typing.Union[str, ros_cdk_core.IResolvable]
Property webContainer: Tomcat deployment of the package depends on the version.
Mirroring not supported.
enable_resource_property_constraint
Optional
- Type: bool
Methods
Name | Description |
---|---|
to_string |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
add_condition |
No description. |
add_count |
No description. |
add_dependency |
No description. |
add_resource_desc |
No description. |
apply_removal_policy |
No description. |
get_att |
No description. |
set_metadata |
No description. |
to_string
def to_string() -> str
Returns a string representation of this construct.
synthesize
def synthesize(
session: ISynthesisSession
) -> None
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: ros_cdk_core.ISynthesisSession
The synthesis session.
add_condition
def add_condition(
condition: RosCondition
) -> None
- Type: ros_cdk_core.RosCondition
add_count
def add_count(
count: typing.Union[typing.Union[int, float], IResolvable]
) -> None
- Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]
add_dependency
def add_dependency(
resource: Resource
) -> None
- Type: ros_cdk_core.Resource
add_resource_desc
def add_resource_desc(
desc: str
) -> None
- Type: str
apply_removal_policy
def apply_removal_policy(
policy: RemovalPolicy
) -> None
- Type: ros_cdk_core.RemovalPolicy
get_att
def get_att(
name: str
) -> IResolvable
- Type: str
set_metadata
def set_metadata(
key: str,
value: typing.Any
) -> None
- Type: str
- Type: typing.Any
Static Functions
Name | Description |
---|---|
is_construct |
Return whether the given object is a Construct. |
is_construct
import ros_cdk_sae
ros_cdk_sae.Application.is_construct(
x: typing.Any
)
Return whether the given object is a Construct.
- Type: typing.Any
Properties
Name | Type | Description |
---|---|---|
node |
ros_cdk_core.ConstructNode |
The construct tree node associated with this construct. |
ref |
str |
No description. |
stack |
ros_cdk_core.Stack |
The stack in which this resource is defined. |
resource |
ros_cdk_core.RosResource |
No description. |
attr_app_id |
ros_cdk_core.IResolvable |
Attribute AppId: Creating successful application ID. |
attr_change_order_id |
ros_cdk_core.IResolvable |
Attribute ChangeOrderId: Return to release a single ID, used to query task execution status. |
node
Required
node: ConstructNode
- Type: ros_cdk_core.ConstructNode
The construct tree node associated with this construct.
ref
Required
ref: str
- Type: str
stack
Required
stack: Stack
- Type: ros_cdk_core.Stack
The stack in which this resource is defined.
resource
Optional
resource: RosResource
- Type: ros_cdk_core.RosResource
attr_app_id
Required
attr_app_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute AppId: Creating successful application ID.
attr_change_order_id
Required
attr_change_order_id: IResolvable
- Type: ros_cdk_core.IResolvable
Attribute ChangeOrderId: Return to release a single ID, used to query task execution status.