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

tencentcloud.TseCngwStrategy

Explore with Pulumi AI

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

    Provides a resource to create a tse cngw_strategy

    NOTE: Please pay attention to the correctness of the cycle when modifying the params of cron_config, otherwise the modification will not be successful.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const cngwStrategy = new tencentcloud.TseCngwStrategy("cngwStrategy", {
        config: {
            behavior: {
                scaleDown: {
                    policies: [{
                        periodSeconds: 9,
                        type: "Pods",
                        value: 1,
                    }],
                    selectPolicy: "Max",
                    stabilizationWindowSeconds: 301,
                },
                scaleUp: {
                    policies: [{
                        periodSeconds: 10,
                        type: "Pods",
                        value: 1,
                    }],
                    selectPolicy: "Max",
                    stabilizationWindowSeconds: 31,
                },
            },
            maxReplicas: 2,
            metrics: [{
                resourceName: "cpu",
                targetValue: 1,
                type: "Resource",
            }],
        },
        cronConfig: {
            params: [{
                crontab: "0 00 00 * * *",
                period: "* * *",
                startAt: "00:00",
                targetReplicas: 2,
            }],
        },
        description: "aaaaa",
        gatewayId: "gateway-cf8c99c3",
        strategyName: "test-cron",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    cngw_strategy = tencentcloud.TseCngwStrategy("cngwStrategy",
        config={
            "behavior": {
                "scale_down": {
                    "policies": [{
                        "period_seconds": 9,
                        "type": "Pods",
                        "value": 1,
                    }],
                    "select_policy": "Max",
                    "stabilization_window_seconds": 301,
                },
                "scale_up": {
                    "policies": [{
                        "period_seconds": 10,
                        "type": "Pods",
                        "value": 1,
                    }],
                    "select_policy": "Max",
                    "stabilization_window_seconds": 31,
                },
            },
            "max_replicas": 2,
            "metrics": [{
                "resource_name": "cpu",
                "target_value": 1,
                "type": "Resource",
            }],
        },
        cron_config={
            "params": [{
                "crontab": "0 00 00 * * *",
                "period": "* * *",
                "start_at": "00:00",
                "target_replicas": 2,
            }],
        },
        description="aaaaa",
        gateway_id="gateway-cf8c99c3",
        strategy_name="test-cron")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewTseCngwStrategy(ctx, "cngwStrategy", &tencentcloud.TseCngwStrategyArgs{
    			Config: &tencentcloud.TseCngwStrategyConfigArgs{
    				Behavior: &tencentcloud.TseCngwStrategyConfigBehaviorArgs{
    					ScaleDown: &tencentcloud.TseCngwStrategyConfigBehaviorScaleDownArgs{
    						Policies: tencentcloud.TseCngwStrategyConfigBehaviorScaleDownPolicyArray{
    							&tencentcloud.TseCngwStrategyConfigBehaviorScaleDownPolicyArgs{
    								PeriodSeconds: pulumi.Float64(9),
    								Type:          pulumi.String("Pods"),
    								Value:         pulumi.Float64(1),
    							},
    						},
    						SelectPolicy:               pulumi.String("Max"),
    						StabilizationWindowSeconds: pulumi.Float64(301),
    					},
    					ScaleUp: &tencentcloud.TseCngwStrategyConfigBehaviorScaleUpArgs{
    						Policies: tencentcloud.TseCngwStrategyConfigBehaviorScaleUpPolicyArray{
    							&tencentcloud.TseCngwStrategyConfigBehaviorScaleUpPolicyArgs{
    								PeriodSeconds: pulumi.Float64(10),
    								Type:          pulumi.String("Pods"),
    								Value:         pulumi.Float64(1),
    							},
    						},
    						SelectPolicy:               pulumi.String("Max"),
    						StabilizationWindowSeconds: pulumi.Float64(31),
    					},
    				},
    				MaxReplicas: pulumi.Float64(2),
    				Metrics: tencentcloud.TseCngwStrategyConfigMetricArray{
    					&tencentcloud.TseCngwStrategyConfigMetricArgs{
    						ResourceName: pulumi.String("cpu"),
    						TargetValue:  pulumi.Float64(1),
    						Type:         pulumi.String("Resource"),
    					},
    				},
    			},
    			CronConfig: &tencentcloud.TseCngwStrategyCronConfigArgs{
    				Params: tencentcloud.TseCngwStrategyCronConfigParamArray{
    					&tencentcloud.TseCngwStrategyCronConfigParamArgs{
    						Crontab:        pulumi.String("0 00 00 * * *"),
    						Period:         pulumi.String("* * *"),
    						StartAt:        pulumi.String("00:00"),
    						TargetReplicas: pulumi.Float64(2),
    					},
    				},
    			},
    			Description:  pulumi.String("aaaaa"),
    			GatewayId:    pulumi.String("gateway-cf8c99c3"),
    			StrategyName: pulumi.String("test-cron"),
    		})
    		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 cngwStrategy = new Tencentcloud.TseCngwStrategy("cngwStrategy", new()
        {
            Config = new Tencentcloud.Inputs.TseCngwStrategyConfigArgs
            {
                Behavior = new Tencentcloud.Inputs.TseCngwStrategyConfigBehaviorArgs
                {
                    ScaleDown = new Tencentcloud.Inputs.TseCngwStrategyConfigBehaviorScaleDownArgs
                    {
                        Policies = new[]
                        {
                            new Tencentcloud.Inputs.TseCngwStrategyConfigBehaviorScaleDownPolicyArgs
                            {
                                PeriodSeconds = 9,
                                Type = "Pods",
                                Value = 1,
                            },
                        },
                        SelectPolicy = "Max",
                        StabilizationWindowSeconds = 301,
                    },
                    ScaleUp = new Tencentcloud.Inputs.TseCngwStrategyConfigBehaviorScaleUpArgs
                    {
                        Policies = new[]
                        {
                            new Tencentcloud.Inputs.TseCngwStrategyConfigBehaviorScaleUpPolicyArgs
                            {
                                PeriodSeconds = 10,
                                Type = "Pods",
                                Value = 1,
                            },
                        },
                        SelectPolicy = "Max",
                        StabilizationWindowSeconds = 31,
                    },
                },
                MaxReplicas = 2,
                Metrics = new[]
                {
                    new Tencentcloud.Inputs.TseCngwStrategyConfigMetricArgs
                    {
                        ResourceName = "cpu",
                        TargetValue = 1,
                        Type = "Resource",
                    },
                },
            },
            CronConfig = new Tencentcloud.Inputs.TseCngwStrategyCronConfigArgs
            {
                Params = new[]
                {
                    new Tencentcloud.Inputs.TseCngwStrategyCronConfigParamArgs
                    {
                        Crontab = "0 00 00 * * *",
                        Period = "* * *",
                        StartAt = "00:00",
                        TargetReplicas = 2,
                    },
                },
            },
            Description = "aaaaa",
            GatewayId = "gateway-cf8c99c3",
            StrategyName = "test-cron",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TseCngwStrategy;
    import com.pulumi.tencentcloud.TseCngwStrategyArgs;
    import com.pulumi.tencentcloud.inputs.TseCngwStrategyConfigArgs;
    import com.pulumi.tencentcloud.inputs.TseCngwStrategyConfigBehaviorArgs;
    import com.pulumi.tencentcloud.inputs.TseCngwStrategyConfigBehaviorScaleDownArgs;
    import com.pulumi.tencentcloud.inputs.TseCngwStrategyConfigBehaviorScaleUpArgs;
    import com.pulumi.tencentcloud.inputs.TseCngwStrategyCronConfigArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var cngwStrategy = new TseCngwStrategy("cngwStrategy", TseCngwStrategyArgs.builder()
                .config(TseCngwStrategyConfigArgs.builder()
                    .behavior(TseCngwStrategyConfigBehaviorArgs.builder()
                        .scaleDown(TseCngwStrategyConfigBehaviorScaleDownArgs.builder()
                            .policies(TseCngwStrategyConfigBehaviorScaleDownPolicyArgs.builder()
                                .periodSeconds(9)
                                .type("Pods")
                                .value(1)
                                .build())
                            .selectPolicy("Max")
                            .stabilizationWindowSeconds(301)
                            .build())
                        .scaleUp(TseCngwStrategyConfigBehaviorScaleUpArgs.builder()
                            .policies(TseCngwStrategyConfigBehaviorScaleUpPolicyArgs.builder()
                                .periodSeconds(10)
                                .type("Pods")
                                .value(1)
                                .build())
                            .selectPolicy("Max")
                            .stabilizationWindowSeconds(31)
                            .build())
                        .build())
                    .maxReplicas(2)
                    .metrics(TseCngwStrategyConfigMetricArgs.builder()
                        .resourceName("cpu")
                        .targetValue(1)
                        .type("Resource")
                        .build())
                    .build())
                .cronConfig(TseCngwStrategyCronConfigArgs.builder()
                    .params(TseCngwStrategyCronConfigParamArgs.builder()
                        .crontab("0 00 00 * * *")
                        .period("* * *")
                        .startAt("00:00")
                        .targetReplicas(2)
                        .build())
                    .build())
                .description("aaaaa")
                .gatewayId("gateway-cf8c99c3")
                .strategyName("test-cron")
                .build());
    
        }
    }
    
    resources:
      cngwStrategy:
        type: tencentcloud:TseCngwStrategy
        properties:
          config:
            behavior:
              scaleDown:
                policies:
                  - periodSeconds: 9
                    type: Pods
                    value: 1
                selectPolicy: Max
                stabilizationWindowSeconds: 301
              scaleUp:
                policies:
                  - periodSeconds: 10
                    type: Pods
                    value: 1
                selectPolicy: Max
                stabilizationWindowSeconds: 31
            maxReplicas: 2
            metrics:
              - resourceName: cpu
                targetValue: 1
                type: Resource
          cronConfig:
            params:
              - crontab: 0 00 00 * * *
                period: '* * *'
                startAt: 00:00
                targetReplicas: 2
          description: aaaaa
          gatewayId: gateway-cf8c99c3
          strategyName: test-cron
    

    Create TseCngwStrategy Resource

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

    Constructor syntax

    new TseCngwStrategy(name: string, args: TseCngwStrategyArgs, opts?: CustomResourceOptions);
    @overload
    def TseCngwStrategy(resource_name: str,
                        args: TseCngwStrategyArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def TseCngwStrategy(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        gateway_id: Optional[str] = None,
                        strategy_name: Optional[str] = None,
                        config: Optional[TseCngwStrategyConfigArgs] = None,
                        cron_config: Optional[TseCngwStrategyCronConfigArgs] = None,
                        description: Optional[str] = None,
                        tse_cngw_strategy_id: Optional[str] = None)
    func NewTseCngwStrategy(ctx *Context, name string, args TseCngwStrategyArgs, opts ...ResourceOption) (*TseCngwStrategy, error)
    public TseCngwStrategy(string name, TseCngwStrategyArgs args, CustomResourceOptions? opts = null)
    public TseCngwStrategy(String name, TseCngwStrategyArgs args)
    public TseCngwStrategy(String name, TseCngwStrategyArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TseCngwStrategy
    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 TseCngwStrategyArgs
    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 TseCngwStrategyArgs
    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 TseCngwStrategyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TseCngwStrategyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TseCngwStrategyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    GatewayId string
    gateway ID.
    StrategyName string
    strategy name, up to 20 characters.
    Config TseCngwStrategyConfig
    configuration of metric scaling.
    CronConfig TseCngwStrategyCronConfig
    configuration of timed scaling.
    Description string
    description information, up to 120 characters.
    TseCngwStrategyId string
    ID of the resource.
    GatewayId string
    gateway ID.
    StrategyName string
    strategy name, up to 20 characters.
    Config TseCngwStrategyConfigArgs
    configuration of metric scaling.
    CronConfig TseCngwStrategyCronConfigArgs
    configuration of timed scaling.
    Description string
    description information, up to 120 characters.
    TseCngwStrategyId string
    ID of the resource.
    gatewayId String
    gateway ID.
    strategyName String
    strategy name, up to 20 characters.
    config TseCngwStrategyConfig
    configuration of metric scaling.
    cronConfig TseCngwStrategyCronConfig
    configuration of timed scaling.
    description String
    description information, up to 120 characters.
    tseCngwStrategyId String
    ID of the resource.
    gatewayId string
    gateway ID.
    strategyName string
    strategy name, up to 20 characters.
    config TseCngwStrategyConfig
    configuration of metric scaling.
    cronConfig TseCngwStrategyCronConfig
    configuration of timed scaling.
    description string
    description information, up to 120 characters.
    tseCngwStrategyId string
    ID of the resource.
    gateway_id str
    gateway ID.
    strategy_name str
    strategy name, up to 20 characters.
    config TseCngwStrategyConfigArgs
    configuration of metric scaling.
    cron_config TseCngwStrategyCronConfigArgs
    configuration of timed scaling.
    description str
    description information, up to 120 characters.
    tse_cngw_strategy_id str
    ID of the resource.
    gatewayId String
    gateway ID.
    strategyName String
    strategy name, up to 20 characters.
    config Property Map
    configuration of metric scaling.
    cronConfig Property Map
    configuration of timed scaling.
    description String
    description information, up to 120 characters.
    tseCngwStrategyId String
    ID of the resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    StrategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    Id string
    The provider-assigned unique ID for this managed resource.
    StrategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    id String
    The provider-assigned unique ID for this managed resource.
    strategyId String
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    id string
    The provider-assigned unique ID for this managed resource.
    strategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    id str
    The provider-assigned unique ID for this managed resource.
    strategy_id str
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    id String
    The provider-assigned unique ID for this managed resource.
    strategyId String
    strategy ID Note: This field may return null, indicating that a valid value is not available.

    Look up Existing TseCngwStrategy Resource

    Get an existing TseCngwStrategy 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?: TseCngwStrategyState, opts?: CustomResourceOptions): TseCngwStrategy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config: Optional[TseCngwStrategyConfigArgs] = None,
            cron_config: Optional[TseCngwStrategyCronConfigArgs] = None,
            description: Optional[str] = None,
            gateway_id: Optional[str] = None,
            strategy_id: Optional[str] = None,
            strategy_name: Optional[str] = None,
            tse_cngw_strategy_id: Optional[str] = None) -> TseCngwStrategy
    func GetTseCngwStrategy(ctx *Context, name string, id IDInput, state *TseCngwStrategyState, opts ...ResourceOption) (*TseCngwStrategy, error)
    public static TseCngwStrategy Get(string name, Input<string> id, TseCngwStrategyState? state, CustomResourceOptions? opts = null)
    public static TseCngwStrategy get(String name, Output<String> id, TseCngwStrategyState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TseCngwStrategy    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:
    Config TseCngwStrategyConfig
    configuration of metric scaling.
    CronConfig TseCngwStrategyCronConfig
    configuration of timed scaling.
    Description string
    description information, up to 120 characters.
    GatewayId string
    gateway ID.
    StrategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    StrategyName string
    strategy name, up to 20 characters.
    TseCngwStrategyId string
    ID of the resource.
    Config TseCngwStrategyConfigArgs
    configuration of metric scaling.
    CronConfig TseCngwStrategyCronConfigArgs
    configuration of timed scaling.
    Description string
    description information, up to 120 characters.
    GatewayId string
    gateway ID.
    StrategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    StrategyName string
    strategy name, up to 20 characters.
    TseCngwStrategyId string
    ID of the resource.
    config TseCngwStrategyConfig
    configuration of metric scaling.
    cronConfig TseCngwStrategyCronConfig
    configuration of timed scaling.
    description String
    description information, up to 120 characters.
    gatewayId String
    gateway ID.
    strategyId String
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    strategyName String
    strategy name, up to 20 characters.
    tseCngwStrategyId String
    ID of the resource.
    config TseCngwStrategyConfig
    configuration of metric scaling.
    cronConfig TseCngwStrategyCronConfig
    configuration of timed scaling.
    description string
    description information, up to 120 characters.
    gatewayId string
    gateway ID.
    strategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    strategyName string
    strategy name, up to 20 characters.
    tseCngwStrategyId string
    ID of the resource.
    config TseCngwStrategyConfigArgs
    configuration of metric scaling.
    cron_config TseCngwStrategyCronConfigArgs
    configuration of timed scaling.
    description str
    description information, up to 120 characters.
    gateway_id str
    gateway ID.
    strategy_id str
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    strategy_name str
    strategy name, up to 20 characters.
    tse_cngw_strategy_id str
    ID of the resource.
    config Property Map
    configuration of metric scaling.
    cronConfig Property Map
    configuration of timed scaling.
    description String
    description information, up to 120 characters.
    gatewayId String
    gateway ID.
    strategyId String
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    strategyName String
    strategy name, up to 20 characters.
    tseCngwStrategyId String
    ID of the resource.

    Supporting Types

    TseCngwStrategyConfig, TseCngwStrategyConfigArgs

    Behavior TseCngwStrategyConfigBehavior
    behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
    CreateTime string
    create time Note: This field may return null, indicating that a valid value is not available.
    MaxReplicas double
    max number of replica for metric scaling.
    Metrics List<TseCngwStrategyConfigMetric>
    metric list.
    ModifyTime string
    modify time Note: This field may return null, indicating that a valid value is not available.
    StrategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    Behavior TseCngwStrategyConfigBehavior
    behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
    CreateTime string
    create time Note: This field may return null, indicating that a valid value is not available.
    MaxReplicas float64
    max number of replica for metric scaling.
    Metrics []TseCngwStrategyConfigMetric
    metric list.
    ModifyTime string
    modify time Note: This field may return null, indicating that a valid value is not available.
    StrategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    behavior TseCngwStrategyConfigBehavior
    behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
    createTime String
    create time Note: This field may return null, indicating that a valid value is not available.
    maxReplicas Double
    max number of replica for metric scaling.
    metrics List<TseCngwStrategyConfigMetric>
    metric list.
    modifyTime String
    modify time Note: This field may return null, indicating that a valid value is not available.
    strategyId String
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    behavior TseCngwStrategyConfigBehavior
    behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
    createTime string
    create time Note: This field may return null, indicating that a valid value is not available.
    maxReplicas number
    max number of replica for metric scaling.
    metrics TseCngwStrategyConfigMetric[]
    metric list.
    modifyTime string
    modify time Note: This field may return null, indicating that a valid value is not available.
    strategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    behavior TseCngwStrategyConfigBehavior
    behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
    create_time str
    create time Note: This field may return null, indicating that a valid value is not available.
    max_replicas float
    max number of replica for metric scaling.
    metrics Sequence[TseCngwStrategyConfigMetric]
    metric list.
    modify_time str
    modify time Note: This field may return null, indicating that a valid value is not available.
    strategy_id str
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    behavior Property Map
    behavior configuration of metric Note: This field may return null, indicating that a valid value is not available.
    createTime String
    create time Note: This field may return null, indicating that a valid value is not available.
    maxReplicas Number
    max number of replica for metric scaling.
    metrics List<Property Map>
    metric list.
    modifyTime String
    modify time Note: This field may return null, indicating that a valid value is not available.
    strategyId String
    strategy ID Note: This field may return null, indicating that a valid value is not available.

    TseCngwStrategyConfigBehavior, TseCngwStrategyConfigBehaviorArgs

    ScaleDown TseCngwStrategyConfigBehaviorScaleDown
    configuration of down scale Note: This field may return null, indicating that a valid value is not available.
    ScaleUp TseCngwStrategyConfigBehaviorScaleUp
    configuration of up scale Note: This field may return null, indicating that a valid value is not available.
    ScaleDown TseCngwStrategyConfigBehaviorScaleDown
    configuration of down scale Note: This field may return null, indicating that a valid value is not available.
    ScaleUp TseCngwStrategyConfigBehaviorScaleUp
    configuration of up scale Note: This field may return null, indicating that a valid value is not available.
    scaleDown TseCngwStrategyConfigBehaviorScaleDown
    configuration of down scale Note: This field may return null, indicating that a valid value is not available.
    scaleUp TseCngwStrategyConfigBehaviorScaleUp
    configuration of up scale Note: This field may return null, indicating that a valid value is not available.
    scaleDown TseCngwStrategyConfigBehaviorScaleDown
    configuration of down scale Note: This field may return null, indicating that a valid value is not available.
    scaleUp TseCngwStrategyConfigBehaviorScaleUp
    configuration of up scale Note: This field may return null, indicating that a valid value is not available.
    scale_down TseCngwStrategyConfigBehaviorScaleDown
    configuration of down scale Note: This field may return null, indicating that a valid value is not available.
    scale_up TseCngwStrategyConfigBehaviorScaleUp
    configuration of up scale Note: This field may return null, indicating that a valid value is not available.
    scaleDown Property Map
    configuration of down scale Note: This field may return null, indicating that a valid value is not available.
    scaleUp Property Map
    configuration of up scale Note: This field may return null, indicating that a valid value is not available.

    TseCngwStrategyConfigBehaviorScaleDown, TseCngwStrategyConfigBehaviorScaleDownArgs

    Policies List<TseCngwStrategyConfigBehaviorScaleDownPolicy>
    policies of scale down Note: This field may return null, indicating that a valid value is not available.
    SelectPolicy string
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    StabilizationWindowSeconds double
    stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
    Policies []TseCngwStrategyConfigBehaviorScaleDownPolicy
    policies of scale down Note: This field may return null, indicating that a valid value is not available.
    SelectPolicy string
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    StabilizationWindowSeconds float64
    stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
    policies List<TseCngwStrategyConfigBehaviorScaleDownPolicy>
    policies of scale down Note: This field may return null, indicating that a valid value is not available.
    selectPolicy String
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    stabilizationWindowSeconds Double
    stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
    policies TseCngwStrategyConfigBehaviorScaleDownPolicy[]
    policies of scale down Note: This field may return null, indicating that a valid value is not available.
    selectPolicy string
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    stabilizationWindowSeconds number
    stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
    policies Sequence[TseCngwStrategyConfigBehaviorScaleDownPolicy]
    policies of scale down Note: This field may return null, indicating that a valid value is not available.
    select_policy str
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    stabilization_window_seconds float
    stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.
    policies List<Property Map>
    policies of scale down Note: This field may return null, indicating that a valid value is not available.
    selectPolicy String
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    stabilizationWindowSeconds Number
    stability window time, unit:second, default 300 when scale down Note: This field may return null, indicating that a valid value is not available.

    TseCngwStrategyConfigBehaviorScaleDownPolicy, TseCngwStrategyConfigBehaviorScaleDownPolicyArgs

    PeriodSeconds double
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    Type string
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    Value double
    value Note: This field may return null, indicating that a valid value is not available.
    PeriodSeconds float64
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    Type string
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    Value float64
    value Note: This field may return null, indicating that a valid value is not available.
    periodSeconds Double
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    type String
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    value Double
    value Note: This field may return null, indicating that a valid value is not available.
    periodSeconds number
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    type string
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    value number
    value Note: This field may return null, indicating that a valid value is not available.
    period_seconds float
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    type str
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    value float
    value Note: This field may return null, indicating that a valid value is not available.
    periodSeconds Number
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    type String
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    value Number
    value Note: This field may return null, indicating that a valid value is not available.

    TseCngwStrategyConfigBehaviorScaleUp, TseCngwStrategyConfigBehaviorScaleUpArgs

    Policies List<TseCngwStrategyConfigBehaviorScaleUpPolicy>
    policies of scale up Note: This field may return null, indicating that a valid value is not available.
    SelectPolicy string
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    StabilizationWindowSeconds double
    stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
    Policies []TseCngwStrategyConfigBehaviorScaleUpPolicy
    policies of scale up Note: This field may return null, indicating that a valid value is not available.
    SelectPolicy string
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    StabilizationWindowSeconds float64
    stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
    policies List<TseCngwStrategyConfigBehaviorScaleUpPolicy>
    policies of scale up Note: This field may return null, indicating that a valid value is not available.
    selectPolicy String
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    stabilizationWindowSeconds Double
    stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
    policies TseCngwStrategyConfigBehaviorScaleUpPolicy[]
    policies of scale up Note: This field may return null, indicating that a valid value is not available.
    selectPolicy string
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    stabilizationWindowSeconds number
    stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
    policies Sequence[TseCngwStrategyConfigBehaviorScaleUpPolicy]
    policies of scale up Note: This field may return null, indicating that a valid value is not available.
    select_policy str
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    stabilization_window_seconds float
    stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.
    policies List<Property Map>
    policies of scale up Note: This field may return null, indicating that a valid value is not available.
    selectPolicy String
    type of policy, default value: max Note: This field may return null, indicating that a valid value is not available.
    stabilizationWindowSeconds Number
    stability window time, unit:second, default 0 when scale up Note: This field may return null, indicating that a valid value is not available.

    TseCngwStrategyConfigBehaviorScaleUpPolicy, TseCngwStrategyConfigBehaviorScaleUpPolicyArgs

    PeriodSeconds double
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    Type string
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    Value double
    value Note: This field may return null, indicating that a valid value is not available.
    PeriodSeconds float64
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    Type string
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    Value float64
    value Note: This field may return null, indicating that a valid value is not available.
    periodSeconds Double
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    type String
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    value Double
    value Note: This field may return null, indicating that a valid value is not available.
    periodSeconds number
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    type string
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    value number
    value Note: This field may return null, indicating that a valid value is not available.
    period_seconds float
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    type str
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    value float
    value Note: This field may return null, indicating that a valid value is not available.
    periodSeconds Number
    period of scale up Note: This field may return null, indicating that a valid value is not available.
    type String
    type, default value: Pods Note: This field may return null, indicating that a valid value is not available.
    value Number
    value Note: This field may return null, indicating that a valid value is not available.

    TseCngwStrategyConfigMetric, TseCngwStrategyConfigMetricArgs

    ResourceName string
    metric name. Reference value:

    • cpu
    • memory Note: This field may return null, indicating that a valid value is not available.
    TargetType string
    target type of metric, currently only supports Utilization Note: This field may return null, indicating that a valid value is not available.
    TargetValue double
    target value of metric Note: This field may return null, indicating that a valid value is not available.
    Type string
    metric type. Deafault value

    • Resource.
    ResourceName string
    metric name. Reference value:

    • cpu
    • memory Note: This field may return null, indicating that a valid value is not available.
    TargetType string
    target type of metric, currently only supports Utilization Note: This field may return null, indicating that a valid value is not available.
    TargetValue float64
    target value of metric Note: This field may return null, indicating that a valid value is not available.
    Type string
    metric type. Deafault value

    • Resource.
    resourceName String
    metric name. Reference value:

    • cpu
    • memory Note: This field may return null, indicating that a valid value is not available.
    targetType String
    target type of metric, currently only supports Utilization Note: This field may return null, indicating that a valid value is not available.
    targetValue Double
    target value of metric Note: This field may return null, indicating that a valid value is not available.
    type String
    metric type. Deafault value

    • Resource.
    resourceName string
    metric name. Reference value:

    • cpu
    • memory Note: This field may return null, indicating that a valid value is not available.
    targetType string
    target type of metric, currently only supports Utilization Note: This field may return null, indicating that a valid value is not available.
    targetValue number
    target value of metric Note: This field may return null, indicating that a valid value is not available.
    type string
    metric type. Deafault value

    • Resource.
    resource_name str
    metric name. Reference value:

    • cpu
    • memory Note: This field may return null, indicating that a valid value is not available.
    target_type str
    target type of metric, currently only supports Utilization Note: This field may return null, indicating that a valid value is not available.
    target_value float
    target value of metric Note: This field may return null, indicating that a valid value is not available.
    type str
    metric type. Deafault value

    • Resource.
    resourceName String
    metric name. Reference value:

    • cpu
    • memory Note: This field may return null, indicating that a valid value is not available.
    targetType String
    target type of metric, currently only supports Utilization Note: This field may return null, indicating that a valid value is not available.
    targetValue Number
    target value of metric Note: This field may return null, indicating that a valid value is not available.
    type String
    metric type. Deafault value

    • Resource.

    TseCngwStrategyCronConfig, TseCngwStrategyCronConfigArgs

    Params List<TseCngwStrategyCronConfigParam>
    parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
    StrategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    Params []TseCngwStrategyCronConfigParam
    parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
    StrategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    params List<TseCngwStrategyCronConfigParam>
    parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
    strategyId String
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    params TseCngwStrategyCronConfigParam[]
    parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
    strategyId string
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    params Sequence[TseCngwStrategyCronConfigParam]
    parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
    strategy_id str
    strategy ID Note: This field may return null, indicating that a valid value is not available.
    params List<Property Map>
    parameter list of timed scaling Note: This field may return null, indicating that a valid value is not available.
    strategyId String
    strategy ID Note: This field may return null, indicating that a valid value is not available.

    TseCngwStrategyCronConfigParam, TseCngwStrategyCronConfigParamArgs

    Crontab string
    cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
    Period string
    period of timed scaling Note: This field may return null, indicating that a valid value is not available.
    StartAt string
    start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
    TargetReplicas double
    the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
    Crontab string
    cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
    Period string
    period of timed scaling Note: This field may return null, indicating that a valid value is not available.
    StartAt string
    start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
    TargetReplicas float64
    the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
    crontab String
    cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
    period String
    period of timed scaling Note: This field may return null, indicating that a valid value is not available.
    startAt String
    start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
    targetReplicas Double
    the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
    crontab string
    cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
    period string
    period of timed scaling Note: This field may return null, indicating that a valid value is not available.
    startAt string
    start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
    targetReplicas number
    the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
    crontab str
    cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
    period str
    period of timed scaling Note: This field may return null, indicating that a valid value is not available.
    start_at str
    start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
    target_replicas float
    the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.
    crontab String
    cron expression of timed scaling, no input required Note: This field may return null, indicating that a valid value is not available.
    period String
    period of timed scaling Note: This field may return null, indicating that a valid value is not available.
    startAt String
    start time of timed scaling Note: This field may return null, indicating that a valid value is not available.
    targetReplicas Number
    the number of target nodes for the timed scaling. Do not exceed the max number of replica for metric scaling Note: This field may return null, indicating that a valid value is not available.

    Import

    tse cngw_strategy can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/tseCngwStrategy:TseCngwStrategy cngw_strategy gateway-cf8c99c3#strategy-a6744ff8
    

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

    Package Details

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