Skip to content

ServiceProps

Properties for defining a Service.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-fc-service

Initializer

using AlibabaCloud.SDK.ROS.CDK.Fc;
new ServiceProps {
    object ServiceName,
    object DeletionForce = null,
    object Description = null,
    object InternetAccess = null,
    object LogConfig = null,
    object NasConfig = null,
    object OssMountConfig = null,
    object Role = null,
    TagsProperty[] Tags = null,
    object TracingConfig = null,
    object VpcBindings = null,
    object VpcConfig = null
};

Properties

Name Type Description
ServiceName object Property serviceName: Service name.
DeletionForce object Property deletionForce: Whether force delete the service without waiting for network interfaces to be cleaned up if VpcConfig is specified.
Description object Property description: Service description.
InternetAccess object Property internetAccess: Set it to true to enable Internet access.
LogConfig object Property logConfig: Log configuration.
NasConfig object Property nasConfig: NAS configuration.
OssMountConfig object Property ossMountConfig: The OSS mount configurations.
Role object 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 object Property tracingConfig: The Tracing Analysis configuration.
VpcBindings object Property vpcBindings: Function Invocation only by Specified VPCs.
VpcConfig object Property vpcConfig: VPC configuration.

ServiceNameRequired

public object ServiceName { get; set; }
  • Type: object

Property serviceName: Service name.


DeletionForceOptional

public object DeletionForce { get; set; }
  • Type: object

Property deletionForce: Whether force delete the service without waiting for network interfaces to be cleaned up if VpcConfig is specified.

Default value is false.


DescriptionOptional

public object Description { get; set; }
  • Type: object

Property description: Service description.


InternetAccessOptional

public object InternetAccess { get; set; }
  • Type: object

Property internetAccess: Set it to true to enable Internet access.


LogConfigOptional

public object LogConfig { get; set; }
  • Type: object

Property logConfig: Log configuration.

Function Compute pushes function execution logs to the configured log store.


NasConfigOptional

public object NasConfig { get; set; }
  • Type: object

Property nasConfig: NAS configuration.

Function Compute uses a specified NAS configured on the service.


OssMountConfigOptional

public object OssMountConfig { get; set; }
  • Type: object

Property ossMountConfig: The OSS mount configurations.


RoleOptional

public object Role { get; set; }
  • Type: object

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.


TagsOptional

public TagsProperty[] Tags { get; set; }

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.


TracingConfigOptional

public object TracingConfig { get; set; }
  • Type: object

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.


VpcBindingsOptional

public object VpcBindings { get; set; }
  • Type: object

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.


VpcConfigOptional

public object VpcConfig { get; set; }
  • Type: object

Property vpcConfig: VPC configuration.

Function Compute uses the config to setup ENI in the specific VPC.