ServiceProps
Properties for defining a Service
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-fc-service
Initializer
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkfc"
&alicloudroscdkfc.ServiceProps {
ServiceName: interface{},
DeletionForce: interface{},
Description: interface{},
InternetAccess: interface{},
LogConfig: interface{},
NasConfig: interface{},
OssMountConfig: interface{},
Role: interface{},
Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkfc.RosService.TagsProperty,
TracingConfig: interface{},
VpcBindings: interface{},
VpcConfig: interface{},
}
Properties
Name | Type | Description |
---|---|---|
ServiceName |
interface{} |
Property serviceName: Service name. |
DeletionForce |
interface{} |
Property deletionForce: Whether force delete the service without waiting for network interfaces to be cleaned up if VpcConfig is specified. |
Description |
interface{} |
Property description: Service description. |
InternetAccess |
interface{} |
Property internetAccess: Set it to true to enable Internet access. |
LogConfig |
interface{} |
Property logConfig: Log configuration. |
NasConfig |
interface{} |
Property nasConfig: NAS configuration. |
OssMountConfig |
interface{} |
Property ossMountConfig: The OSS mount configurations. |
Role |
interface{} |
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 |
*[]TagsProperty |
Property tags: Tags to attach to service. |
TracingConfig |
interface{} |
Property tracingConfig: The Tracing Analysis configuration. |
VpcBindings |
interface{} |
Property vpcBindings: Function Invocation only by Specified VPCs. |
VpcConfig |
interface{} |
Property vpcConfig: VPC configuration. |
ServiceName
Required
ServiceName interface{}
- Type: interface{}
Property serviceName: Service name.
DeletionForce
Optional
DeletionForce interface{}
- Type: interface{}
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
Description interface{}
- Type: interface{}
Property description: Service description.
InternetAccess
Optional
InternetAccess interface{}
- Type: interface{}
Property internetAccess: Set it to true to enable Internet access.
LogConfig
Optional
LogConfig interface{}
- Type: interface{}
Property logConfig: Log configuration.
Function Compute pushes function execution logs to the configured log store.
NasConfig
Optional
NasConfig interface{}
- Type: interface{}
Property nasConfig: NAS configuration.
Function Compute uses a specified NAS configured on the service.
OssMountConfig
Optional
OssMountConfig interface{}
- Type: interface{}
Property ossMountConfig: The OSS mount configurations.
Role
Optional
Role interface{}
- Type: interface{}
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
Tags *[]TagsProperty
- Type: *[]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
TracingConfig interface{}
- Type: interface{}
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
VpcBindings interface{}
- Type: interface{}
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
VpcConfig interface{}
- Type: interface{}
Property vpcConfig: VPC configuration.
Function Compute uses the config to setup ENI in the specific VPC.