1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. AsScalingPolicy
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

tencentcloud.AsScalingPolicy

Start a Neo task
Explain and create a tencentcloud.AsScalingPolicy resource
tencentcloud logo
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack

    Provides a resource for an AS (Auto scaling) policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const zones = tencentcloud.getAvailabilityZonesByProduct({
        product: "as",
    });
    const image = tencentcloud.getImages({
        imageTypes: ["PUBLIC_IMAGE"],
        osName: "TencentOS Server 3.2 (Final)",
    });
    const vpc = new tencentcloud.Vpc("vpc", {
        name: "vpc-example",
        cidrBlock: "10.0.0.0/16",
    });
    const subnet = new tencentcloud.Subnet("subnet", {
        vpcId: vpc.vpcId,
        name: "subnet-example",
        cidrBlock: "10.0.0.0/16",
        availabilityZone: zones.then(zones => zones.zones?.[0]?.name),
    });
    const example = new tencentcloud.AsScalingConfig("example", {
        configurationName: "tf-example",
        imageId: image.then(image => image.images?.[0]?.imageId),
        instanceTypes: [
            "SA1.SMALL1",
            "SA2.SMALL1",
            "SA2.SMALL2",
            "SA2.SMALL4",
        ],
        instanceNameSettings: {
            instanceName: "test-ins-name",
        },
    });
    const exampleAsScalingGroup = new tencentcloud.AsScalingGroup("example", {
        scalingGroupName: "tf-example",
        configurationId: example.asScalingConfigId,
        maxSize: 1,
        minSize: 0,
        vpcId: vpc.vpcId,
        subnetIds: [subnet.subnetId],
    });
    const exampleAsScalingPolicy = new tencentcloud.AsScalingPolicy("example", {
        scalingGroupId: exampleAsScalingGroup.asScalingGroupId,
        policyName: "tf-as-scaling-policy",
        adjustmentType: "EXACT_CAPACITY",
        adjustmentValue: 0,
        comparisonOperator: "GREATER_THAN",
        metricName: "CPU_UTILIZATION",
        threshold: 80,
        period: 300,
        continuousTime: 10,
        statistic: "AVERAGE",
        cooldown: 360,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    zones = tencentcloud.get_availability_zones_by_product(product="as")
    image = tencentcloud.get_images(image_types=["PUBLIC_IMAGE"],
        os_name="TencentOS Server 3.2 (Final)")
    vpc = tencentcloud.Vpc("vpc",
        name="vpc-example",
        cidr_block="10.0.0.0/16")
    subnet = tencentcloud.Subnet("subnet",
        vpc_id=vpc.vpc_id,
        name="subnet-example",
        cidr_block="10.0.0.0/16",
        availability_zone=zones.zones[0].name)
    example = tencentcloud.AsScalingConfig("example",
        configuration_name="tf-example",
        image_id=image.images[0].image_id,
        instance_types=[
            "SA1.SMALL1",
            "SA2.SMALL1",
            "SA2.SMALL2",
            "SA2.SMALL4",
        ],
        instance_name_settings={
            "instance_name": "test-ins-name",
        })
    example_as_scaling_group = tencentcloud.AsScalingGroup("example",
        scaling_group_name="tf-example",
        configuration_id=example.as_scaling_config_id,
        max_size=1,
        min_size=0,
        vpc_id=vpc.vpc_id,
        subnet_ids=[subnet.subnet_id])
    example_as_scaling_policy = tencentcloud.AsScalingPolicy("example",
        scaling_group_id=example_as_scaling_group.as_scaling_group_id,
        policy_name="tf-as-scaling-policy",
        adjustment_type="EXACT_CAPACITY",
        adjustment_value=0,
        comparison_operator="GREATER_THAN",
        metric_name="CPU_UTILIZATION",
        threshold=80,
        period=300,
        continuous_time=10,
        statistic="AVERAGE",
        cooldown=360)
    
    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 {
    		zones, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
    			Product: "as",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		image, err := tencentcloud.GetImages(ctx, &tencentcloud.GetImagesArgs{
    			ImageTypes: []string{
    				"PUBLIC_IMAGE",
    			},
    			OsName: pulumi.StringRef("TencentOS Server 3.2 (Final)"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
    			Name:      pulumi.String("vpc-example"),
    			CidrBlock: pulumi.String("10.0.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
    			VpcId:            vpc.VpcId,
    			Name:             pulumi.String("subnet-example"),
    			CidrBlock:        pulumi.String("10.0.0.0/16"),
    			AvailabilityZone: pulumi.String(zones.Zones[0].Name),
    		})
    		if err != nil {
    			return err
    		}
    		example, err := tencentcloud.NewAsScalingConfig(ctx, "example", &tencentcloud.AsScalingConfigArgs{
    			ConfigurationName: pulumi.String("tf-example"),
    			ImageId:           pulumi.String(image.Images[0].ImageId),
    			InstanceTypes: pulumi.StringArray{
    				pulumi.String("SA1.SMALL1"),
    				pulumi.String("SA2.SMALL1"),
    				pulumi.String("SA2.SMALL2"),
    				pulumi.String("SA2.SMALL4"),
    			},
    			InstanceNameSettings: &tencentcloud.AsScalingConfigInstanceNameSettingsArgs{
    				InstanceName: pulumi.String("test-ins-name"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleAsScalingGroup, err := tencentcloud.NewAsScalingGroup(ctx, "example", &tencentcloud.AsScalingGroupArgs{
    			ScalingGroupName: pulumi.String("tf-example"),
    			ConfigurationId:  example.AsScalingConfigId,
    			MaxSize:          pulumi.Float64(1),
    			MinSize:          pulumi.Float64(0),
    			VpcId:            vpc.VpcId,
    			SubnetIds: pulumi.StringArray{
    				subnet.SubnetId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewAsScalingPolicy(ctx, "example", &tencentcloud.AsScalingPolicyArgs{
    			ScalingGroupId:     exampleAsScalingGroup.AsScalingGroupId,
    			PolicyName:         pulumi.String("tf-as-scaling-policy"),
    			AdjustmentType:     pulumi.String("EXACT_CAPACITY"),
    			AdjustmentValue:    pulumi.Float64(0),
    			ComparisonOperator: pulumi.String("GREATER_THAN"),
    			MetricName:         pulumi.String("CPU_UTILIZATION"),
    			Threshold:          pulumi.Float64(80),
    			Period:             pulumi.Float64(300),
    			ContinuousTime:     pulumi.Float64(10),
    			Statistic:          pulumi.String("AVERAGE"),
    			Cooldown:           pulumi.Float64(360),
    		})
    		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 zones = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
        {
            Product = "as",
        });
    
        var image = Tencentcloud.GetImages.Invoke(new()
        {
            ImageTypes = new[]
            {
                "PUBLIC_IMAGE",
            },
            OsName = "TencentOS Server 3.2 (Final)",
        });
    
        var vpc = new Tencentcloud.Vpc("vpc", new()
        {
            Name = "vpc-example",
            CidrBlock = "10.0.0.0/16",
        });
    
        var subnet = new Tencentcloud.Subnet("subnet", new()
        {
            VpcId = vpc.VpcId,
            Name = "subnet-example",
            CidrBlock = "10.0.0.0/16",
            AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
        });
    
        var example = new Tencentcloud.AsScalingConfig("example", new()
        {
            ConfigurationName = "tf-example",
            ImageId = image.Apply(getImagesResult => getImagesResult.Images[0]?.ImageId),
            InstanceTypes = new[]
            {
                "SA1.SMALL1",
                "SA2.SMALL1",
                "SA2.SMALL2",
                "SA2.SMALL4",
            },
            InstanceNameSettings = new Tencentcloud.Inputs.AsScalingConfigInstanceNameSettingsArgs
            {
                InstanceName = "test-ins-name",
            },
        });
    
        var exampleAsScalingGroup = new Tencentcloud.AsScalingGroup("example", new()
        {
            ScalingGroupName = "tf-example",
            ConfigurationId = example.AsScalingConfigId,
            MaxSize = 1,
            MinSize = 0,
            VpcId = vpc.VpcId,
            SubnetIds = new[]
            {
                subnet.SubnetId,
            },
        });
    
        var exampleAsScalingPolicy = new Tencentcloud.AsScalingPolicy("example", new()
        {
            ScalingGroupId = exampleAsScalingGroup.AsScalingGroupId,
            PolicyName = "tf-as-scaling-policy",
            AdjustmentType = "EXACT_CAPACITY",
            AdjustmentValue = 0,
            ComparisonOperator = "GREATER_THAN",
            MetricName = "CPU_UTILIZATION",
            Threshold = 80,
            Period = 300,
            ContinuousTime = 10,
            Statistic = "AVERAGE",
            Cooldown = 360,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
    import com.pulumi.tencentcloud.inputs.GetImagesArgs;
    import com.pulumi.tencentcloud.Vpc;
    import com.pulumi.tencentcloud.VpcArgs;
    import com.pulumi.tencentcloud.Subnet;
    import com.pulumi.tencentcloud.SubnetArgs;
    import com.pulumi.tencentcloud.AsScalingConfig;
    import com.pulumi.tencentcloud.AsScalingConfigArgs;
    import com.pulumi.tencentcloud.inputs.AsScalingConfigInstanceNameSettingsArgs;
    import com.pulumi.tencentcloud.AsScalingGroup;
    import com.pulumi.tencentcloud.AsScalingGroupArgs;
    import com.pulumi.tencentcloud.AsScalingPolicy;
    import com.pulumi.tencentcloud.AsScalingPolicyArgs;
    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) {
            final var zones = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
                .product("as")
                .build());
    
            final var image = TencentcloudFunctions.getImages(GetImagesArgs.builder()
                .imageTypes("PUBLIC_IMAGE")
                .osName("TencentOS Server 3.2 (Final)")
                .build());
    
            var vpc = new Vpc("vpc", VpcArgs.builder()
                .name("vpc-example")
                .cidrBlock("10.0.0.0/16")
                .build());
    
            var subnet = new Subnet("subnet", SubnetArgs.builder()
                .vpcId(vpc.vpcId())
                .name("subnet-example")
                .cidrBlock("10.0.0.0/16")
                .availabilityZone(zones.zones()[0].name())
                .build());
    
            var example = new AsScalingConfig("example", AsScalingConfigArgs.builder()
                .configurationName("tf-example")
                .imageId(image.images()[0].imageId())
                .instanceTypes(            
                    "SA1.SMALL1",
                    "SA2.SMALL1",
                    "SA2.SMALL2",
                    "SA2.SMALL4")
                .instanceNameSettings(AsScalingConfigInstanceNameSettingsArgs.builder()
                    .instanceName("test-ins-name")
                    .build())
                .build());
    
            var exampleAsScalingGroup = new AsScalingGroup("exampleAsScalingGroup", AsScalingGroupArgs.builder()
                .scalingGroupName("tf-example")
                .configurationId(example.asScalingConfigId())
                .maxSize(1.0)
                .minSize(0.0)
                .vpcId(vpc.vpcId())
                .subnetIds(subnet.subnetId())
                .build());
    
            var exampleAsScalingPolicy = new AsScalingPolicy("exampleAsScalingPolicy", AsScalingPolicyArgs.builder()
                .scalingGroupId(exampleAsScalingGroup.asScalingGroupId())
                .policyName("tf-as-scaling-policy")
                .adjustmentType("EXACT_CAPACITY")
                .adjustmentValue(0.0)
                .comparisonOperator("GREATER_THAN")
                .metricName("CPU_UTILIZATION")
                .threshold(80.0)
                .period(300.0)
                .continuousTime(10.0)
                .statistic("AVERAGE")
                .cooldown(360.0)
                .build());
    
        }
    }
    
    resources:
      vpc:
        type: tencentcloud:Vpc
        properties:
          name: vpc-example
          cidrBlock: 10.0.0.0/16
      subnet:
        type: tencentcloud:Subnet
        properties:
          vpcId: ${vpc.vpcId}
          name: subnet-example
          cidrBlock: 10.0.0.0/16
          availabilityZone: ${zones.zones[0].name}
      example:
        type: tencentcloud:AsScalingConfig
        properties:
          configurationName: tf-example
          imageId: ${image.images[0].imageId}
          instanceTypes:
            - SA1.SMALL1
            - SA2.SMALL1
            - SA2.SMALL2
            - SA2.SMALL4
          instanceNameSettings:
            instanceName: test-ins-name
      exampleAsScalingGroup:
        type: tencentcloud:AsScalingGroup
        name: example
        properties:
          scalingGroupName: tf-example
          configurationId: ${example.asScalingConfigId}
          maxSize: 1
          minSize: 0
          vpcId: ${vpc.vpcId}
          subnetIds:
            - ${subnet.subnetId}
      exampleAsScalingPolicy:
        type: tencentcloud:AsScalingPolicy
        name: example
        properties:
          scalingGroupId: ${exampleAsScalingGroup.asScalingGroupId}
          policyName: tf-as-scaling-policy
          adjustmentType: EXACT_CAPACITY
          adjustmentValue: 0
          comparisonOperator: GREATER_THAN
          metricName: CPU_UTILIZATION
          threshold: 80
          period: 300
          continuousTime: 10
          statistic: AVERAGE
          cooldown: 360
    variables:
      zones:
        fn::invoke:
          function: tencentcloud:getAvailabilityZonesByProduct
          arguments:
            product: as
      image:
        fn::invoke:
          function: tencentcloud:getImages
          arguments:
            imageTypes:
              - PUBLIC_IMAGE
            osName: TencentOS Server 3.2 (Final)
    

    Create AsScalingPolicy Resource

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

    Constructor syntax

    new AsScalingPolicy(name: string, args: AsScalingPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def AsScalingPolicy(resource_name: str,
                        args: AsScalingPolicyArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AsScalingPolicy(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        metric_name: Optional[str] = None,
                        period: Optional[float] = None,
                        threshold: Optional[float] = None,
                        comparison_operator: Optional[str] = None,
                        continuous_time: Optional[float] = None,
                        adjustment_type: Optional[str] = None,
                        scaling_group_id: Optional[str] = None,
                        policy_name: Optional[str] = None,
                        adjustment_value: Optional[float] = None,
                        cooldown: Optional[float] = None,
                        notification_user_group_ids: Optional[Sequence[str]] = None,
                        estimated_instance_warmup: Optional[float] = None,
                        policy_type: Optional[str] = None,
                        predefined_metric_type: Optional[str] = None,
                        disable_scale_in: Optional[bool] = None,
                        statistic: Optional[str] = None,
                        target_value: Optional[float] = None,
                        as_scaling_policy_id: Optional[str] = None)
    func NewAsScalingPolicy(ctx *Context, name string, args AsScalingPolicyArgs, opts ...ResourceOption) (*AsScalingPolicy, error)
    public AsScalingPolicy(string name, AsScalingPolicyArgs args, CustomResourceOptions? opts = null)
    public AsScalingPolicy(String name, AsScalingPolicyArgs args)
    public AsScalingPolicy(String name, AsScalingPolicyArgs args, CustomResourceOptions options)
    
    type: tencentcloud:AsScalingPolicy
    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 AsScalingPolicyArgs
    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 AsScalingPolicyArgs
    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 AsScalingPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AsScalingPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AsScalingPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AdjustmentType string
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    AdjustmentValue double
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    ComparisonOperator string
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    ContinuousTime double
    Retry times. Valid value ranges: (1~10).
    MetricName string
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    Period double
    Time period in second. Valid values: 60 and 300.
    PolicyName string
    Name of a policy used to define a reaction when an alarm is triggered.
    ScalingGroupId string
    ID of a scaling group.
    Threshold double
    Alarm threshold.
    AsScalingPolicyId string
    ID of the resource.
    Cooldown double
    Cooldwon time in second. Default is 300.
    DisableScaleIn bool
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    EstimatedInstanceWarmup double
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    NotificationUserGroupIds List<string>
    An ID group of users to be notified when an alarm is triggered.
    PolicyType string
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    PredefinedMetricType string
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    Statistic string
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    TargetValue double
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    AdjustmentType string
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    AdjustmentValue float64
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    ComparisonOperator string
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    ContinuousTime float64
    Retry times. Valid value ranges: (1~10).
    MetricName string
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    Period float64
    Time period in second. Valid values: 60 and 300.
    PolicyName string
    Name of a policy used to define a reaction when an alarm is triggered.
    ScalingGroupId string
    ID of a scaling group.
    Threshold float64
    Alarm threshold.
    AsScalingPolicyId string
    ID of the resource.
    Cooldown float64
    Cooldwon time in second. Default is 300.
    DisableScaleIn bool
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    EstimatedInstanceWarmup float64
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    NotificationUserGroupIds []string
    An ID group of users to be notified when an alarm is triggered.
    PolicyType string
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    PredefinedMetricType string
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    Statistic string
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    TargetValue float64
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    adjustmentType String
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    adjustmentValue Double
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    comparisonOperator String
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    continuousTime Double
    Retry times. Valid value ranges: (1~10).
    metricName String
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    period Double
    Time period in second. Valid values: 60 and 300.
    policyName String
    Name of a policy used to define a reaction when an alarm is triggered.
    scalingGroupId String
    ID of a scaling group.
    threshold Double
    Alarm threshold.
    asScalingPolicyId String
    ID of the resource.
    cooldown Double
    Cooldwon time in second. Default is 300.
    disableScaleIn Boolean
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    estimatedInstanceWarmup Double
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    notificationUserGroupIds List<String>
    An ID group of users to be notified when an alarm is triggered.
    policyType String
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    predefinedMetricType String
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    statistic String
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    targetValue Double
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    adjustmentType string
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    adjustmentValue number
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    comparisonOperator string
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    continuousTime number
    Retry times. Valid value ranges: (1~10).
    metricName string
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    period number
    Time period in second. Valid values: 60 and 300.
    policyName string
    Name of a policy used to define a reaction when an alarm is triggered.
    scalingGroupId string
    ID of a scaling group.
    threshold number
    Alarm threshold.
    asScalingPolicyId string
    ID of the resource.
    cooldown number
    Cooldwon time in second. Default is 300.
    disableScaleIn boolean
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    estimatedInstanceWarmup number
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    notificationUserGroupIds string[]
    An ID group of users to be notified when an alarm is triggered.
    policyType string
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    predefinedMetricType string
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    statistic string
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    targetValue number
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    adjustment_type str
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    adjustment_value float
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    comparison_operator str
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    continuous_time float
    Retry times. Valid value ranges: (1~10).
    metric_name str
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    period float
    Time period in second. Valid values: 60 and 300.
    policy_name str
    Name of a policy used to define a reaction when an alarm is triggered.
    scaling_group_id str
    ID of a scaling group.
    threshold float
    Alarm threshold.
    as_scaling_policy_id str
    ID of the resource.
    cooldown float
    Cooldwon time in second. Default is 300.
    disable_scale_in bool
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    estimated_instance_warmup float
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    notification_user_group_ids Sequence[str]
    An ID group of users to be notified when an alarm is triggered.
    policy_type str
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    predefined_metric_type str
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    statistic str
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    target_value float
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    adjustmentType String
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    adjustmentValue Number
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    comparisonOperator String
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    continuousTime Number
    Retry times. Valid value ranges: (1~10).
    metricName String
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    period Number
    Time period in second. Valid values: 60 and 300.
    policyName String
    Name of a policy used to define a reaction when an alarm is triggered.
    scalingGroupId String
    ID of a scaling group.
    threshold Number
    Alarm threshold.
    asScalingPolicyId String
    ID of the resource.
    cooldown Number
    Cooldwon time in second. Default is 300.
    disableScaleIn Boolean
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    estimatedInstanceWarmup Number
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    notificationUserGroupIds List<String>
    An ID group of users to be notified when an alarm is triggered.
    policyType String
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    predefinedMetricType String
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    statistic String
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    targetValue Number
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.

    Outputs

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

    Get an existing AsScalingPolicy 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?: AsScalingPolicyState, opts?: CustomResourceOptions): AsScalingPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            adjustment_type: Optional[str] = None,
            adjustment_value: Optional[float] = None,
            as_scaling_policy_id: Optional[str] = None,
            comparison_operator: Optional[str] = None,
            continuous_time: Optional[float] = None,
            cooldown: Optional[float] = None,
            disable_scale_in: Optional[bool] = None,
            estimated_instance_warmup: Optional[float] = None,
            metric_name: Optional[str] = None,
            notification_user_group_ids: Optional[Sequence[str]] = None,
            period: Optional[float] = None,
            policy_name: Optional[str] = None,
            policy_type: Optional[str] = None,
            predefined_metric_type: Optional[str] = None,
            scaling_group_id: Optional[str] = None,
            statistic: Optional[str] = None,
            target_value: Optional[float] = None,
            threshold: Optional[float] = None) -> AsScalingPolicy
    func GetAsScalingPolicy(ctx *Context, name string, id IDInput, state *AsScalingPolicyState, opts ...ResourceOption) (*AsScalingPolicy, error)
    public static AsScalingPolicy Get(string name, Input<string> id, AsScalingPolicyState? state, CustomResourceOptions? opts = null)
    public static AsScalingPolicy get(String name, Output<String> id, AsScalingPolicyState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:AsScalingPolicy    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:
    AdjustmentType string
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    AdjustmentValue double
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    AsScalingPolicyId string
    ID of the resource.
    ComparisonOperator string
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    ContinuousTime double
    Retry times. Valid value ranges: (1~10).
    Cooldown double
    Cooldwon time in second. Default is 300.
    DisableScaleIn bool
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    EstimatedInstanceWarmup double
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    MetricName string
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    NotificationUserGroupIds List<string>
    An ID group of users to be notified when an alarm is triggered.
    Period double
    Time period in second. Valid values: 60 and 300.
    PolicyName string
    Name of a policy used to define a reaction when an alarm is triggered.
    PolicyType string
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    PredefinedMetricType string
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    ScalingGroupId string
    ID of a scaling group.
    Statistic string
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    TargetValue double
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    Threshold double
    Alarm threshold.
    AdjustmentType string
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    AdjustmentValue float64
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    AsScalingPolicyId string
    ID of the resource.
    ComparisonOperator string
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    ContinuousTime float64
    Retry times. Valid value ranges: (1~10).
    Cooldown float64
    Cooldwon time in second. Default is 300.
    DisableScaleIn bool
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    EstimatedInstanceWarmup float64
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    MetricName string
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    NotificationUserGroupIds []string
    An ID group of users to be notified when an alarm is triggered.
    Period float64
    Time period in second. Valid values: 60 and 300.
    PolicyName string
    Name of a policy used to define a reaction when an alarm is triggered.
    PolicyType string
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    PredefinedMetricType string
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    ScalingGroupId string
    ID of a scaling group.
    Statistic string
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    TargetValue float64
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    Threshold float64
    Alarm threshold.
    adjustmentType String
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    adjustmentValue Double
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    asScalingPolicyId String
    ID of the resource.
    comparisonOperator String
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    continuousTime Double
    Retry times. Valid value ranges: (1~10).
    cooldown Double
    Cooldwon time in second. Default is 300.
    disableScaleIn Boolean
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    estimatedInstanceWarmup Double
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    metricName String
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    notificationUserGroupIds List<String>
    An ID group of users to be notified when an alarm is triggered.
    period Double
    Time period in second. Valid values: 60 and 300.
    policyName String
    Name of a policy used to define a reaction when an alarm is triggered.
    policyType String
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    predefinedMetricType String
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    scalingGroupId String
    ID of a scaling group.
    statistic String
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    targetValue Double
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    threshold Double
    Alarm threshold.
    adjustmentType string
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    adjustmentValue number
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    asScalingPolicyId string
    ID of the resource.
    comparisonOperator string
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    continuousTime number
    Retry times. Valid value ranges: (1~10).
    cooldown number
    Cooldwon time in second. Default is 300.
    disableScaleIn boolean
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    estimatedInstanceWarmup number
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    metricName string
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    notificationUserGroupIds string[]
    An ID group of users to be notified when an alarm is triggered.
    period number
    Time period in second. Valid values: 60 and 300.
    policyName string
    Name of a policy used to define a reaction when an alarm is triggered.
    policyType string
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    predefinedMetricType string
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    scalingGroupId string
    ID of a scaling group.
    statistic string
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    targetValue number
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    threshold number
    Alarm threshold.
    adjustment_type str
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    adjustment_value float
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    as_scaling_policy_id str
    ID of the resource.
    comparison_operator str
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    continuous_time float
    Retry times. Valid value ranges: (1~10).
    cooldown float
    Cooldwon time in second. Default is 300.
    disable_scale_in bool
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    estimated_instance_warmup float
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    metric_name str
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    notification_user_group_ids Sequence[str]
    An ID group of users to be notified when an alarm is triggered.
    period float
    Time period in second. Valid values: 60 and 300.
    policy_name str
    Name of a policy used to define a reaction when an alarm is triggered.
    policy_type str
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    predefined_metric_type str
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    scaling_group_id str
    ID of a scaling group.
    statistic str
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    target_value float
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    threshold float
    Alarm threshold.
    adjustmentType String
    Specifies whether the adjustment is an absolute number or a percentage of the current capacity. Valid values: CHANGE_IN_CAPACITY, EXACT_CAPACITY and PERCENT_CHANGE_IN_CAPACITY.
    adjustmentValue Number
    Define the number of instances by which to scale.For CHANGE_IN_CAPACITY type or PERCENT_CHANGE_IN_CAPACITY, a positive increment adds to the current capacity and a negative value removes from the current capacity. For EXACT_CAPACITY type, it defines an absolute number of the existing Auto Scaling group size.
    asScalingPolicyId String
    ID of the resource.
    comparisonOperator String
    Comparison operator. Valid values: GREATER_THAN, GREATER_THAN_OR_EQUAL_TO, LESS_THAN, LESS_THAN_OR_EQUAL_TO, EQUAL_TO and NOT_EQUAL_TO.
    continuousTime Number
    Retry times. Valid value ranges: (1~10).
    cooldown Number
    Cooldwon time in second. Default is 300.
    disableScaleIn Boolean
    Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
    estimatedInstanceWarmup Number
    Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
    metricName String
    Name of an indicator. Valid values: CPU_UTILIZATION, MEM_UTILIZATION, LAN_TRAFFIC_OUT, LAN_TRAFFIC_IN, WAN_TRAFFIC_OUT and WAN_TRAFFIC_IN.
    notificationUserGroupIds List<String>
    An ID group of users to be notified when an alarm is triggered.
    period Number
    Time period in second. Valid values: 60 and 300.
    policyName String
    Name of a policy used to define a reaction when an alarm is triggered.
    policyType String
    Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
    predefinedMetricType String
    Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
    scalingGroupId String
    ID of a scaling group.
    statistic String
    Statistic types. Valid values: AVERAGE, MAXIMUM and MINIMUM. Default is AVERAGE.
    targetValue Number
    Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
    threshold Number
    Alarm threshold.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate