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

tencentcloud.TemScaleRule

Explore with Pulumi AI

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

    Provides a resource to create a tem scaleRule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const scaleRule = new tencentcloud.TemScaleRule("scaleRule", {
        environmentId: "en-o5edaepv",
        applicationId: "app-3j29aa2p",
        workloadId: resource.tencentcloud_tem_workload.workload.id,
        autoscaler: {
            autoscalerName: "test3123",
            description: "test",
            enabled: true,
            minReplicas: 1,
            maxReplicas: 4,
            cronHorizontalAutoscalers: [
                {
                    name: "test",
                    period: "* * *",
                    priority: 1,
                    enabled: true,
                    schedules: [{
                        startAt: "03:00",
                        targetReplicas: 1,
                    }],
                },
                {
                    name: "test123123",
                    period: "* * *",
                    priority: 0,
                    enabled: true,
                    schedules: [{
                        startAt: "04:13",
                        targetReplicas: 1,
                    }],
                },
            ],
            horizontalAutoscalers: [{
                metrics: "CPU",
                enabled: true,
                maxReplicas: 4,
                minReplicas: 1,
                threshold: 60,
            }],
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    scale_rule = tencentcloud.TemScaleRule("scaleRule",
        environment_id="en-o5edaepv",
        application_id="app-3j29aa2p",
        workload_id=resource["tencentcloud_tem_workload"]["workload"]["id"],
        autoscaler={
            "autoscaler_name": "test3123",
            "description": "test",
            "enabled": True,
            "min_replicas": 1,
            "max_replicas": 4,
            "cron_horizontal_autoscalers": [
                {
                    "name": "test",
                    "period": "* * *",
                    "priority": 1,
                    "enabled": True,
                    "schedules": [{
                        "start_at": "03:00",
                        "target_replicas": 1,
                    }],
                },
                {
                    "name": "test123123",
                    "period": "* * *",
                    "priority": 0,
                    "enabled": True,
                    "schedules": [{
                        "start_at": "04:13",
                        "target_replicas": 1,
                    }],
                },
            ],
            "horizontal_autoscalers": [{
                "metrics": "CPU",
                "enabled": True,
                "max_replicas": 4,
                "min_replicas": 1,
                "threshold": 60,
            }],
        })
    
    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.NewTemScaleRule(ctx, "scaleRule", &tencentcloud.TemScaleRuleArgs{
    			EnvironmentId: pulumi.String("en-o5edaepv"),
    			ApplicationId: pulumi.String("app-3j29aa2p"),
    			WorkloadId:    pulumi.Any(resource.Tencentcloud_tem_workload.Workload.Id),
    			Autoscaler: &tencentcloud.TemScaleRuleAutoscalerArgs{
    				AutoscalerName: pulumi.String("test3123"),
    				Description:    pulumi.String("test"),
    				Enabled:        pulumi.Bool(true),
    				MinReplicas:    pulumi.Float64(1),
    				MaxReplicas:    pulumi.Float64(4),
    				CronHorizontalAutoscalers: tencentcloud.TemScaleRuleAutoscalerCronHorizontalAutoscalerArray{
    					&tencentcloud.TemScaleRuleAutoscalerCronHorizontalAutoscalerArgs{
    						Name:     pulumi.String("test"),
    						Period:   pulumi.String("* * *"),
    						Priority: pulumi.Float64(1),
    						Enabled:  pulumi.Bool(true),
    						Schedules: tencentcloud.TemScaleRuleAutoscalerCronHorizontalAutoscalerScheduleArray{
    							&tencentcloud.TemScaleRuleAutoscalerCronHorizontalAutoscalerScheduleArgs{
    								StartAt:        pulumi.String("03:00"),
    								TargetReplicas: pulumi.Float64(1),
    							},
    						},
    					},
    					&tencentcloud.TemScaleRuleAutoscalerCronHorizontalAutoscalerArgs{
    						Name:     pulumi.String("test123123"),
    						Period:   pulumi.String("* * *"),
    						Priority: pulumi.Float64(0),
    						Enabled:  pulumi.Bool(true),
    						Schedules: tencentcloud.TemScaleRuleAutoscalerCronHorizontalAutoscalerScheduleArray{
    							&tencentcloud.TemScaleRuleAutoscalerCronHorizontalAutoscalerScheduleArgs{
    								StartAt:        pulumi.String("04:13"),
    								TargetReplicas: pulumi.Float64(1),
    							},
    						},
    					},
    				},
    				HorizontalAutoscalers: tencentcloud.TemScaleRuleAutoscalerHorizontalAutoscalerArray{
    					&tencentcloud.TemScaleRuleAutoscalerHorizontalAutoscalerArgs{
    						Metrics:     pulumi.String("CPU"),
    						Enabled:     pulumi.Bool(true),
    						MaxReplicas: pulumi.Float64(4),
    						MinReplicas: pulumi.Float64(1),
    						Threshold:   pulumi.Float64(60),
    					},
    				},
    			},
    		})
    		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 scaleRule = new Tencentcloud.TemScaleRule("scaleRule", new()
        {
            EnvironmentId = "en-o5edaepv",
            ApplicationId = "app-3j29aa2p",
            WorkloadId = resource.Tencentcloud_tem_workload.Workload.Id,
            Autoscaler = new Tencentcloud.Inputs.TemScaleRuleAutoscalerArgs
            {
                AutoscalerName = "test3123",
                Description = "test",
                Enabled = true,
                MinReplicas = 1,
                MaxReplicas = 4,
                CronHorizontalAutoscalers = new[]
                {
                    new Tencentcloud.Inputs.TemScaleRuleAutoscalerCronHorizontalAutoscalerArgs
                    {
                        Name = "test",
                        Period = "* * *",
                        Priority = 1,
                        Enabled = true,
                        Schedules = new[]
                        {
                            new Tencentcloud.Inputs.TemScaleRuleAutoscalerCronHorizontalAutoscalerScheduleArgs
                            {
                                StartAt = "03:00",
                                TargetReplicas = 1,
                            },
                        },
                    },
                    new Tencentcloud.Inputs.TemScaleRuleAutoscalerCronHorizontalAutoscalerArgs
                    {
                        Name = "test123123",
                        Period = "* * *",
                        Priority = 0,
                        Enabled = true,
                        Schedules = new[]
                        {
                            new Tencentcloud.Inputs.TemScaleRuleAutoscalerCronHorizontalAutoscalerScheduleArgs
                            {
                                StartAt = "04:13",
                                TargetReplicas = 1,
                            },
                        },
                    },
                },
                HorizontalAutoscalers = new[]
                {
                    new Tencentcloud.Inputs.TemScaleRuleAutoscalerHorizontalAutoscalerArgs
                    {
                        Metrics = "CPU",
                        Enabled = true,
                        MaxReplicas = 4,
                        MinReplicas = 1,
                        Threshold = 60,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TemScaleRule;
    import com.pulumi.tencentcloud.TemScaleRuleArgs;
    import com.pulumi.tencentcloud.inputs.TemScaleRuleAutoscalerArgs;
    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 scaleRule = new TemScaleRule("scaleRule", TemScaleRuleArgs.builder()
                .environmentId("en-o5edaepv")
                .applicationId("app-3j29aa2p")
                .workloadId(resource.tencentcloud_tem_workload().workload().id())
                .autoscaler(TemScaleRuleAutoscalerArgs.builder()
                    .autoscalerName("test3123")
                    .description("test")
                    .enabled(true)
                    .minReplicas(1)
                    .maxReplicas(4)
                    .cronHorizontalAutoscalers(                
                        TemScaleRuleAutoscalerCronHorizontalAutoscalerArgs.builder()
                            .name("test")
                            .period("* * *")
                            .priority(1)
                            .enabled(true)
                            .schedules(TemScaleRuleAutoscalerCronHorizontalAutoscalerScheduleArgs.builder()
                                .startAt("03:00")
                                .targetReplicas(1)
                                .build())
                            .build(),
                        TemScaleRuleAutoscalerCronHorizontalAutoscalerArgs.builder()
                            .name("test123123")
                            .period("* * *")
                            .priority(0)
                            .enabled(true)
                            .schedules(TemScaleRuleAutoscalerCronHorizontalAutoscalerScheduleArgs.builder()
                                .startAt("04:13")
                                .targetReplicas(1)
                                .build())
                            .build())
                    .horizontalAutoscalers(TemScaleRuleAutoscalerHorizontalAutoscalerArgs.builder()
                        .metrics("CPU")
                        .enabled(true)
                        .maxReplicas(4)
                        .minReplicas(1)
                        .threshold(60)
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      scaleRule:
        type: tencentcloud:TemScaleRule
        properties:
          environmentId: en-o5edaepv
          applicationId: app-3j29aa2p
          workloadId: ${resource.tencentcloud_tem_workload.workload.id}
          autoscaler:
            autoscalerName: test3123
            description: test
            enabled: true
            minReplicas: 1
            maxReplicas: 4
            cronHorizontalAutoscalers:
              - name: test
                period: '* * *'
                priority: 1
                enabled: true
                schedules:
                  - startAt: 03:00
                    targetReplicas: 1
              - name: test123123
                period: '* * *'
                priority: 0
                enabled: true
                schedules:
                  - startAt: 04:13
                    targetReplicas: 1
            horizontalAutoscalers:
              - metrics: CPU
                enabled: true
                maxReplicas: 4
                minReplicas: 1
                threshold: 60
    

    Create TemScaleRule Resource

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

    Constructor syntax

    new TemScaleRule(name: string, args: TemScaleRuleArgs, opts?: CustomResourceOptions);
    @overload
    def TemScaleRule(resource_name: str,
                     args: TemScaleRuleArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TemScaleRule(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     application_id: Optional[str] = None,
                     autoscaler: Optional[TemScaleRuleAutoscalerArgs] = None,
                     environment_id: Optional[str] = None,
                     workload_id: Optional[str] = None,
                     tem_scale_rule_id: Optional[str] = None)
    func NewTemScaleRule(ctx *Context, name string, args TemScaleRuleArgs, opts ...ResourceOption) (*TemScaleRule, error)
    public TemScaleRule(string name, TemScaleRuleArgs args, CustomResourceOptions? opts = null)
    public TemScaleRule(String name, TemScaleRuleArgs args)
    public TemScaleRule(String name, TemScaleRuleArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TemScaleRule
    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 TemScaleRuleArgs
    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 TemScaleRuleArgs
    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 TemScaleRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TemScaleRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TemScaleRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ApplicationId string
    application ID.
    Autoscaler TemScaleRuleAutoscaler
    .
    EnvironmentId string
    environment ID.
    WorkloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    TemScaleRuleId string
    ID of the resource.
    ApplicationId string
    application ID.
    Autoscaler TemScaleRuleAutoscalerArgs
    .
    EnvironmentId string
    environment ID.
    WorkloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    TemScaleRuleId string
    ID of the resource.
    applicationId String
    application ID.
    autoscaler TemScaleRuleAutoscaler
    .
    environmentId String
    environment ID.
    workloadId String
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    temScaleRuleId String
    ID of the resource.
    applicationId string
    application ID.
    autoscaler TemScaleRuleAutoscaler
    .
    environmentId string
    environment ID.
    workloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    temScaleRuleId string
    ID of the resource.
    application_id str
    application ID.
    autoscaler TemScaleRuleAutoscalerArgs
    .
    environment_id str
    environment ID.
    workload_id str
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    tem_scale_rule_id str
    ID of the resource.
    applicationId String
    application ID.
    autoscaler Property Map
    .
    environmentId String
    environment ID.
    workloadId String
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    temScaleRuleId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TemScaleRule 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 TemScaleRule Resource

    Get an existing TemScaleRule 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?: TemScaleRuleState, opts?: CustomResourceOptions): TemScaleRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_id: Optional[str] = None,
            autoscaler: Optional[TemScaleRuleAutoscalerArgs] = None,
            environment_id: Optional[str] = None,
            tem_scale_rule_id: Optional[str] = None,
            workload_id: Optional[str] = None) -> TemScaleRule
    func GetTemScaleRule(ctx *Context, name string, id IDInput, state *TemScaleRuleState, opts ...ResourceOption) (*TemScaleRule, error)
    public static TemScaleRule Get(string name, Input<string> id, TemScaleRuleState? state, CustomResourceOptions? opts = null)
    public static TemScaleRule get(String name, Output<String> id, TemScaleRuleState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TemScaleRule    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:
    ApplicationId string
    application ID.
    Autoscaler TemScaleRuleAutoscaler
    .
    EnvironmentId string
    environment ID.
    TemScaleRuleId string
    ID of the resource.
    WorkloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    ApplicationId string
    application ID.
    Autoscaler TemScaleRuleAutoscalerArgs
    .
    EnvironmentId string
    environment ID.
    TemScaleRuleId string
    ID of the resource.
    WorkloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    applicationId String
    application ID.
    autoscaler TemScaleRuleAutoscaler
    .
    environmentId String
    environment ID.
    temScaleRuleId String
    ID of the resource.
    workloadId String
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    applicationId string
    application ID.
    autoscaler TemScaleRuleAutoscaler
    .
    environmentId string
    environment ID.
    temScaleRuleId string
    ID of the resource.
    workloadId string
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    application_id str
    application ID.
    autoscaler TemScaleRuleAutoscalerArgs
    .
    environment_id str
    environment ID.
    tem_scale_rule_id str
    ID of the resource.
    workload_id str
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.
    applicationId String
    application ID.
    autoscaler Property Map
    .
    environmentId String
    environment ID.
    temScaleRuleId String
    ID of the resource.
    workloadId String
    application ID, which is combined by environment ID and application ID, like en-o5edaepv#app-3j29aa2p.

    Supporting Types

    TemScaleRuleAutoscaler, TemScaleRuleAutoscalerArgs

    AutoscalerName string
    name.
    Enabled bool
    enable scaler.
    MaxReplicas double
    maximal replica number.
    MinReplicas double
    minimal replica number.
    CronHorizontalAutoscalers List<TemScaleRuleAutoscalerCronHorizontalAutoscaler>
    scaler based on cron configuration.
    Description string
    description.
    HorizontalAutoscalers List<TemScaleRuleAutoscalerHorizontalAutoscaler>
    scaler based on metrics.
    AutoscalerName string
    name.
    Enabled bool
    enable scaler.
    MaxReplicas float64
    maximal replica number.
    MinReplicas float64
    minimal replica number.
    CronHorizontalAutoscalers []TemScaleRuleAutoscalerCronHorizontalAutoscaler
    scaler based on cron configuration.
    Description string
    description.
    HorizontalAutoscalers []TemScaleRuleAutoscalerHorizontalAutoscaler
    scaler based on metrics.
    autoscalerName String
    name.
    enabled Boolean
    enable scaler.
    maxReplicas Double
    maximal replica number.
    minReplicas Double
    minimal replica number.
    cronHorizontalAutoscalers List<TemScaleRuleAutoscalerCronHorizontalAutoscaler>
    scaler based on cron configuration.
    description String
    description.
    horizontalAutoscalers List<TemScaleRuleAutoscalerHorizontalAutoscaler>
    scaler based on metrics.
    autoscalerName string
    name.
    enabled boolean
    enable scaler.
    maxReplicas number
    maximal replica number.
    minReplicas number
    minimal replica number.
    cronHorizontalAutoscalers TemScaleRuleAutoscalerCronHorizontalAutoscaler[]
    scaler based on cron configuration.
    description string
    description.
    horizontalAutoscalers TemScaleRuleAutoscalerHorizontalAutoscaler[]
    scaler based on metrics.
    autoscaler_name str
    name.
    enabled bool
    enable scaler.
    max_replicas float
    maximal replica number.
    min_replicas float
    minimal replica number.
    cron_horizontal_autoscalers Sequence[TemScaleRuleAutoscalerCronHorizontalAutoscaler]
    scaler based on cron configuration.
    description str
    description.
    horizontal_autoscalers Sequence[TemScaleRuleAutoscalerHorizontalAutoscaler]
    scaler based on metrics.
    autoscalerName String
    name.
    enabled Boolean
    enable scaler.
    maxReplicas Number
    maximal replica number.
    minReplicas Number
    minimal replica number.
    cronHorizontalAutoscalers List<Property Map>
    scaler based on cron configuration.
    description String
    description.
    horizontalAutoscalers List<Property Map>
    scaler based on metrics.

    TemScaleRuleAutoscalerCronHorizontalAutoscaler, TemScaleRuleAutoscalerCronHorizontalAutoscalerArgs

    Enabled bool
    enable scaler.
    Name string
    name.
    Period string
    period.
    Priority double
    priority.
    Schedules List<TemScaleRuleAutoscalerCronHorizontalAutoscalerSchedule>
    schedule payload.
    Enabled bool
    enable scaler.
    Name string
    name.
    Period string
    period.
    Priority float64
    priority.
    Schedules []TemScaleRuleAutoscalerCronHorizontalAutoscalerSchedule
    schedule payload.
    enabled Boolean
    enable scaler.
    name String
    name.
    period String
    period.
    priority Double
    priority.
    schedules List<TemScaleRuleAutoscalerCronHorizontalAutoscalerSchedule>
    schedule payload.
    enabled boolean
    enable scaler.
    name string
    name.
    period string
    period.
    priority number
    priority.
    schedules TemScaleRuleAutoscalerCronHorizontalAutoscalerSchedule[]
    schedule payload.
    enabled bool
    enable scaler.
    name str
    name.
    period str
    period.
    priority float
    priority.
    schedules Sequence[TemScaleRuleAutoscalerCronHorizontalAutoscalerSchedule]
    schedule payload.
    enabled Boolean
    enable scaler.
    name String
    name.
    period String
    period.
    priority Number
    priority.
    schedules List<Property Map>
    schedule payload.

    TemScaleRuleAutoscalerCronHorizontalAutoscalerSchedule, TemScaleRuleAutoscalerCronHorizontalAutoscalerScheduleArgs

    StartAt string
    start time.
    TargetReplicas double
    target replica number.
    StartAt string
    start time.
    TargetReplicas float64
    target replica number.
    startAt String
    start time.
    targetReplicas Double
    target replica number.
    startAt string
    start time.
    targetReplicas number
    target replica number.
    start_at str
    start time.
    target_replicas float
    target replica number.
    startAt String
    start time.
    targetReplicas Number
    target replica number.

    TemScaleRuleAutoscalerHorizontalAutoscaler, TemScaleRuleAutoscalerHorizontalAutoscalerArgs

    Enabled bool
    enable scaler.
    MaxReplicas double
    maximal replica number.
    Metrics string
    metric name.
    MinReplicas double
    minimal replica number.
    Threshold double
    metric threshold.
    Enabled bool
    enable scaler.
    MaxReplicas float64
    maximal replica number.
    Metrics string
    metric name.
    MinReplicas float64
    minimal replica number.
    Threshold float64
    metric threshold.
    enabled Boolean
    enable scaler.
    maxReplicas Double
    maximal replica number.
    metrics String
    metric name.
    minReplicas Double
    minimal replica number.
    threshold Double
    metric threshold.
    enabled boolean
    enable scaler.
    maxReplicas number
    maximal replica number.
    metrics string
    metric name.
    minReplicas number
    minimal replica number.
    threshold number
    metric threshold.
    enabled bool
    enable scaler.
    max_replicas float
    maximal replica number.
    metrics str
    metric name.
    min_replicas float
    minimal replica number.
    threshold float
    metric threshold.
    enabled Boolean
    enable scaler.
    maxReplicas Number
    maximal replica number.
    metrics String
    metric name.
    minReplicas Number
    minimal replica number.
    threshold Number
    metric threshold.

    Import

    tem scaleRule can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/temScaleRule:TemScaleRule scaleRule environmentId#applicationId#scaleRuleId
    

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

    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