tencentcloud.AsExecuteScalingPolicy
Explore with Pulumi AI
Provides a resource to create a as execute_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", {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: 4,
minSize: 1,
desiredCapacity: 2,
vpcId: vpc.vpcId,
subnetIds: [subnet.subnetId],
});
const exampleAsScalingPolicy = new tencentcloud.AsScalingPolicy("exampleAsScalingPolicy", {
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,
});
const exampleAsExecuteScalingPolicy = new tencentcloud.AsExecuteScalingPolicy("exampleAsExecuteScalingPolicy", {
autoScalingPolicyId: exampleAsScalingPolicy.asScalingPolicyId,
honorCooldown: false,
triggerSource: "API",
});
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=4,
min_size=1,
desired_capacity=2,
vpc_id=vpc.vpc_id,
subnet_ids=[subnet.subnet_id])
example_as_scaling_policy = tencentcloud.AsScalingPolicy("exampleAsScalingPolicy",
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)
example_as_execute_scaling_policy = tencentcloud.AsExecuteScalingPolicy("exampleAsExecuteScalingPolicy",
auto_scaling_policy_id=example_as_scaling_policy.as_scaling_policy_id,
honor_cooldown=False,
trigger_source="API")
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(4),
MinSize: pulumi.Float64(1),
DesiredCapacity: pulumi.Float64(2),
VpcId: vpc.VpcId,
SubnetIds: pulumi.StringArray{
subnet.SubnetId,
},
})
if err != nil {
return err
}
exampleAsScalingPolicy, err := tencentcloud.NewAsScalingPolicy(ctx, "exampleAsScalingPolicy", &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
}
_, err = tencentcloud.NewAsExecuteScalingPolicy(ctx, "exampleAsExecuteScalingPolicy", &tencentcloud.AsExecuteScalingPolicyArgs{
AutoScalingPolicyId: exampleAsScalingPolicy.AsScalingPolicyId,
HonorCooldown: pulumi.Bool(false),
TriggerSource: pulumi.String("API"),
})
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()
{
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 = 4,
MinSize = 1,
DesiredCapacity = 2,
VpcId = vpc.VpcId,
SubnetIds = new[]
{
subnet.SubnetId,
},
});
var exampleAsScalingPolicy = new Tencentcloud.AsScalingPolicy("exampleAsScalingPolicy", 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,
});
var exampleAsExecuteScalingPolicy = new Tencentcloud.AsExecuteScalingPolicy("exampleAsExecuteScalingPolicy", new()
{
AutoScalingPolicyId = exampleAsScalingPolicy.AsScalingPolicyId,
HonorCooldown = false,
TriggerSource = "API",
});
});
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 com.pulumi.tencentcloud.AsExecuteScalingPolicy;
import com.pulumi.tencentcloud.AsExecuteScalingPolicyArgs;
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(4)
.minSize(1)
.desiredCapacity(2)
.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)
.comparisonOperator("GREATER_THAN")
.metricName("CPU_UTILIZATION")
.threshold(80)
.period(300)
.continuousTime(10)
.statistic("AVERAGE")
.cooldown(360)
.build());
var exampleAsExecuteScalingPolicy = new AsExecuteScalingPolicy("exampleAsExecuteScalingPolicy", AsExecuteScalingPolicyArgs.builder()
.autoScalingPolicyId(exampleAsScalingPolicy.asScalingPolicyId())
.honorCooldown(false)
.triggerSource("API")
.build());
}
}
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: 4
minSize: 1
desiredCapacity: 2
vpcId: ${vpc.vpcId}
subnetIds:
- ${subnet.subnetId}
exampleAsScalingPolicy:
type: tencentcloud:AsScalingPolicy
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
exampleAsExecuteScalingPolicy:
type: tencentcloud:AsExecuteScalingPolicy
properties:
autoScalingPolicyId: ${exampleAsScalingPolicy.asScalingPolicyId}
honorCooldown: false
triggerSource: API
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 AsExecuteScalingPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AsExecuteScalingPolicy(name: string, args: AsExecuteScalingPolicyArgs, opts?: CustomResourceOptions);
@overload
def AsExecuteScalingPolicy(resource_name: str,
args: AsExecuteScalingPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AsExecuteScalingPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
auto_scaling_policy_id: Optional[str] = None,
as_execute_scaling_policy_id: Optional[str] = None,
honor_cooldown: Optional[bool] = None,
trigger_source: Optional[str] = None)
func NewAsExecuteScalingPolicy(ctx *Context, name string, args AsExecuteScalingPolicyArgs, opts ...ResourceOption) (*AsExecuteScalingPolicy, error)
public AsExecuteScalingPolicy(string name, AsExecuteScalingPolicyArgs args, CustomResourceOptions? opts = null)
public AsExecuteScalingPolicy(String name, AsExecuteScalingPolicyArgs args)
public AsExecuteScalingPolicy(String name, AsExecuteScalingPolicyArgs args, CustomResourceOptions options)
type: tencentcloud:AsExecuteScalingPolicy
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 AsExecuteScalingPolicyArgs
- 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 AsExecuteScalingPolicyArgs
- 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 AsExecuteScalingPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AsExecuteScalingPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AsExecuteScalingPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AsExecuteScalingPolicy 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 AsExecuteScalingPolicy resource accepts the following input properties:
- Auto
Scaling stringPolicy Id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- As
Execute stringScaling Policy Id - ID of the resource.
- Honor
Cooldown bool - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- Trigger
Source string - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
- Auto
Scaling stringPolicy Id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- As
Execute stringScaling Policy Id - ID of the resource.
- Honor
Cooldown bool - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- Trigger
Source string - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
- auto
Scaling StringPolicy Id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- as
Execute StringScaling Policy Id - ID of the resource.
- honor
Cooldown Boolean - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- trigger
Source String - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
- auto
Scaling stringPolicy Id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- as
Execute stringScaling Policy Id - ID of the resource.
- honor
Cooldown boolean - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- trigger
Source string - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
- auto_
scaling_ strpolicy_ id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- as_
execute_ strscaling_ policy_ id - ID of the resource.
- honor_
cooldown bool - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- trigger_
source str - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
- auto
Scaling StringPolicy Id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- as
Execute StringScaling Policy Id - ID of the resource.
- honor
Cooldown Boolean - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- trigger
Source String - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
Outputs
All input properties are implicitly available as output properties. Additionally, the AsExecuteScalingPolicy 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 AsExecuteScalingPolicy Resource
Get an existing AsExecuteScalingPolicy 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?: AsExecuteScalingPolicyState, opts?: CustomResourceOptions): AsExecuteScalingPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
as_execute_scaling_policy_id: Optional[str] = None,
auto_scaling_policy_id: Optional[str] = None,
honor_cooldown: Optional[bool] = None,
trigger_source: Optional[str] = None) -> AsExecuteScalingPolicy
func GetAsExecuteScalingPolicy(ctx *Context, name string, id IDInput, state *AsExecuteScalingPolicyState, opts ...ResourceOption) (*AsExecuteScalingPolicy, error)
public static AsExecuteScalingPolicy Get(string name, Input<string> id, AsExecuteScalingPolicyState? state, CustomResourceOptions? opts = null)
public static AsExecuteScalingPolicy get(String name, Output<String> id, AsExecuteScalingPolicyState state, CustomResourceOptions options)
resources: _: type: tencentcloud:AsExecuteScalingPolicy 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.
- As
Execute stringScaling Policy Id - ID of the resource.
- Auto
Scaling stringPolicy Id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- Honor
Cooldown bool - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- Trigger
Source string - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
- As
Execute stringScaling Policy Id - ID of the resource.
- Auto
Scaling stringPolicy Id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- Honor
Cooldown bool - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- Trigger
Source string - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
- as
Execute StringScaling Policy Id - ID of the resource.
- auto
Scaling StringPolicy Id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- honor
Cooldown Boolean - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- trigger
Source String - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
- as
Execute stringScaling Policy Id - ID of the resource.
- auto
Scaling stringPolicy Id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- honor
Cooldown boolean - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- trigger
Source string - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
- as_
execute_ strscaling_ policy_ id - ID of the resource.
- auto_
scaling_ strpolicy_ id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- honor_
cooldown bool - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- trigger_
source str - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
- as
Execute StringScaling Policy Id - ID of the resource.
- auto
Scaling StringPolicy Id - Auto-scaling policy ID. This parameter is not available to a target tracking policy.
- honor
Cooldown Boolean - Whether to check if the auto scaling group is in the cooldown period. Default value: false.
- trigger
Source String - Source that triggers the scaling policy. Valid values: API and CLOUD_MONITOR. Default value: API. The value CLOUD_MONITOR is specific to the Cloud Monitor service.
Import
as execute_scaling_policy can be imported using the id, e.g.
$ pulumi import tencentcloud:index/asExecuteScalingPolicy:AsExecuteScalingPolicy execute_scaling_policy execute_scaling_policy_id
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.