Property | Type | Required | Editable | Description | Constraint |
Description | String | No | Yes | The description of the service. | None. |
VpcConfig | Map | No | Yes | The configurations of the virtual private cloud (VPC). The configurations allow functions to access the specified VPC. | For more information, see VpcConfig properties. Example of VpcConfig if you want to delete the VPC configurations when you update a stack:
{
"VpcId": "",
"VSwitchIds": [],
"SecurityGroupId": ""
}
Note To support VPCs, Function Compute requires the permissions to create and manage elastic network interfaces (ENIs). Therefore, we recommend that you grant the ecs:CreateNetworkInterface permission to Function Compute. |
ServiceName | String | Yes | No | The name of the service. | The name must be 1 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter or an underscore (_). |
Role | String | No | Yes | The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to grant the required permissions to Function Compute. | You can use the RAM role in the following scenarios: |
NasConfig | Map | No | Yes | The configurations of File Storage NAS (NAS). The configurations allow functions to access the specified NAS resources. | For more information, see NasConfig properties. Example of NasConfig if you want to delete the NAS configurations when you update a stack:
{
"MountPoints": [],
"UserId": -1,
"GroupId": -1
}
|
LogConfig | Map | No | Yes | The log configurations. The function logs are written to the Logstore that you specify in the configurations. | For more information, see LogConfig properties. |
TracingConfig | Map | No | Yes | The configurations of Managed Service for OpenTelemetry. | After Function Compute is integrated with Managed Service for OpenTelemetry, you can record the duration of a request in Function Compute, view the cold start duration of a function, and record the execution duration of a function. For more information, see TracingConfig properties. |
InternetAccess | Boolean | No | Yes | Specifies whether the functions can access the Internet. | Valid values: |
DeletionForce | Boolean | No | Yes | Specifies whether to forcefully delete the service. | This property takes effect when VpcConfig is specified. Valid values: true: forcefully deletes the service. The service is deleted before all ENIs that Function Compute creates for the service are deleted. Note If the service is created based on the vSwitch or security group that you specify in the ALIYUN::FC::Service resource type, you can set DeletionForce to true when you delete the service. This way, the service is deleted with less waiting time. false (default): does not forcefully delete the service. The service is deleted until all ENIs that Function Compute creates for the service are deleted.
If the service is created based on a vSwitch or security group created in the current stack, you do not need to specify DeletionForce when you delete the service. After you delete the service, make sure that the functions of the service are not invoked within 1 hour to delete the ENIs and the stack as expected. |
Tags | List | No | Yes | The tags. | You can add up to 20 tags. For more information, see Tags properties. |
VpcBindings | List | No | Yes | The IDs of the VPCs that you want to bind to Function Compute. | By default, you can use public endpoints and private endpoints to invoke created functions. If you want to invoke a function over the specified VPCs, you must bind the VPCs to Function Compute. You can specify up to 20 VPCs. |
OssMountConfig | Map | No | Yes | The mount configurations of Object Storage Service (OSS). | For more information, see OssMountConfig property. |