1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. AsSchedule
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.AsSchedule

Explore with Pulumi AI

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

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", {cidrBlock: "10.0.0.0/16"});
const subnet = new tencentcloud.Subnet("subnet", {
    vpcId: vpc.vpcId,
    cidrBlock: "10.0.0.0/16",
    availabilityZone: zones.then(zones => zones.zones?.[0]?.name),
});
const exampleAsScalingConfig = new tencentcloud.AsScalingConfig("exampleAsScalingConfig", {
    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("exampleAsScalingGroup", {
    scalingGroupName: "tf-example",
    configurationId: exampleAsScalingConfig.asScalingConfigId,
    maxSize: 1,
    minSize: 0,
    vpcId: vpc.vpcId,
    subnetIds: [subnet.subnetId],
});
const exampleAsSchedule = new tencentcloud.AsSchedule("exampleAsSchedule", {
    scalingGroupId: exampleAsScalingGroup.asScalingGroupId,
    scheduleActionName: "tf-as-schedule",
    maxSize: 10,
    minSize: 0,
    desiredCapacity: 0,
    startTime: "2019-01-01T00:00:00+08:00",
    endTime: "2019-12-01T00:00:00+08:00",
    recurrence: "0 0 * * *",
});
Copy
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", cidr_block="10.0.0.0/16")
subnet = tencentcloud.Subnet("subnet",
    vpc_id=vpc.vpc_id,
    cidr_block="10.0.0.0/16",
    availability_zone=zones.zones[0].name)
example_as_scaling_config = tencentcloud.AsScalingConfig("exampleAsScalingConfig",
    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("exampleAsScalingGroup",
    scaling_group_name="tf-example",
    configuration_id=example_as_scaling_config.as_scaling_config_id,
    max_size=1,
    min_size=0,
    vpc_id=vpc.vpc_id,
    subnet_ids=[subnet.subnet_id])
example_as_schedule = tencentcloud.AsSchedule("exampleAsSchedule",
    scaling_group_id=example_as_scaling_group.as_scaling_group_id,
    schedule_action_name="tf-as-schedule",
    max_size=10,
    min_size=0,
    desired_capacity=0,
    start_time="2019-01-01T00:00:00+08:00",
    end_time="2019-12-01T00:00:00+08:00",
    recurrence="0 0 * * *")
Copy
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{
			CidrBlock: pulumi.String("10.0.0.0/16"),
		})
		if err != nil {
			return err
		}
		subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
			VpcId:            vpc.VpcId,
			CidrBlock:        pulumi.String("10.0.0.0/16"),
			AvailabilityZone: pulumi.String(zones.Zones[0].Name),
		})
		if err != nil {
			return err
		}
		exampleAsScalingConfig, err := tencentcloud.NewAsScalingConfig(ctx, "exampleAsScalingConfig", &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, "exampleAsScalingGroup", &tencentcloud.AsScalingGroupArgs{
			ScalingGroupName: pulumi.String("tf-example"),
			ConfigurationId:  exampleAsScalingConfig.AsScalingConfigId,
			MaxSize:          pulumi.Float64(1),
			MinSize:          pulumi.Float64(0),
			VpcId:            vpc.VpcId,
			SubnetIds: pulumi.StringArray{
				subnet.SubnetId,
			},
		})
		if err != nil {
			return err
		}
		_, err = tencentcloud.NewAsSchedule(ctx, "exampleAsSchedule", &tencentcloud.AsScheduleArgs{
			ScalingGroupId:     exampleAsScalingGroup.AsScalingGroupId,
			ScheduleActionName: pulumi.String("tf-as-schedule"),
			MaxSize:            pulumi.Float64(10),
			MinSize:            pulumi.Float64(0),
			DesiredCapacity:    pulumi.Float64(0),
			StartTime:          pulumi.String("2019-01-01T00:00:00+08:00"),
			EndTime:            pulumi.String("2019-12-01T00:00:00+08:00"),
			Recurrence:         pulumi.String("0 0 * * *"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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()
    {
        CidrBlock = "10.0.0.0/16",
    });

    var subnet = new Tencentcloud.Subnet("subnet", new()
    {
        VpcId = vpc.VpcId,
        CidrBlock = "10.0.0.0/16",
        AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
    });

    var exampleAsScalingConfig = new Tencentcloud.AsScalingConfig("exampleAsScalingConfig", 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("exampleAsScalingGroup", new()
    {
        ScalingGroupName = "tf-example",
        ConfigurationId = exampleAsScalingConfig.AsScalingConfigId,
        MaxSize = 1,
        MinSize = 0,
        VpcId = vpc.VpcId,
        SubnetIds = new[]
        {
            subnet.SubnetId,
        },
    });

    var exampleAsSchedule = new Tencentcloud.AsSchedule("exampleAsSchedule", new()
    {
        ScalingGroupId = exampleAsScalingGroup.AsScalingGroupId,
        ScheduleActionName = "tf-as-schedule",
        MaxSize = 10,
        MinSize = 0,
        DesiredCapacity = 0,
        StartTime = "2019-01-01T00:00:00+08:00",
        EndTime = "2019-12-01T00:00:00+08:00",
        Recurrence = "0 0 * * *",
    });

});
Copy
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.AsSchedule;
import com.pulumi.tencentcloud.AsScheduleArgs;
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()
            .cidrBlock("10.0.0.0/16")
            .build());

        var subnet = new Subnet("subnet", SubnetArgs.builder()
            .vpcId(vpc.vpcId())
            .cidrBlock("10.0.0.0/16")
            .availabilityZone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
            .build());

        var exampleAsScalingConfig = new AsScalingConfig("exampleAsScalingConfig", AsScalingConfigArgs.builder()
            .configurationName("tf-example")
            .imageId(image.applyValue(getImagesResult -> getImagesResult.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(exampleAsScalingConfig.asScalingConfigId())
            .maxSize(1)
            .minSize(0)
            .vpcId(vpc.vpcId())
            .subnetIds(subnet.subnetId())
            .build());

        var exampleAsSchedule = new AsSchedule("exampleAsSchedule", AsScheduleArgs.builder()
            .scalingGroupId(exampleAsScalingGroup.asScalingGroupId())
            .scheduleActionName("tf-as-schedule")
            .maxSize(10)
            .minSize(0)
            .desiredCapacity(0)
            .startTime("2019-01-01T00:00:00+08:00")
            .endTime("2019-12-01T00:00:00+08:00")
            .recurrence("0 0 * * *")
            .build());

    }
}
Copy
resources:
  vpc:
    type: tencentcloud:Vpc
    properties:
      cidrBlock: 10.0.0.0/16
  subnet:
    type: tencentcloud:Subnet
    properties:
      vpcId: ${vpc.vpcId}
      cidrBlock: 10.0.0.0/16
      availabilityZone: ${zones.zones[0].name}
  exampleAsScalingConfig:
    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
    properties:
      scalingGroupName: tf-example
      configurationId: ${exampleAsScalingConfig.asScalingConfigId}
      maxSize: 1
      minSize: 0
      vpcId: ${vpc.vpcId}
      subnetIds:
        - ${subnet.subnetId}
  exampleAsSchedule:
    type: tencentcloud:AsSchedule
    properties:
      scalingGroupId: ${exampleAsScalingGroup.asScalingGroupId}
      scheduleActionName: tf-as-schedule
      maxSize: 10
      minSize: 0
      desiredCapacity: 0
      startTime: 2019-01-01T00:00:00+08:00
      endTime: 2019-12-01T00:00:00+08:00
      recurrence: 0 0 * * *
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)
Copy

