1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. fc
  5. Service
Alibaba Cloud v3.85.0 published on Tuesday, Sep 9, 2025 by Pulumi

alicloud.fc.Service

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.85.0 published on Tuesday, Sep 9, 2025 by Pulumi

    Provides a Alicloud Function Compute Service resource. The resource is the base of launching Function and Trigger configuration. For information about Service and how to use it, see What is Function Compute.

    NOTE: The resource requires a provider field ‘account_id’. See account_id.

    NOTE: If you happen the error “Argument ‘internetAccess’ is not supported”, you need to log on web console and click button “Apply VPC Function” which is in the upper of Function Service Web Console page.

    NOTE: Currently not all regions support Function Compute Service. For more details supported regions, see Service endpoints

    NOTE: Available since v1.93.0.

    Module Support

    You can use to the existing fc module to create a service and a function quickly and then set several triggers for it.

    Create Service Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Service(name: string, args?: ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def Service(resource_name: str,
                args: Optional[ServiceArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Service(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                description: Optional[str] = None,
                internet_access: Optional[bool] = None,
                log_config: Optional[ServiceLogConfigArgs] = None,
                name: Optional[str] = None,
                name_prefix: Optional[str] = None,
                nas_config: Optional[ServiceNasConfigArgs] = None,
                publish: Optional[bool] = None,
                role: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                tracing_config: Optional[ServiceTracingConfigArgs] = None,
                vpc_config: Optional[ServiceVpcConfigArgs] = None)
    func NewService(ctx *Context, name string, args *ServiceArgs, opts ...ResourceOption) (*Service, error)
    public Service(string name, ServiceArgs? args = null, CustomResourceOptions? opts = null)
    public Service(String name, ServiceArgs args)
    public Service(String name, ServiceArgs args, CustomResourceOptions options)
    
    type: alicloud:fc:Service
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var serviceResource = new AliCloud.FC.Service("serviceResource", new()
    {
        Description = "string",
        InternetAccess = false,
        LogConfig = new AliCloud.FC.Inputs.ServiceLogConfigArgs
        {
            Logstore = "string",
            Project = "string",
            EnableInstanceMetrics = false,
            EnableRequestMetrics = false,
        },
        Name = "string",
        NamePrefix = "string",
        NasConfig = new AliCloud.FC.Inputs.ServiceNasConfigArgs
        {
            GroupId = 0,
            MountPoints = new[]
            {
                new AliCloud.FC.Inputs.ServiceNasConfigMountPointArgs
                {
                    MountDir = "string",
                    ServerAddr = "string",
                },
            },
            UserId = 0,
        },
        Publish = false,
        Role = "string",
        Tags = 
        {
            { "string", "string" },
        },
        TracingConfig = new AliCloud.FC.Inputs.ServiceTracingConfigArgs
        {
            Params = 
            {
                { "string", "string" },
            },
            Type = "string",
        },
        VpcConfig = new AliCloud.FC.Inputs.ServiceVpcConfigArgs
        {
            SecurityGroupId = "string",
            VswitchIds = new[]
            {
                "string",
            },
            VpcId = "string",
        },
    });
    
    example, err := fc.NewService(ctx, "serviceResource", &fc.ServiceArgs{
    	Description:    pulumi.String("string"),
    	InternetAccess: pulumi.Bool(false),
    	LogConfig: &fc.ServiceLogConfigArgs{
    		Logstore:              pulumi.String("string"),
    		Project:               pulumi.String("string"),
    		EnableInstanceMetrics: pulumi.Bool(false),
    		EnableRequestMetrics:  pulumi.Bool(false),
    	},
    	Name:       pulumi.String("string"),
    	NamePrefix: pulumi.String("string"),
    	NasConfig: &fc.ServiceNasConfigArgs{
    		GroupId: pulumi.Int(0),
    		MountPoints: fc.ServiceNasConfigMountPointArray{
    			&fc.ServiceNasConfigMountPointArgs{
    				MountDir:   pulumi.String("string"),
    				ServerAddr: pulumi.String("string"),
    			},
    		},
    		UserId: pulumi.Int(0),
    	},
    	Publish: pulumi.Bool(false),
    	Role:    pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	TracingConfig: &fc.ServiceTracingConfigArgs{
    		Params: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		Type: pulumi.String("string"),
    	},
    	VpcConfig: &fc.ServiceVpcConfigArgs{
    		SecurityGroupId: pulumi.String("string"),
    		VswitchIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		VpcId: pulumi.String("string"),
    	},
    })
    
    var serviceResource = new com.pulumi.alicloud.fc.Service("serviceResource", com.pulumi.alicloud.fc.ServiceArgs.builder()
        .description("string")
        .internetAccess(false)
        .logConfig(ServiceLogConfigArgs.builder()
            .logstore("string")
            .project("string")
            .enableInstanceMetrics(false)
            .enableRequestMetrics(false)
            .build())
        .name("string")
        .namePrefix("string")
        .nasConfig(ServiceNasConfigArgs.builder()
            .groupId(0)
            .mountPoints(ServiceNasConfigMountPointArgs.builder()
                .mountDir("string")
                .serverAddr("string")
                .build())
            .userId(0)
            .build())
        .publish(false)
        .role("string")
        .tags(Map.of("string", "string"))
        .tracingConfig(ServiceTracingConfigArgs.builder()
            .params(Map.of("string", "string"))
            .type("string")
            .build())
        .vpcConfig(ServiceVpcConfigArgs.builder()
            .securityGroupId("string")
            .vswitchIds("string")
            .vpcId("string")
            .build())
        .build());
    
    service_resource = alicloud.fc.Service("serviceResource",
        description="string",
        internet_access=False,
        log_config={
            "logstore": "string",
            "project": "string",
            "enable_instance_metrics": False,
            "enable_request_metrics": False,
        },
        name="string",
        name_prefix="string",
        nas_config={
            "group_id": 0,
            "mount_points": [{
                "mount_dir": "string",
                "server_addr": "string",
            }],
            "user_id": 0,
        },
        publish=False,
        role="string",
        tags={
            "string": "string",
        },
        tracing_config={
            "params": {
                "string": "string",
            },
            "type": "string",
        },
        vpc_config={
            "security_group_id": "string",
            "vswitch_ids": ["string"],
            "vpc_id": "string",
        })
    
    const serviceResource = new alicloud.fc.Service("serviceResource", {
        description: "string",
        internetAccess: false,
        logConfig: {
            logstore: "string",
            project: "string",
            enableInstanceMetrics: false,
            enableRequestMetrics: false,
        },
        name: "string",
        namePrefix: "string",
        nasConfig: {
            groupId: 0,
            mountPoints: [{
                mountDir: "string",
                serverAddr: "string",
            }],
            userId: 0,
        },
        publish: false,
        role: "string",
        tags: {
            string: "string",
        },
        tracingConfig: {
            params: {
                string: "string",
            },
            type: "string",
        },
        vpcConfig: {
            securityGroupId: "string",
            vswitchIds: ["string"],
            vpcId: "string",
        },
    });
    
    type: alicloud:fc:Service
    properties:
        description: string
        internetAccess: false
        logConfig:
            enableInstanceMetrics: false
            enableRequestMetrics: false
            logstore: string
            project: string
        name: string
        namePrefix: string
        nasConfig:
            groupId: 0
            mountPoints:
                - mountDir: string
                  serverAddr: string
            userId: 0
        publish: false
        role: string
        tags:
            string: string
        tracingConfig:
            params:
                string: string
            type: string
        vpcConfig:
            securityGroupId: string
            vpcId: string
            vswitchIds:
                - string
    

    Service Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Service resource accepts the following input properties:

    Description string
    The Function Compute Service description.
    InternetAccess bool
    Whether to allow the Service to access Internet. Default to "true".
    LogConfig Pulumi.AliCloud.FC.Inputs.ServiceLogConfig
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    Name string
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    NamePrefix string
    Setting a prefix to get a only name. It is conflict with name.
    NasConfig Pulumi.AliCloud.FC.Inputs.ServiceNasConfig
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    Publish bool
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    Role string
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    Tags Dictionary<string, string>
    Map for tagging resources.
    TracingConfig Pulumi.AliCloud.FC.Inputs.ServiceTracingConfig
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    VpcConfig Pulumi.AliCloud.FC.Inputs.ServiceVpcConfig
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.
    Description string
    The Function Compute Service description.
    InternetAccess bool
    Whether to allow the Service to access Internet. Default to "true".
    LogConfig ServiceLogConfigArgs
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    Name string
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    NamePrefix string
    Setting a prefix to get a only name. It is conflict with name.
    NasConfig ServiceNasConfigArgs
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    Publish bool
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    Role string
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    Tags map[string]string
    Map for tagging resources.
    TracingConfig ServiceTracingConfigArgs
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    VpcConfig ServiceVpcConfigArgs
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.
    description String
    The Function Compute Service description.
    internetAccess Boolean
    Whether to allow the Service to access Internet. Default to "true".
    logConfig ServiceLogConfig
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    name String
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    namePrefix String
    Setting a prefix to get a only name. It is conflict with name.
    nasConfig ServiceNasConfig
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    publish Boolean
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    role String
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    tags Map<String,String>
    Map for tagging resources.
    tracingConfig ServiceTracingConfig
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    vpcConfig ServiceVpcConfig
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.
    description string
    The Function Compute Service description.
    internetAccess boolean
    Whether to allow the Service to access Internet. Default to "true".
    logConfig ServiceLogConfig
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    name string
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    namePrefix string
    Setting a prefix to get a only name. It is conflict with name.
    nasConfig ServiceNasConfig
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    publish boolean
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    role string
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    tags {[key: string]: string}
    Map for tagging resources.
    tracingConfig ServiceTracingConfig
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    vpcConfig ServiceVpcConfig
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.
    description str
    The Function Compute Service description.
    internet_access bool
    Whether to allow the Service to access Internet. Default to "true".
    log_config ServiceLogConfigArgs
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    name str
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    name_prefix str
    Setting a prefix to get a only name. It is conflict with name.
    nas_config ServiceNasConfigArgs
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    publish bool
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    role str
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    tags Mapping[str, str]
    Map for tagging resources.
    tracing_config ServiceTracingConfigArgs
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    vpc_config ServiceVpcConfigArgs
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.
    description String
    The Function Compute Service description.
    internetAccess Boolean
    Whether to allow the Service to access Internet. Default to "true".
    logConfig Property Map
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    name String
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    namePrefix String
    Setting a prefix to get a only name. It is conflict with name.
    nasConfig Property Map
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    publish Boolean
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    role String
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    tags Map<String>
    Map for tagging resources.
    tracingConfig Property Map
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    vpcConfig Property Map
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified string
    The date this resource was last modified.
    ServiceId string
    The Function Compute Service ID.
    Version string
    The latest published version of your Function Compute Service.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModified string
    The date this resource was last modified.
    ServiceId string
    The Function Compute Service ID.
    Version string
    The latest published version of your Function Compute Service.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified String
    The date this resource was last modified.
    serviceId String
    The Function Compute Service ID.
    version String
    The latest published version of your Function Compute Service.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModified string
    The date this resource was last modified.
    serviceId string
    The Function Compute Service ID.
    version string
    The latest published version of your Function Compute Service.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified str
    The date this resource was last modified.
    service_id str
    The Function Compute Service ID.
    version str
    The latest published version of your Function Compute Service.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModified String
    The date this resource was last modified.
    serviceId String
    The Function Compute Service ID.
    version String
    The latest published version of your Function Compute Service.

    Look up Existing Service Resource

    Get an existing Service resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServiceState, opts?: CustomResourceOptions): Service
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            internet_access: Optional[bool] = None,
            last_modified: Optional[str] = None,
            log_config: Optional[ServiceLogConfigArgs] = None,
            name: Optional[str] = None,
            name_prefix: Optional[str] = None,
            nas_config: Optional[ServiceNasConfigArgs] = None,
            publish: Optional[bool] = None,
            role: Optional[str] = None,
            service_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tracing_config: Optional[ServiceTracingConfigArgs] = None,
            version: Optional[str] = None,
            vpc_config: Optional[ServiceVpcConfigArgs] = None) -> Service
    func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
    public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
    public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:fc:Service    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    The Function Compute Service description.
    InternetAccess bool
    Whether to allow the Service to access Internet. Default to "true".
    LastModified string
    The date this resource was last modified.
    LogConfig Pulumi.AliCloud.FC.Inputs.ServiceLogConfig
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    Name string
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    NamePrefix string
    Setting a prefix to get a only name. It is conflict with name.
    NasConfig Pulumi.AliCloud.FC.Inputs.ServiceNasConfig
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    Publish bool
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    Role string
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    ServiceId string
    The Function Compute Service ID.
    Tags Dictionary<string, string>
    Map for tagging resources.
    TracingConfig Pulumi.AliCloud.FC.Inputs.ServiceTracingConfig
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    Version string
    The latest published version of your Function Compute Service.
    VpcConfig Pulumi.AliCloud.FC.Inputs.ServiceVpcConfig
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.
    Description string
    The Function Compute Service description.
    InternetAccess bool
    Whether to allow the Service to access Internet. Default to "true".
    LastModified string
    The date this resource was last modified.
    LogConfig ServiceLogConfigArgs
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    Name string
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    NamePrefix string
    Setting a prefix to get a only name. It is conflict with name.
    NasConfig ServiceNasConfigArgs
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    Publish bool
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    Role string
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    ServiceId string
    The Function Compute Service ID.
    Tags map[string]string
    Map for tagging resources.
    TracingConfig ServiceTracingConfigArgs
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    Version string
    The latest published version of your Function Compute Service.
    VpcConfig ServiceVpcConfigArgs
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.
    description String
    The Function Compute Service description.
    internetAccess Boolean
    Whether to allow the Service to access Internet. Default to "true".
    lastModified String
    The date this resource was last modified.
    logConfig ServiceLogConfig
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    name String
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    namePrefix String
    Setting a prefix to get a only name. It is conflict with name.
    nasConfig ServiceNasConfig
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    publish Boolean
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    role String
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    serviceId String
    The Function Compute Service ID.
    tags Map<String,String>
    Map for tagging resources.
    tracingConfig ServiceTracingConfig
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    version String
    The latest published version of your Function Compute Service.
    vpcConfig ServiceVpcConfig
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.
    description string
    The Function Compute Service description.
    internetAccess boolean
    Whether to allow the Service to access Internet. Default to "true".
    lastModified string
    The date this resource was last modified.
    logConfig ServiceLogConfig
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    name string
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    namePrefix string
    Setting a prefix to get a only name. It is conflict with name.
    nasConfig ServiceNasConfig
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    publish boolean
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    role string
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    serviceId string
    The Function Compute Service ID.
    tags {[key: string]: string}
    Map for tagging resources.
    tracingConfig ServiceTracingConfig
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    version string
    The latest published version of your Function Compute Service.
    vpcConfig ServiceVpcConfig
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.
    description str
    The Function Compute Service description.
    internet_access bool
    Whether to allow the Service to access Internet. Default to "true".
    last_modified str
    The date this resource was last modified.
    log_config ServiceLogConfigArgs
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    name str
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    name_prefix str
    Setting a prefix to get a only name. It is conflict with name.
    nas_config ServiceNasConfigArgs
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    publish bool
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    role str
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    service_id str
    The Function Compute Service ID.
    tags Mapping[str, str]
    Map for tagging resources.
    tracing_config ServiceTracingConfigArgs
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    version str
    The latest published version of your Function Compute Service.
    vpc_config ServiceVpcConfigArgs
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.
    description String
    The Function Compute Service description.
    internetAccess Boolean
    Whether to allow the Service to access Internet. Default to "true".
    lastModified String
    The date this resource was last modified.
    logConfig Property Map
    Provide this to store your Function Compute Service logs. Fields documented below. See Create a Service. log_config requires the following: (NOTE: If both project and logstore are empty, log_config is considered to be empty or unset.). See log_config below.
    name String
    The Function Compute Service name. It is the only in one Alicloud account and is conflict with name_prefix.
    namePrefix String
    Setting a prefix to get a only name. It is conflict with name.
    nasConfig Property Map
    Provide NAS configuration to allow Function Compute Service to access your NAS resources. See nas_config below.
    publish Boolean
    Whether to publish creation/change as new Function Compute Service Version. Defaults to false.
    role String
    RAM role arn attached to the Function Compute Service. This governs both who / what can invoke your Function, as well as what resources our Function has access to. See User Permissions for more details.
    serviceId String
    The Function Compute Service ID.
    tags Map<String>
    Map for tagging resources.
    tracingConfig Property Map
    Provide this to allow your Function Compute to report tracing information. Fields documented below. See Function Compute Tracing Config. tracing_config requires the following: (NOTE: If both type and params are empty, tracing_config is considered to be empty or unset.). See tracing_config below.
    version String
    The latest published version of your Function Compute Service.
    vpcConfig Property Map
    Provide this to allow your Function Compute Service to access your VPC. Fields documented below. See Function Compute Service in VPC. vpc_config requires the following: (NOTE: If both vswitch_ids and security_group_id are empty, vpc_config is considered to be empty or unset.). See vpc_config below.

    Supporting Types

    ServiceLogConfig, ServiceLogConfigArgs

    Logstore string
    The log store name of Alicloud Simple Log Service.
    Project string
    The project name of the Alicloud Simple Log Service.
    EnableInstanceMetrics bool
    Enable instance level metrics.
    EnableRequestMetrics bool
    Enable request level metrics.
    Logstore string
    The log store name of Alicloud Simple Log Service.
    Project string
    The project name of the Alicloud Simple Log Service.
    EnableInstanceMetrics bool
    Enable instance level metrics.
    EnableRequestMetrics bool
    Enable request level metrics.
    logstore String
    The log store name of Alicloud Simple Log Service.
    project String
    The project name of the Alicloud Simple Log Service.
    enableInstanceMetrics Boolean
    Enable instance level metrics.
    enableRequestMetrics Boolean
    Enable request level metrics.
    logstore string
    The log store name of Alicloud Simple Log Service.
    project string
    The project name of the Alicloud Simple Log Service.
    enableInstanceMetrics boolean
    Enable instance level metrics.
    enableRequestMetrics boolean
    Enable request level metrics.
    logstore str
    The log store name of Alicloud Simple Log Service.
    project str
    The project name of the Alicloud Simple Log Service.
    enable_instance_metrics bool
    Enable instance level metrics.
    enable_request_metrics bool
    Enable request level metrics.
    logstore String
    The log store name of Alicloud Simple Log Service.
    project String
    The project name of the Alicloud Simple Log Service.
    enableInstanceMetrics Boolean
    Enable instance level metrics.
    enableRequestMetrics Boolean
    Enable request level metrics.

    ServiceNasConfig, ServiceNasConfigArgs

    GroupId int
    The group id of your NAS file system.
    MountPoints List<Pulumi.AliCloud.FC.Inputs.ServiceNasConfigMountPoint>
    Config the NAS mount points.See mount_points below.
    UserId int
    The user id of your NAS file system.
    GroupId int
    The group id of your NAS file system.
    MountPoints []ServiceNasConfigMountPoint
    Config the NAS mount points.See mount_points below.
    UserId int
    The user id of your NAS file system.
    groupId Integer
    The group id of your NAS file system.
    mountPoints List<ServiceNasConfigMountPoint>
    Config the NAS mount points.See mount_points below.
    userId Integer
    The user id of your NAS file system.
    groupId number
    The group id of your NAS file system.
    mountPoints ServiceNasConfigMountPoint[]
    Config the NAS mount points.See mount_points below.
    userId number
    The user id of your NAS file system.
    group_id int
    The group id of your NAS file system.
    mount_points Sequence[ServiceNasConfigMountPoint]
    Config the NAS mount points.See mount_points below.
    user_id int
    The user id of your NAS file system.
    groupId Number
    The group id of your NAS file system.
    mountPoints List<Property Map>
    Config the NAS mount points.See mount_points below.
    userId Number
    The user id of your NAS file system.

    ServiceNasConfigMountPoint, ServiceNasConfigMountPointArgs

    MountDir string
    The local address where to mount your remote NAS directory.
    ServerAddr string
    The address of the remote NAS directory.
    MountDir string
    The local address where to mount your remote NAS directory.
    ServerAddr string
    The address of the remote NAS directory.
    mountDir String
    The local address where to mount your remote NAS directory.
    serverAddr String
    The address of the remote NAS directory.
    mountDir string
    The local address where to mount your remote NAS directory.
    serverAddr string
    The address of the remote NAS directory.
    mount_dir str
    The local address where to mount your remote NAS directory.
    server_addr str
    The address of the remote NAS directory.
    mountDir String
    The local address where to mount your remote NAS directory.
    serverAddr String
    The address of the remote NAS directory.

    ServiceTracingConfig, ServiceTracingConfigArgs

    Params Dictionary<string, string>
    Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
    Type string
    Tracing protocol type. Currently, only Jaeger is supported.
    Params map[string]string
    Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
    Type string
    Tracing protocol type. Currently, only Jaeger is supported.
    params Map<String,String>
    Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
    type String
    Tracing protocol type. Currently, only Jaeger is supported.
    params {[key: string]: string}
    Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
    type string
    Tracing protocol type. Currently, only Jaeger is supported.
    params Mapping[str, str]
    Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
    type str
    Tracing protocol type. Currently, only Jaeger is supported.
    params Map<String>
    Tracing parameters, which type is map[string]string. When the protocol type is Jaeger, the key is "endpoint" and the value is your tracing intranet endpoint. For example endpoint: http://tracing-analysis-dc-hz.aliyuncs.com/adapt_xxx/api/traces.
    type String
    Tracing protocol type. Currently, only Jaeger is supported.

    ServiceVpcConfig, ServiceVpcConfigArgs

    SecurityGroupId string
    A security group ID associated with the Function Compute Service.
    VswitchIds List<string>
    A list of vswitch IDs associated with the Function Compute Service.
    VpcId string
    A vpc ID associated with the Function Compute Service.
    SecurityGroupId string
    A security group ID associated with the Function Compute Service.
    VswitchIds []string
    A list of vswitch IDs associated with the Function Compute Service.
    VpcId string
    A vpc ID associated with the Function Compute Service.
    securityGroupId String
    A security group ID associated with the Function Compute Service.
    vswitchIds List<String>
    A list of vswitch IDs associated with the Function Compute Service.
    vpcId String
    A vpc ID associated with the Function Compute Service.
    securityGroupId string
    A security group ID associated with the Function Compute Service.
    vswitchIds string[]
    A list of vswitch IDs associated with the Function Compute Service.
    vpcId string
    A vpc ID associated with the Function Compute Service.
    security_group_id str
    A security group ID associated with the Function Compute Service.
    vswitch_ids Sequence[str]
    A list of vswitch IDs associated with the Function Compute Service.
    vpc_id str
    A vpc ID associated with the Function Compute Service.
    securityGroupId String
    A security group ID associated with the Function Compute Service.
    vswitchIds List<String>
    A list of vswitch IDs associated with the Function Compute Service.
    vpcId String
    A vpc ID associated with the Function Compute Service.

    Import

    Function Compute Service can be imported using the id or name, e.g.

    $ pulumi import alicloud:fc/service:Service foo my-fc-service
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.85.0 published on Tuesday, Sep 9, 2025 by Pulumi