ServiceProps
Properties for defining a Service
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-fc-service
Initializer
import com.aliyun.ros.cdk.fc.ServiceProps;
ServiceProps.builder()
.serviceName(java.lang.String)
.serviceName(IResolvable)
// .deletionForce(java.lang.Boolean)
// .deletionForce(IResolvable)
// .description(java.lang.String)
// .description(IResolvable)
// .internetAccess(java.lang.Boolean)
// .internetAccess(IResolvable)
// .logConfig(IResolvable)
// .logConfig(LogConfigProperty)
// .nasConfig(IResolvable)
// .nasConfig(NasConfigProperty)
// .ossMountConfig(IResolvable)
// .ossMountConfig(OssMountConfigProperty)
// .role(java.lang.String)
// .role(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .tracingConfig(IResolvable)
// .tracingConfig(TracingConfigProperty)
// .vpcBindings(IResolvable)
// .vpcBindings(java.util.List<java.lang.String)
// .vpcBindings(IResolvable>)
// .vpcConfig(IResolvable)
// .vpcConfig(VpcConfigProperty)
.build();
Properties
Name | Type | Description |
---|---|---|
serviceName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property serviceName: Service name. |
deletionForce |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property deletionForce: Whether force delete the service without waiting for network interfaces to be cleaned up if VpcConfig is specified. |
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: Service description. |
internetAccess |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property internetAccess: Set it to true to enable Internet access. |
logConfig |
com.aliyun.ros.cdk.core.IResolvable OR LogConfigProperty |
Property logConfig: Log configuration. |
nasConfig |
com.aliyun.ros.cdk.core.IResolvable OR NasConfigProperty |
Property nasConfig: NAS configuration. |
ossMountConfig |
com.aliyun.ros.cdk.core.IResolvable OR OssMountConfigProperty |
Property ossMountConfig: The OSS mount configurations. |
role |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property role: The role grants Function Compute the permission to access user’s cloud resources, such as pushing logs to user’s log store. |
tags |
java.util.List<TagsProperty> |
Property tags: Tags to attach to service. |
tracingConfig |
com.aliyun.ros.cdk.core.IResolvable OR TracingConfigProperty |
Property tracingConfig: The Tracing Analysis configuration. |
vpcBindings |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property vpcBindings: Function Invocation only by Specified VPCs. |
vpcConfig |
com.aliyun.ros.cdk.core.IResolvable OR VpcConfigProperty |
Property vpcConfig: VPC configuration. |
serviceName
Required
public java.lang.Object getServiceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property serviceName: Service name.
deletionForce
Optional
public java.lang.Object getDeletionForce();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property deletionForce: Whether force delete the service without waiting for network interfaces to be cleaned up if VpcConfig is specified.
Default value is false.
description
Optional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: Service description.
internetAccess
Optional
public java.lang.Object getInternetAccess();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property internetAccess: Set it to true to enable Internet access.
logConfig
Optional
public java.lang.Object getLogConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR LogConfigProperty
Property logConfig: Log configuration.
Function Compute pushes function execution logs to the configured log store.
nasConfig
Optional
public java.lang.Object getNasConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR NasConfigProperty
Property nasConfig: NAS configuration.
Function Compute uses a specified NAS configured on the service.
ossMountConfig
Optional
public java.lang.Object getOssMountConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR OssMountConfigProperty
Property ossMountConfig: The OSS mount configurations.
role
Optional
public java.lang.Object getRole();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property role: The role grants Function Compute the permission to access user’s cloud resources, such as pushing logs to user’s log store.
The temporary STS token generated from this role can be retrieved from function context and used to access cloud resources.
tags
Optional
public java.util.List<TagsProperty> getTags();
- Type: java.util.List<TagsProperty>
Property tags: Tags to attach to service.
Max support 20 tags to add during create service. Each tag with two properties Key and Value, and Key is required.
tracingConfig
Optional
public java.lang.Object getTracingConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR TracingConfigProperty
Property tracingConfig: The Tracing Analysis configuration.
After Function Compute integrates with Tracing Analysis, you can record the stay time of a request in Function Compute, view the cold start time for a function, and record the execution time of a function.
vpcBindings
Optional
public java.lang.Object getVpcBindings();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property vpcBindings: Function Invocation only by Specified VPCs.
By default, you can invoke the function by using the Internet endpoint and internal endpoint after a function is created. If you want the function to be invoked only by using specified VPCs, but not the Internet endpoint or internal endpoint, you must bind the specified VPCs to the service.
vpcConfig
Optional
public java.lang.Object getVpcConfig();
- Type: com.aliyun.ros.cdk.core.IResolvable OR VpcConfigProperty
Property vpcConfig: VPC configuration.
Function Compute uses the config to setup ENI in the specific VPC.