Create AsSchedule Resource

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

Constructor syntax

new AsSchedule(name: string, args: AsScheduleArgs, opts?: CustomResourceOptions);
@overload
def AsSchedule(resource_name: str,
               args: AsScheduleArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def AsSchedule(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               desired_capacity: Optional[float] = None,
               max_size: Optional[float] = None,
               min_size: Optional[float] = None,
               scaling_group_id: Optional[str] = None,
               schedule_action_name: Optional[str] = None,
               start_time: Optional[str] = None,
               as_schedule_id: Optional[str] = None,
               end_time: Optional[str] = None,
               recurrence: Optional[str] = None)
func NewAsSchedule(ctx *Context, name string, args AsScheduleArgs, opts ...ResourceOption) (*AsSchedule, error)
public AsSchedule(string name, AsScheduleArgs args, CustomResourceOptions? opts = null)
public AsSchedule(String name, AsScheduleArgs args)
public AsSchedule(String name, AsScheduleArgs args, CustomResourceOptions options)
type: tencentcloud:AsSchedule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

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

DesiredCapacity This property is required. double
The desired number of CVM instances that should be running in the group.
MaxSize This property is required. double
The maximum size for the Auto Scaling group.
MinSize This property is required. double
The minimum size for the Auto Scaling group.
ScalingGroupId This property is required. string
ID of a scaling group.
ScheduleActionName This property is required. string
The name of this scaling action.
StartTime This property is required. string
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
AsScheduleId string
ID of the resource.
EndTime string
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
Recurrence string
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
DesiredCapacity This property is required. float64
The desired number of CVM instances that should be running in the group.
MaxSize This property is required. float64
The maximum size for the Auto Scaling group.
MinSize This property is required. float64
The minimum size for the Auto Scaling group.
ScalingGroupId This property is required. string
ID of a scaling group.
ScheduleActionName This property is required. string
The name of this scaling action.
StartTime This property is required. string
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
AsScheduleId string
ID of the resource.
EndTime string
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
Recurrence string
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
desiredCapacity This property is required. Double
The desired number of CVM instances that should be running in the group.
maxSize This property is required. Double
The maximum size for the Auto Scaling group.
minSize This property is required. Double
The minimum size for the Auto Scaling group.
scalingGroupId This property is required. String
ID of a scaling group.
scheduleActionName This property is required. String
The name of this scaling action.
startTime This property is required. String
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
asScheduleId String
ID of the resource.
endTime String
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
recurrence String
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
desiredCapacity This property is required. number
The desired number of CVM instances that should be running in the group.
maxSize This property is required. number
The maximum size for the Auto Scaling group.
minSize This property is required. number
The minimum size for the Auto Scaling group.
scalingGroupId This property is required. string
ID of a scaling group.
scheduleActionName This property is required. string
The name of this scaling action.
startTime This property is required. string
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
asScheduleId string
ID of the resource.
endTime string
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
recurrence string
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
desired_capacity This property is required. float
The desired number of CVM instances that should be running in the group.
max_size This property is required. float
The maximum size for the Auto Scaling group.
min_size This property is required. float
The minimum size for the Auto Scaling group.
scaling_group_id This property is required. str
ID of a scaling group.
schedule_action_name This property is required. str
The name of this scaling action.
start_time This property is required. str
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
as_schedule_id str
ID of the resource.
end_time str
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
recurrence str
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
desiredCapacity This property is required. Number
The desired number of CVM instances that should be running in the group.
maxSize This property is required. Number
The maximum size for the Auto Scaling group.
minSize This property is required. Number
The minimum size for the Auto Scaling group.
scalingGroupId This property is required. String
ID of a scaling group.
scheduleActionName This property is required. String
The name of this scaling action.
startTime This property is required. String
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
asScheduleId String
ID of the resource.
endTime String
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
recurrence String
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.

Outputs

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

Get an existing AsSchedule 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?: AsScheduleState, opts?: CustomResourceOptions): AsSchedule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        as_schedule_id: Optional[str] = None,
        desired_capacity: Optional[float] = None,
        end_time: Optional[str] = None,
        max_size: Optional[float] = None,
        min_size: Optional[float] = None,
        recurrence: Optional[str] = None,
        scaling_group_id: Optional[str] = None,
        schedule_action_name: Optional[str] = None,
        start_time: Optional[str] = None) -> AsSchedule
func GetAsSchedule(ctx *Context, name string, id IDInput, state *AsScheduleState, opts ...ResourceOption) (*AsSchedule, error)
public static AsSchedule Get(string name, Input<string> id, AsScheduleState? state, CustomResourceOptions? opts = null)
public static AsSchedule get(String name, Output<String> id, AsScheduleState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:AsSchedule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AsScheduleId string
ID of the resource.
DesiredCapacity double
The desired number of CVM instances that should be running in the group.
EndTime string
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
MaxSize double
The maximum size for the Auto Scaling group.
MinSize double
The minimum size for the Auto Scaling group.
Recurrence string
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
ScalingGroupId string
ID of a scaling group.
ScheduleActionName string
The name of this scaling action.
StartTime string
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
AsScheduleId string
ID of the resource.
DesiredCapacity float64
The desired number of CVM instances that should be running in the group.
EndTime string
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
MaxSize float64
The maximum size for the Auto Scaling group.
MinSize float64
The minimum size for the Auto Scaling group.
Recurrence string
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
ScalingGroupId string
ID of a scaling group.
ScheduleActionName string
The name of this scaling action.
StartTime string
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
asScheduleId String
ID of the resource.
desiredCapacity Double
The desired number of CVM instances that should be running in the group.
endTime String
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
maxSize Double
The maximum size for the Auto Scaling group.
minSize Double
The minimum size for the Auto Scaling group.
recurrence String
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
scalingGroupId String
ID of a scaling group.
scheduleActionName String
The name of this scaling action.
startTime String
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
asScheduleId string
ID of the resource.
desiredCapacity number
The desired number of CVM instances that should be running in the group.
endTime string
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
maxSize number
The maximum size for the Auto Scaling group.
minSize number
The minimum size for the Auto Scaling group.
recurrence string
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
scalingGroupId string
ID of a scaling group.
scheduleActionName string
The name of this scaling action.
startTime string
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
as_schedule_id str
ID of the resource.
desired_capacity float
The desired number of CVM instances that should be running in the group.
end_time str
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
max_size float
The maximum size for the Auto Scaling group.
min_size float
The minimum size for the Auto Scaling group.
recurrence str
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
scaling_group_id str
ID of a scaling group.
schedule_action_name str
The name of this scaling action.
start_time str
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
asScheduleId String
ID of the resource.
desiredCapacity Number
The desired number of CVM instances that should be running in the group.
endTime String
The time for this action to end, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).
maxSize Number
The maximum size for the Auto Scaling group.
minSize Number
The minimum size for the Auto Scaling group.
recurrence String
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. And this argument should be set with end_time together.
scalingGroupId String
ID of a scaling group.
scheduleActionName String
The name of this scaling action.
startTime String
The time for this action to start, in "YYYY-MM-DDThh:mm:ss+08:00" format (UTC+8).

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.