1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ScfProvisionedConcurrencyConfig
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.ScfProvisionedConcurrencyConfig

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a scf provisioned_concurrency_config

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const provisionedConcurrencyConfig = new tencentcloud.ScfProvisionedConcurrencyConfig("provisionedConcurrencyConfig", {
        functionName: "keep-1676351130",
        maxCapacity: 2,
        minCapacity: 1,
        namespace: "default",
        provisionedType: "Default",
        qualifier: "2",
        trackingTarget: 0.5,
        triggerActions: [{
            provisionedType: "Default",
            triggerCronConfig: "29 45 12 29 05 * 2023",
            triggerName: "test",
            triggerProvisionedConcurrencyNum: 2,
        }],
        versionProvisionedConcurrencyNum: 2,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    provisioned_concurrency_config = tencentcloud.ScfProvisionedConcurrencyConfig("provisionedConcurrencyConfig",
        function_name="keep-1676351130",
        max_capacity=2,
        min_capacity=1,
        namespace="default",
        provisioned_type="Default",
        qualifier="2",
        tracking_target=0.5,
        trigger_actions=[{
            "provisioned_type": "Default",
            "trigger_cron_config": "29 45 12 29 05 * 2023",
            "trigger_name": "test",
            "trigger_provisioned_concurrency_num": 2,
        }],
        version_provisioned_concurrency_num=2)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewScfProvisionedConcurrencyConfig(ctx, "provisionedConcurrencyConfig", &tencentcloud.ScfProvisionedConcurrencyConfigArgs{
    			FunctionName:    pulumi.String("keep-1676351130"),
    			MaxCapacity:     pulumi.Float64(2),
    			MinCapacity:     pulumi.Float64(1),
    			Namespace:       pulumi.String("default"),
    			ProvisionedType: pulumi.String("Default"),
    			Qualifier:       pulumi.String("2"),
    			TrackingTarget:  pulumi.Float64(0.5),
    			TriggerActions: tencentcloud.ScfProvisionedConcurrencyConfigTriggerActionArray{
    				&tencentcloud.ScfProvisionedConcurrencyConfigTriggerActionArgs{
    					ProvisionedType:                  pulumi.String("Default"),
    					TriggerCronConfig:                pulumi.String("29 45 12 29 05 * 2023"),
    					TriggerName:                      pulumi.String("test"),
    					TriggerProvisionedConcurrencyNum: pulumi.Float64(2),
    				},
    			},
    			VersionProvisionedConcurrencyNum: pulumi.Float64(2),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var provisionedConcurrencyConfig = new Tencentcloud.ScfProvisionedConcurrencyConfig("provisionedConcurrencyConfig", new()
        {
            FunctionName = "keep-1676351130",
            MaxCapacity = 2,
            MinCapacity = 1,
            Namespace = "default",
            ProvisionedType = "Default",
            Qualifier = "2",
            TrackingTarget = 0.5,
            TriggerActions = new[]
            {
                new Tencentcloud.Inputs.ScfProvisionedConcurrencyConfigTriggerActionArgs
                {
                    ProvisionedType = "Default",
                    TriggerCronConfig = "29 45 12 29 05 * 2023",
                    TriggerName = "test",
                    TriggerProvisionedConcurrencyNum = 2,
                },
            },
            VersionProvisionedConcurrencyNum = 2,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ScfProvisionedConcurrencyConfig;
    import com.pulumi.tencentcloud.ScfProvisionedConcurrencyConfigArgs;
    import com.pulumi.tencentcloud.inputs.ScfProvisionedConcurrencyConfigTriggerActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var provisionedConcurrencyConfig = new ScfProvisionedConcurrencyConfig("provisionedConcurrencyConfig", ScfProvisionedConcurrencyConfigArgs.builder()
                .functionName("keep-1676351130")
                .maxCapacity(2)
                .minCapacity(1)
                .namespace("default")
                .provisionedType("Default")
                .qualifier("2")
                .trackingTarget(0.5)
                .triggerActions(ScfProvisionedConcurrencyConfigTriggerActionArgs.builder()
                    .provisionedType("Default")
                    .triggerCronConfig("29 45 12 29 05 * 2023")
                    .triggerName("test")
                    .triggerProvisionedConcurrencyNum(2)
                    .build())
                .versionProvisionedConcurrencyNum(2)
                .build());
    
        }
    }
    
    resources:
      provisionedConcurrencyConfig:
        type: tencentcloud:ScfProvisionedConcurrencyConfig
        properties:
          functionName: keep-1676351130
          maxCapacity: 2
          minCapacity: 1
          namespace: default
          provisionedType: Default
          qualifier: '2'
          trackingTarget: 0.5
          triggerActions:
            - provisionedType: Default
              triggerCronConfig: 29 45 12 29 05 * 2023
              triggerName: test
              triggerProvisionedConcurrencyNum: 2
          versionProvisionedConcurrencyNum: 2
    

    Create ScfProvisionedConcurrencyConfig Resource

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

    Constructor syntax

    new ScfProvisionedConcurrencyConfig(name: string, args: ScfProvisionedConcurrencyConfigArgs, opts?: CustomResourceOptions);
    @overload
    def ScfProvisionedConcurrencyConfig(resource_name: str,
                                        args: ScfProvisionedConcurrencyConfigArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ScfProvisionedConcurrencyConfig(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        function_name: Optional[str] = None,
                                        qualifier: Optional[str] = None,
                                        version_provisioned_concurrency_num: Optional[float] = None,
                                        max_capacity: Optional[float] = None,
                                        min_capacity: Optional[float] = None,
                                        namespace: Optional[str] = None,
                                        provisioned_type: Optional[str] = None,
                                        scf_provisioned_concurrency_config_id: Optional[str] = None,
                                        tracking_target: Optional[float] = None,
                                        trigger_actions: Optional[Sequence[ScfProvisionedConcurrencyConfigTriggerActionArgs]] = None)
    func NewScfProvisionedConcurrencyConfig(ctx *Context, name string, args ScfProvisionedConcurrencyConfigArgs, opts ...ResourceOption) (*ScfProvisionedConcurrencyConfig, error)
    public ScfProvisionedConcurrencyConfig(string name, ScfProvisionedConcurrencyConfigArgs args, CustomResourceOptions? opts = null)
    public ScfProvisionedConcurrencyConfig(String name, ScfProvisionedConcurrencyConfigArgs args)
    public ScfProvisionedConcurrencyConfig(String name, ScfProvisionedConcurrencyConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ScfProvisionedConcurrencyConfig
    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 ScfProvisionedConcurrencyConfigArgs
    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 ScfProvisionedConcurrencyConfigArgs
    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 ScfProvisionedConcurrencyConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ScfProvisionedConcurrencyConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ScfProvisionedConcurrencyConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ScfProvisionedConcurrencyConfig 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 ScfProvisionedConcurrencyConfig resource accepts the following input properties:

    FunctionName string
    Name of the function for which to set the provisioned concurrency.
    Qualifier string
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    VersionProvisionedConcurrencyNum double
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function's maximum concurrency quota minus 100.
    MaxCapacity double
    The maximum number of instances.
    MinCapacity double
    The minimum number of instances. It can not be smaller than 1.
    Namespace string
    Function namespace. Default value: default.
    ProvisionedType string
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    ScfProvisionedConcurrencyConfigId string
    ID of the resource.
    TrackingTarget double
    The target concurrency utilization. Range: (0,1) (two decimal places).
    TriggerActions List<ScfProvisionedConcurrencyConfigTriggerAction>
    Scheduled provisioned concurrency scaling action.
    FunctionName string
    Name of the function for which to set the provisioned concurrency.
    Qualifier string
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    VersionProvisionedConcurrencyNum float64
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.
    MaxCapacity float64
    The maximum number of instances.
    MinCapacity float64
    The minimum number of instances. It can not be smaller than 1.
    Namespace string
    Function namespace. Default value: default.
    ProvisionedType string
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    ScfProvisionedConcurrencyConfigId string
    ID of the resource.
    TrackingTarget float64
    The target concurrency utilization. Range: (0,1) (two decimal places).
    TriggerActions []ScfProvisionedConcurrencyConfigTriggerActionArgs
    Scheduled provisioned concurrency scaling action.
    functionName String
    Name of the function for which to set the provisioned concurrency.
    qualifier String
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    versionProvisionedConcurrencyNum Double
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.
    maxCapacity Double
    The maximum number of instances.
    minCapacity Double
    The minimum number of instances. It can not be smaller than 1.
    namespace String
    Function namespace. Default value: default.
    provisionedType String
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    scfProvisionedConcurrencyConfigId String
    ID of the resource.
    trackingTarget Double
    The target concurrency utilization. Range: (0,1) (two decimal places).
    triggerActions List<ScfProvisionedConcurrencyConfigTriggerAction>
    Scheduled provisioned concurrency scaling action.
    functionName string
    Name of the function for which to set the provisioned concurrency.
    qualifier string
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    versionProvisionedConcurrencyNum number
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.
    maxCapacity number
    The maximum number of instances.
    minCapacity number
    The minimum number of instances. It can not be smaller than 1.
    namespace string
    Function namespace. Default value: default.
    provisionedType string
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    scfProvisionedConcurrencyConfigId string
    ID of the resource.
    trackingTarget number
    The target concurrency utilization. Range: (0,1) (two decimal places).
    triggerActions ScfProvisionedConcurrencyConfigTriggerAction[]
    Scheduled provisioned concurrency scaling action.
    function_name str
    Name of the function for which to set the provisioned concurrency.
    qualifier str
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    version_provisioned_concurrency_num float
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.
    max_capacity float
    The maximum number of instances.
    min_capacity float
    The minimum number of instances. It can not be smaller than 1.
    namespace str
    Function namespace. Default value: default.
    provisioned_type str
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    scf_provisioned_concurrency_config_id str
    ID of the resource.
    tracking_target float
    The target concurrency utilization. Range: (0,1) (two decimal places).
    trigger_actions Sequence[ScfProvisionedConcurrencyConfigTriggerActionArgs]
    Scheduled provisioned concurrency scaling action.
    functionName String
    Name of the function for which to set the provisioned concurrency.
    qualifier String
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    versionProvisionedConcurrencyNum Number
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.
    maxCapacity Number
    The maximum number of instances.
    minCapacity Number
    The minimum number of instances. It can not be smaller than 1.
    namespace String
    Function namespace. Default value: default.
    provisionedType String
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    scfProvisionedConcurrencyConfigId String
    ID of the resource.
    trackingTarget Number
    The target concurrency utilization. Range: (0,1) (two decimal places).
    triggerActions List<Property Map>
    Scheduled provisioned concurrency scaling action.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ScfProvisionedConcurrencyConfig Resource

    Get an existing ScfProvisionedConcurrencyConfig 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?: ScfProvisionedConcurrencyConfigState, opts?: CustomResourceOptions): ScfProvisionedConcurrencyConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            function_name: Optional[str] = None,
            max_capacity: Optional[float] = None,
            min_capacity: Optional[float] = None,
            namespace: Optional[str] = None,
            provisioned_type: Optional[str] = None,
            qualifier: Optional[str] = None,
            scf_provisioned_concurrency_config_id: Optional[str] = None,
            tracking_target: Optional[float] = None,
            trigger_actions: Optional[Sequence[ScfProvisionedConcurrencyConfigTriggerActionArgs]] = None,
            version_provisioned_concurrency_num: Optional[float] = None) -> ScfProvisionedConcurrencyConfig
    func GetScfProvisionedConcurrencyConfig(ctx *Context, name string, id IDInput, state *ScfProvisionedConcurrencyConfigState, opts ...ResourceOption) (*ScfProvisionedConcurrencyConfig, error)
    public static ScfProvisionedConcurrencyConfig Get(string name, Input<string> id, ScfProvisionedConcurrencyConfigState? state, CustomResourceOptions? opts = null)
    public static ScfProvisionedConcurrencyConfig get(String name, Output<String> id, ScfProvisionedConcurrencyConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ScfProvisionedConcurrencyConfig    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:
    FunctionName string
    Name of the function for which to set the provisioned concurrency.
    MaxCapacity double
    The maximum number of instances.
    MinCapacity double
    The minimum number of instances. It can not be smaller than 1.
    Namespace string
    Function namespace. Default value: default.
    ProvisionedType string
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    Qualifier string
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    ScfProvisionedConcurrencyConfigId string
    ID of the resource.
    TrackingTarget double
    The target concurrency utilization. Range: (0,1) (two decimal places).
    TriggerActions List<ScfProvisionedConcurrencyConfigTriggerAction>
    Scheduled provisioned concurrency scaling action.
    VersionProvisionedConcurrencyNum double
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.
    FunctionName string
    Name of the function for which to set the provisioned concurrency.
    MaxCapacity float64
    The maximum number of instances.
    MinCapacity float64
    The minimum number of instances. It can not be smaller than 1.
    Namespace string
    Function namespace. Default value: default.
    ProvisionedType string
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    Qualifier string
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    ScfProvisionedConcurrencyConfigId string
    ID of the resource.
    TrackingTarget float64
    The target concurrency utilization. Range: (0,1) (two decimal places).
    TriggerActions []ScfProvisionedConcurrencyConfigTriggerActionArgs
    Scheduled provisioned concurrency scaling action.
    VersionProvisionedConcurrencyNum float64
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.
    functionName String
    Name of the function for which to set the provisioned concurrency.
    maxCapacity Double
    The maximum number of instances.
    minCapacity Double
    The minimum number of instances. It can not be smaller than 1.
    namespace String
    Function namespace. Default value: default.
    provisionedType String
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    qualifier String
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    scfProvisionedConcurrencyConfigId String
    ID of the resource.
    trackingTarget Double
    The target concurrency utilization. Range: (0,1) (two decimal places).
    triggerActions List<ScfProvisionedConcurrencyConfigTriggerAction>
    Scheduled provisioned concurrency scaling action.
    versionProvisionedConcurrencyNum Double
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.
    functionName string
    Name of the function for which to set the provisioned concurrency.
    maxCapacity number
    The maximum number of instances.
    minCapacity number
    The minimum number of instances. It can not be smaller than 1.
    namespace string
    Function namespace. Default value: default.
    provisionedType string
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    qualifier string
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    scfProvisionedConcurrencyConfigId string
    ID of the resource.
    trackingTarget number
    The target concurrency utilization. Range: (0,1) (two decimal places).
    triggerActions ScfProvisionedConcurrencyConfigTriggerAction[]
    Scheduled provisioned concurrency scaling action.
    versionProvisionedConcurrencyNum number
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.
    function_name str
    Name of the function for which to set the provisioned concurrency.
    max_capacity float
    The maximum number of instances.
    min_capacity float
    The minimum number of instances. It can not be smaller than 1.
    namespace str
    Function namespace. Default value: default.
    provisioned_type str
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    qualifier str
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    scf_provisioned_concurrency_config_id str
    ID of the resource.
    tracking_target float
    The target concurrency utilization. Range: (0,1) (two decimal places).
    trigger_actions Sequence[ScfProvisionedConcurrencyConfigTriggerActionArgs]
    Scheduled provisioned concurrency scaling action.
    version_provisioned_concurrency_num float
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.
    functionName String
    Name of the function for which to set the provisioned concurrency.
    maxCapacity Number
    The maximum number of instances.
    minCapacity Number
    The minimum number of instances. It can not be smaller than 1.
    namespace String
    Function namespace. Default value: default.
    provisionedType String
    Specifies the provisioned concurrency type. Default: Static provisioned concurrency. ConcurrencyUtilizationTracking: Scales the concurrency automatically according to the concurrency utilization. If ConcurrencyUtilizationTracking is passed in, TrackingTarget, MinCapacity and MaxCapacity are required, and VersionProvisionedConcurrencyNum must be 0.
    qualifier String
    Function version number. Note: the $LATEST version does not support provisioned concurrency.
    scfProvisionedConcurrencyConfigId String
    ID of the resource.
    trackingTarget Number
    The target concurrency utilization. Range: (0,1) (two decimal places).
    triggerActions List<Property Map>
    Scheduled provisioned concurrency scaling action.
    versionProvisionedConcurrencyNum Number
    Provisioned concurrency amount. Note: there is an upper limit for the sum of provisioned concurrency amounts of all versions, which currently is the function&#39;s maximum concurrency quota minus 100.

    Supporting Types

    ScfProvisionedConcurrencyConfigTriggerAction, ScfProvisionedConcurrencyConfigTriggerActionArgs

    TriggerCronConfig string
    Trigger time of the scheduled action in Cron expression. Seven fields are required and should be separated with a space. Note: this field may return null, indicating that no valid values can be obtained.
    TriggerName string
    Scheduled action name Note: this field may return null, indicating that no valid values can be obtained.
    TriggerProvisionedConcurrencyNum double
    Target provisioned concurrency of the scheduled scaling action Note: this field may return null, indicating that no valid values can be obtained.
    ProvisionedType string
    The provision type. Value: Default Note: This field may return null, indicating that no valid value can be found.
    TriggerCronConfig string
    Trigger time of the scheduled action in Cron expression. Seven fields are required and should be separated with a space. Note: this field may return null, indicating that no valid values can be obtained.
    TriggerName string
    Scheduled action name Note: this field may return null, indicating that no valid values can be obtained.
    TriggerProvisionedConcurrencyNum float64
    Target provisioned concurrency of the scheduled scaling action Note: this field may return null, indicating that no valid values can be obtained.
    ProvisionedType string
    The provision type. Value: Default Note: This field may return null, indicating that no valid value can be found.
    triggerCronConfig String
    Trigger time of the scheduled action in Cron expression. Seven fields are required and should be separated with a space. Note: this field may return null, indicating that no valid values can be obtained.
    triggerName String
    Scheduled action name Note: this field may return null, indicating that no valid values can be obtained.
    triggerProvisionedConcurrencyNum Double
    Target provisioned concurrency of the scheduled scaling action Note: this field may return null, indicating that no valid values can be obtained.
    provisionedType String
    The provision type. Value: Default Note: This field may return null, indicating that no valid value can be found.
    triggerCronConfig string
    Trigger time of the scheduled action in Cron expression. Seven fields are required and should be separated with a space. Note: this field may return null, indicating that no valid values can be obtained.
    triggerName string
    Scheduled action name Note: this field may return null, indicating that no valid values can be obtained.
    triggerProvisionedConcurrencyNum number
    Target provisioned concurrency of the scheduled scaling action Note: this field may return null, indicating that no valid values can be obtained.
    provisionedType string
    The provision type. Value: Default Note: This field may return null, indicating that no valid value can be found.
    trigger_cron_config str
    Trigger time of the scheduled action in Cron expression. Seven fields are required and should be separated with a space. Note: this field may return null, indicating that no valid values can be obtained.
    trigger_name str
    Scheduled action name Note: this field may return null, indicating that no valid values can be obtained.
    trigger_provisioned_concurrency_num float
    Target provisioned concurrency of the scheduled scaling action Note: this field may return null, indicating that no valid values can be obtained.
    provisioned_type str
    The provision type. Value: Default Note: This field may return null, indicating that no valid value can be found.
    triggerCronConfig String
    Trigger time of the scheduled action in Cron expression. Seven fields are required and should be separated with a space. Note: this field may return null, indicating that no valid values can be obtained.
    triggerName String
    Scheduled action name Note: this field may return null, indicating that no valid values can be obtained.
    triggerProvisionedConcurrencyNum Number
    Target provisioned concurrency of the scheduled scaling action Note: this field may return null, indicating that no valid values can be obtained.
    provisionedType String
    The provision type. Value: Default Note: This field may return null, indicating that no valid value can be found.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack